mattermost-mobile/ios/UploadAttachments/UploadAttachments/StoreManager.h
Miguel Alatzar b8ce726b0d
[MM-29216] Don't allow sharing of files if file uploads are disabled (#4857)
* Don't allow sharing of files if file uploads are disabled

* Remove snapshot

* Fix iOS message
2020-10-02 10:03:31 -07:00

27 lines
902 B
Objective-C

#import <Foundation/Foundation.h>
#import "MattermostBucket.h"
#import "MMKeychainManager.h"
@interface StoreManager : NSObject
@property MattermostBucket *bucket;
@property MMKeychainManager *keychain;
@property (nonatomic, strong) NSDictionary *entities;
+(instancetype)shared;
-(NSDictionary *)getChannelById:(NSString *)channelId;
-(NSDictionary *)getChannelsBySections:(NSString *)forTeamId excludeArchived:(BOOL)excludeArchived;
-(NSDictionary *)getCurrentChannel;
-(NSString *)getCurrentChannelId;
-(NSString *)getCurrentTeamId;
-(NSString *)getCurrentUserId;
-(NSDictionary *)getDefaultChannel:(NSString *)forTeamId;
-(NSDictionary *)getEntities:(BOOL)loadFromFile;
-(UInt64)getMaxImagePixels;
-(UInt64)getMaxFileSize;
-(UInt64)getMaxPostSize;
-(NSArray *)getMyTeams;
-(NSString *)getServerUrl;
-(NSString *)getToken;
-(BOOL)getCanUploadFiles;
-(void)updateEntities:(NSString *)content;
@end