AgoraChatSDK 1.3.1
IAgoraChatStatisticsManager.h
1
9#import <Foundation/Foundation.h>
10#import "AgoraChatMessageStatistics.h"
11
16typedef NS_ENUM(NSUInteger, AgoraChatMessageStatisticsDirection) {
17 AgoraChatMessageStatisticsDirectionSend = 0,
18 AgoraChatMessageStatisticsDirectionReceive,
19 AgoraChatMessageStatisticsDirectionAll = 100,
20};
21
26typedef NS_ENUM(NSUInteger, AgoraChatMessageStatisticsType) {
27 AgoraChatMessageStatisticsTypeText = 0,
28 AgoraChatMessageStatisticsTypeImage,
29 AgoraChatMessageStatisticsTypeVideo,
30 AgoraChatMessageStatisticsTypeLocation,
31 AgoraChatMessageStatisticsTypeVoice,
32 AgoraChatMessageStatisticsTypeFile,
33 AgoraChatMessageStatisticsTypeCmd,
34 AgoraChatMessageStatisticsTypeCustom,
35 AgoraChatMessageStatisticsTypeAll = 100,
36};
37
38
39@class AgoraChatError;
40
66@protocol IAgoraChatStatisticsManager <NSObject>
67
68@required
69
70
78- (AgoraChatMessageStatistics* _Nullable)getMessageStatisticsById:(NSString* _Nonnull)messageId;
79
90- (NSInteger)getMessageCountWithStart:(NSInteger)startTimestamp
91 end:(NSInteger)endTimestamp
92 direction:(AgoraChatMessageStatisticsDirection)direction
93 type:(AgoraChatMessageStatisticsType)type;
94
95
108- (NSInteger)getMessageStatisticsSizeWithStart:(NSInteger)startTimestamp
109 end:(NSInteger)endTimestamp
110 direction:(AgoraChatMessageStatisticsDirection)direction
111 type:(AgoraChatMessageStatisticsType)type;
112
113@end
Definition: AgoraChatError.h:18
Definition: AgoraChatMessageStatistics.h:19
Definition: IAgoraChatStatisticsManager.h:66