From 9214243349fe01c82dc2a0b1ecafebff6b20d3e8 Mon Sep 17 00:00:00 2001 From: Kaiming Qu Date: Mon, 12 Dec 2016 19:38:05 +0800 Subject: [PATCH] expose avimconversation property --- AVOS/AVOSCloudIM/AVIMConversation.h | 24 ++++++++++---------- AVOS/AVOSCloudIM/AVIMConversation_Internal.h | 8 +------ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/AVOS/AVOSCloudIM/AVIMConversation.h b/AVOS/AVOSCloudIM/AVIMConversation.h index b17ae9dc3..6e8eb5252 100644 --- a/AVOS/AVOSCloudIM/AVIMConversation.h +++ b/AVOS/AVOSCloudIM/AVIMConversation.h @@ -34,65 +34,65 @@ NS_ASSUME_NONNULL_BEGIN /** * The ID of the client which the conversation belongs to. */ -@property (nonatomic, copy, readonly, nullable) NSString *clientId; +@property (nonatomic, copy, nullable) NSString *clientId; /** * The ID of the conversation. */ -@property (nonatomic, copy, readonly, nullable) NSString *conversationId; +@property (nonatomic, copy, nullable) NSString *conversationId; /** * The clientId of the conversation creator. */ -@property (nonatomic, copy, readonly, nullable) NSString *creator; +@property (nonatomic, copy, nullable) NSString *creator; /** * The creation time of the conversation. */ -@property (nonatomic, strong, readonly, nullable) NSDate *createAt; +@property (nonatomic, strong, nullable) NSDate *createAt; /** * The last updating time of the conversation. When fields like name, members changes, this time will changes. */ -@property (nonatomic, strong, readonly, nullable) NSDate *updateAt; +@property (nonatomic, strong, nullable) NSDate *updateAt; /** * The send timestamp of the last message in this conversation. */ -@property (nonatomic, strong, readonly, nullable) NSDate *lastMessageAt; +@property (nonatomic, strong, nullable) NSDate *lastMessageAt; /** * The name of this conversation. Can be changed by update:callback: . */ -@property (nonatomic, copy, readonly, nullable) NSString *name; +@property (nonatomic, copy, nullable) NSString *name; /** * The ids of the clients who join the conversation. Can be changed by addMembersWithClientIds:callback: or removeMembersWithClientIds:callback: . */ -@property (nonatomic, strong, readonly, nullable) NSArray *members; +@property (nonatomic, strong, nullable) NSArray *members; /** * The attributes of the conversation. Intend to save any extra data of the conversation. * Can be set when creating the conversation or can be updated by update:callback: . */ -@property (nonatomic, strong, readonly, nullable) NSDictionary *attributes; +@property (nonatomic, strong, nullable) NSDictionary *attributes; /** * Indicate whether it is a transient conversation. * @see AVIMConversationOptionTransient */ -@property (nonatomic, assign, readonly) BOOL transient; +@property (nonatomic, assign) BOOL transient; /** * Muting status. If muted, when you have offline messages, will not receive Apple APNS notification. * Can be changed by muteWithCallback: or unmuteWithCallback:. */ -@property (nonatomic, assign, readonly) BOOL muted; +@property (nonatomic, assign) BOOL muted; /** * The AVIMClient object which this conversation belongs to. */ -@property (nonatomic, weak, readonly, nullable) AVIMClient *imClient; +@property (nonatomic, weak, nullable) AVIMClient *imClient; /** * Add custom property for conversation. diff --git a/AVOS/AVOSCloudIM/AVIMConversation_Internal.h b/AVOS/AVOSCloudIM/AVIMConversation_Internal.h index 21d783940..b78f52a93 100644 --- a/AVOS/AVOSCloudIM/AVIMConversation_Internal.h +++ b/AVOS/AVOSCloudIM/AVIMConversation_Internal.h @@ -19,13 +19,7 @@ @interface AVIMConversation () -@property(nonatomic, copy) NSString *name; // 对话名字 -@property(nonatomic, strong) NSDate *createAt; // 创建时间 -@property(nonatomic, strong) NSDate *updateAt; // 最后更新时间 -@property(nonatomic, strong) NSDate *lastMessageAt; // 对话中最后一条消息的发送时间 -@property(nonatomic, strong) NSDictionary *attributes; // 自定义属性 -@property(nonatomic, assign) BOOL muted; // 静音状态 -@property(nonatomic, assign) BOOL transient; // 是否为临时会话(开放群组) + //@property(nonatomic, strong)AVIMConversationUpdateBuilder *updateBuilder; - (instancetype)initWithConversationId:(NSString *)conversationId;