mattermost-mobile/ios/MattermostShare/PerformRequests.h
enahum 89e0623e6e Improvements on iOS Share Extension (#1407)
* Improvements on iOS Share Extension

* Switch NSUserDefaults with a file based solution

* create a new entities object instead of mutating

* Clarify the function for requiring emm authentication

* ensure entities is not a shallow copy
2018-02-02 16:48:09 -05:00

31 lines
1,002 B
Objective-C

//
// PerformRequests.h
// MattermostShare
//
// Created by Elias Nahum on 12/18/17.
// Copyright © 2017 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MattermostBucket.h"
@interface PerformRequests : NSObject<NSURLSessionDelegate, NSURLSessionTaskDelegate>
@property (nonatomic, strong) NSString *appGroupId;
@property (nonatomic, strong) NSString *requestId;
@property (nonatomic, strong) NSMutableArray *fileIds;
@property (nonatomic, strong) NSArray *files;
@property (nonatomic, strong) NSDictionary *post;
@property (nonatomic, strong) NSString *serverUrl;
@property (nonatomic, strong) NSString *token;
@property (nonatomic, strong) NSExtensionContext *extensionContext;
@property MattermostBucket *bucket;
- (id) initWithPost:(NSDictionary *) post
withFiles:(NSArray *) files
forRequestId:(NSString *)requestId
inAppGroupId:(NSString *) appGroupId
inContext:(NSExtensionContext *) extensionContext;
-(void)createPost;
@end