forked from Ivasoft/mattermost-mobile
* objective-C share extension * MattermostBucket module to share data between the main app and the extension * middleware that shares the data between the main app and the extension * Fix setState when safe area in unmounted * Share extension for iOS * Fastlane changes to include iOS share extension * Fix unit test * Feedback review * define proptypes for icons
29 lines
846 B
Objective-C
29 lines
846 B
Objective-C
//
|
|
// PerformRequests.h
|
|
// MattermostShare
|
|
//
|
|
// Created by Elias Nahum on 12/18/17.
|
|
// Copyright © 2017 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.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 NSUserDefaults *bucket;
|
|
|
|
- (id) initWithPost:(NSDictionary *) post
|
|
withFiles:(NSArray *) files
|
|
forRequestId:(NSString *)requestId
|
|
inAppGroupId:(NSString *) appGroupId;
|
|
|
|
-(void)createPost;
|
|
@end
|