| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // DKMessageModel.h
- // chatandvideotestframework
- //
- // Created by Dongke on 15/11/18.
- // Copyright © 2015年 dongke. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <CoreLocation/CoreLocation.h>
- #import "DKMessageBubbleFactory.h"
- @class DKMessage;
- @protocol DKMessageModel <NSObject>
- @required
- - (NSString *)text;
- - (UIImage *)photo;
- - (NSString *)thumbnailUrl;
- - (NSString *)originPhotoUrl;
- - (UIImage *)videoConverPhoto;
- - (NSString *)videoPath;
- - (NSString *)videoUrl;
- - (NSString *)voicePath;
- - (NSString *)voiceUrl;
- - (NSString *)voiceDuration;
- - (UIImage *)localPositionPhoto;
- - (NSString *)geolocations;
- - (CLLocation *)location;
- - (NSString *)emotionPath;
- - (UIImage *)avatar;
- - (NSString *)avatarUrl;
- - (DKBubbleMessageMediaType)messageMediaType;
- - (DKBubbleMessageType)bubbleMessageType;
- @optional
- - (BOOL)shouldShowUserName;
- - (NSString *)sender;
- - (NSDate *)timestamp;
- - (BOOL)isRead;
- - (void)setIsRead:(BOOL)isRead;
- @end
|