You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

57 lines
1.1 KiB

//
// XHMessageModel.h
// MessageDisplayExample
//
// Created by HUAJIE-1 on 14-4-24.
// Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "XHMessageBubbleFactory.h"
@class XHMessage;
@protocol XHMessageModel <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;
- (XHBubbleMessageMediaType)messageMediaType;
- (XHBubbleMessageType)bubbleMessageType;
@optional
- (BOOL)shouldShowUserName;
- (NSString *)sender;
- (NSDate *)timestamp;
- (BOOL)isRead;
- (void)setIsRead:(BOOL)isRead;
@end