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

* Remove snapshot

* Fix iOS message

(cherry picked from commit b8ce726b0d)

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-10-02 10:12:41 -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