* Don't allow sharing of files if file uploads are disabled * Remove snapshot * Fix iOS message
27 lines
902 B
Objective-C
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
|