79 lines
1.6 KiB
Objective-C
79 lines
1.6 KiB
Objective-C
//
|
|
// TLConversation.h
|
|
// TLChat
|
|
//
|
|
// Created by 李伯坤 on 16/1/23.
|
|
// Copyright © 2016年 李伯坤. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
/**
|
|
* 会话类型
|
|
*/
|
|
typedef NS_ENUM(NSInteger, TLConversationType) {
|
|
TLConversationTypePersonal, // 个人
|
|
TLConversationTypeGroup, // 群聊
|
|
TLConversationTypePublic, // 公众号
|
|
TLConversationTypeServerGroup, // 服务组(订阅号、企业号)
|
|
};
|
|
|
|
typedef NS_ENUM(NSInteger, TLMessageRemindType) {
|
|
TLMessageRemindTypeNormal, // 正常接受
|
|
TLMessageRemindTypeClosed, // 不提示
|
|
TLMessageRemindTypeNotLook, // 不看
|
|
TLMessageRemindTypeUnlike, // 不喜欢
|
|
};
|
|
|
|
@interface TLConversation : NSObject
|
|
|
|
|
|
/**
|
|
* 会话类型(个人,讨论组,企业号)
|
|
*/
|
|
@property (nonatomic, assign) TLConversationType convType;
|
|
|
|
/**
|
|
* 消息提醒类型
|
|
*/
|
|
@property (nonatomic, assign) TLMessageRemindType remindType;
|
|
|
|
/**
|
|
* 用户ID
|
|
*/
|
|
@property (nonatomic, strong) NSString *partnerID;
|
|
|
|
/**
|
|
* 用户名
|
|
*/
|
|
@property (nonatomic, strong) NSString *partnerName;
|
|
|
|
/**
|
|
* 头像地址(网络)
|
|
*/
|
|
@property (nonatomic, strong) NSString *avatarURL;
|
|
|
|
/**
|
|
* 头像地址(本地)
|
|
*/
|
|
@property (nonatomic, strong) NSString *avatarPath;
|
|
|
|
/**
|
|
* 时间
|
|
*/
|
|
@property (nonatomic, strong) NSDate *date;
|
|
|
|
/**
|
|
* 消息展示内容
|
|
*/
|
|
@property (nonatomic, strong) NSString *content;
|
|
|
|
/**
|
|
* 未读数量
|
|
*/
|
|
@property (nonatomic, assign) NSInteger unreadCount;
|
|
@property (nonatomic, strong, readonly) NSString *badgeValue;
|
|
@property (nonatomic, assign, readonly) BOOL isRead;
|
|
|
|
@end
|