DKMessageModel.h 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // DKMessageModel.h
  3. // chatandvideotestframework
  4. //
  5. // Created by Dongke on 15/11/18.
  6. // Copyright © 2015年 dongke. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. #import "DKMessageBubbleFactory.h"
  11. @class DKMessage;
  12. @protocol DKMessageModel <NSObject>
  13. @required
  14. - (NSString *)text;
  15. - (UIImage *)photo;
  16. - (NSString *)thumbnailUrl;
  17. - (NSString *)originPhotoUrl;
  18. - (UIImage *)videoConverPhoto;
  19. - (NSString *)videoPath;
  20. - (NSString *)videoUrl;
  21. - (NSString *)voicePath;
  22. - (NSString *)voiceUrl;
  23. - (NSString *)voiceDuration;
  24. - (UIImage *)localPositionPhoto;
  25. - (NSString *)geolocations;
  26. - (CLLocation *)location;
  27. - (NSString *)emotionPath;
  28. - (UIImage *)avatar;
  29. - (NSString *)avatarUrl;
  30. - (DKBubbleMessageMediaType)messageMediaType;
  31. - (DKBubbleMessageType)bubbleMessageType;
  32. @optional
  33. - (BOOL)shouldShowUserName;
  34. - (NSString *)sender;
  35. - (NSDate *)timestamp;
  36. - (BOOL)isRead;
  37. - (void)setIsRead:(BOOL)isRead;
  38. @end