1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /************************************************************
- * * EaseMob CONFIDENTIAL
- * __________________
- * Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved.
- *
- * NOTICE: All information contained herein is, and remains
- * the property of EaseMob Technologies.
- * Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained
- * from EaseMob Technologies.
- */
- #import <Foundation/Foundation.h>
- #define KFIRETIME 20
- typedef NS_ENUM(NSInteger, AssistantMessageType) {
- AssistantMessageTypeDefault = -1,
- AssistantMessageTypeCard = 3,
- AssistantMessageTypeReco = 4,
- AssistantMessageTypeTrade = 5,
- };
- @interface MessageModel : NSObject
- {
- BOOL _isPlaying;
- }
- @property (nonatomic) EMMessageBodyType type;
- @property (nonatomic) EMMessageStatus status;
- @property (nonatomic) BOOL isSender; //是否是发送者
- @property (nonatomic) BOOL isRead; //是否已读
- @property (nonatomic) BOOL isChatGroup; //是否是群聊
- @property (nonatomic, strong) NSString *messageId;
- @property (nonatomic, strong) NSString *headPhotoURL;
- @property (nonatomic, strong) NSString *nickName;
- @property (nonatomic, strong) NSString *username;
- //text
- @property (nonatomic, strong) NSString *content;
- //image
- @property (nonatomic) CGSize size;
- @property (nonatomic) CGSize thumbnailSize;
- @property (nonatomic, strong) NSURL *imageRemoteURL;
- @property (nonatomic, strong) NSURL *thumbnailRemoteURL;
- @property (nonatomic, strong) UIImage *image;
- @property (nonatomic, strong) UIImage *thumbnailImage;
- //audio
- @property (nonatomic, strong) NSString *localPath;
- @property (nonatomic, strong) NSString *remotePath;
- @property (nonatomic) NSInteger time;
- //@property (nonatomic, strong) EMChatVoice *chatVoice;
- @property (nonatomic) BOOL isPlaying;
- @property (nonatomic) BOOL isPlayed;
- //location
- @property (nonatomic, strong) NSString *address;
- @property (nonatomic) double latitude;
- @property (nonatomic) double longitude;
- @property (nonatomic, strong)EMMessageBody *messageBody;
- @property (nonatomic, strong)EMMessage *message;
- /**
- * 判断是否是宝贝链接消息
- */
- - (BOOL)isSummaryMessage;
- /**
- * 判断是否是评分消息
- */
- - (BOOL)isEnquiryMessage;
- /**
- * 判断是否是管家服务消息
- */
- - (BOOL)isAssistantMessage;
- - (AssistantMessageType)getAssistantMessageType;
- @end
|