ShengwangChatSDK 1.3.2
AgoraChatFileMessageBody.h
1
9#import <Foundation/Foundation.h>
10
11#import "AgoraChatMessageBody.h"
12
17typedef NS_ENUM(NSInteger, AgoraChatDownloadStatus) {
18 AgoraChatDownloadStatusDownloading = 0,
19 AgoraChatDownloadStatusSucceed,
20 AgoraChatDownloadStatusFailed,
21 AgoraChatDownloadStatusPending,
22};
23
29
34@property (nonatomic, copy) NSString *displayName;
35
40@property (nonatomic, copy) NSString *localPath;
41
46@property (nonatomic, copy) NSString *remotePath;
47
52@property (nonatomic, copy) NSString *secretKey;
53
58@property (nonatomic) long long fileLength;
59
64@property (nonatomic) AgoraChatDownloadStatus downloadStatus;
65
75- (instancetype _Nonnull)initWithLocalPath:(NSString * _Nullable)aLocalPath
76 displayName:(NSString * _Nullable)aDisplayName;
77
87- (instancetype _Nonnull)initWithData:(NSData *_Nullable)aData
88 displayName:(NSString *_Nullable)aDisplayName;
89
90
91@end
Definition: AgoraChatFileMessageBody.h:29
NSString * displayName
Definition: AgoraChatFileMessageBody.h:34
long long fileLength
Definition: AgoraChatFileMessageBody.h:58
NSString * localPath
Definition: AgoraChatFileMessageBody.h:40
NSString * remotePath
Definition: AgoraChatFileMessageBody.h:46
AgoraChatDownloadStatus downloadStatus
Definition: AgoraChatFileMessageBody.h:64
NSString * secretKey
Definition: AgoraChatFileMessageBody.h:52
Definition: AgoraChatMessageBody.h:33