HyphenateChatSDK  4.6.0
IEMStatisticsManager.h
1 
15 #import <Foundation/Foundation.h>
16 #import "EMChatMessageStatistics.h"
17 
25 typedef NS_ENUM(NSUInteger, EMMessageStatisticsDirection) {
26  EMMessageStatisticsDirectionSend = 0,
27  EMMessageStatisticsDirectionReceive,
28  EMMessageStatisticsDirectionAll = 100,
29 };
30 
38 typedef NS_ENUM(NSUInteger, EMMessageStatisticsType) {
39  EMMessageStatisticsTypeText = 0,
40  EMMessageStatisticsTypeImage,
41  EMMessageStatisticsTypeVideo,
42  EMMessageStatisticsTypeLocation,
43  EMMessageStatisticsTypeVoice,
44  EMMessageStatisticsTypeFile,
45  EMMessageStatisticsTypeCmd,
46  EMMessageStatisticsTypeCustom,
47  EMMessageStatisticsTypeAll = 100,
48 };
49 
50 
51 @class EMError;
52 
99 @protocol IEMStatisticsManager <NSObject>
100 
101 @required
102 
103 
117 - (EMChatMessageStatistics* _Nullable)getMessageStatisticsById:(NSString* _Nonnull)messageId;
118 
138 - (NSInteger)getMessageCountWithStart:(NSInteger)startTimestamp
139  end:(NSInteger)endTimestamp
140  direction:(EMMessageStatisticsDirection)direction
141  type:(EMMessageStatisticsType)type;
142 
143 
167 - (NSInteger)getMessageStatisticsSizeWithStart:(NSInteger)startTimestamp
168  end:(NSInteger)endTimestamp
169  direction:(EMMessageStatisticsDirection)direction
170  type:(EMMessageStatisticsType)type;
171 
172 @end
Definition: EMError.h:26
Definition: EMChatMessageStatistics.h:27
Definition: IEMStatisticsManager.h:99