BMXConversation Class Reference
Inherits from BMXBaseObject :
NSObject
Declared in floo_proxy.h
Overview
@interface Conversation
Instance Methods
conversationId
Conversation ID
- (long long)conversationId
Return Value
long long
Declared In
floo_proxy.h
dealloc
- (void)dealloc
editMessage
Edit a message
- (NSString *)editMessage
Return Value
NSString
Declared In
floo_proxy.h
extension
Extension information of a message
- (NSString *)extension
Return Value
NSString
Declared In
floo_proxy.h
insertMessageWithMsg:
Insert a message
- (BMXErrorCode)insertMessageWithMsg:(BMXMessage *)*msg*
Parameters
msg
The message
Return Value
Declared In
floo_proxy.h
insertMessageWithMsg:completion:
Insert a message
- (void)insertMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
msg
The message
Return Value
Declared In
floo_proxy.h
isMuteNotification
Turn off message notifications
- (BOOL)isMuteNotification
Return Value
BOOL
Declared In
floo_proxy.h
lastMsg
The last message
- (BMXMessage *)lastMsg
Return Value
Declared In
floo_proxy.h
loadMessageWithMsgId:
Get a message by ID
- (BMXMessage *)loadMessageWithMsgId:(long long)*msgId*
Parameters
msgId
The message ID
Return Value
Declared In
floo_proxy.h
loadMessageWithMsgId:completion:
Get a message by ID
- (void)loadMessageWithMsgId:(long long)*msgId* completion:(void ( ^ ) ( BMXMessage *res , BMXError *aError ))*resBlock*
Parameters
msgId
The message ID
Return Value
Declared In
floo_proxy.h
loadMessagesWithRefMsgId:size:arg4:completion:
Get messages from the starting message ID
- (void)loadMessagesWithRefMsgId:(long long)*refMsgId* size:(unsigned long)*size* arg4:(BMXConversation_Direction)*arg4* completion:(void ( ^ ) ( BMXMessageList *result , BMXError *aError ))*resBlock*
Parameters
refMsgId
Starting message ID
size
Maximum number of messages
result
Message list as result
Direction
Search direction, Up for earlier
Return Value
Declared In
floo_proxy.h
loadMessagesWithRefMsgId:size:completion:
Search messages by message ID
- (void)loadMessagesWithRefMsgId:(long long)*refMsgId* size:(unsigned long)*size* completion:(void ( ^ ) ( BMXMessageList *result , BMXError *aError ))*resBlock*
Parameters
size
Maximum number of messages
refTime
Starting time
result
Message list as result
keywords
The keywords
Direction
Search direction, Up for earlier
Return Value
Declared In
floo_proxy.h
loadMessagesWithRefMsgId:size:result:
- (BMXErrorCode)loadMessagesWithRefMsgId:(long long)*refMsgId* size:(unsigned long)*size* result:(BMXMessageList *)*result*
loadMessagesWithRefMsgId:size:result:arg4:
Load messages
- (BMXErrorCode)loadMessagesWithRefMsgId:(long long)*refMsgId* size:(unsigned long)*size* result:(BMXMessageList *)*result* arg4:(BMXConversation_Direction)*arg4*
Parameters
refMsgId
First Message Id
size
Maximum number of messages
result
Message list as result
Direction
Search direction, Up for earlier
Return Value
Declared In
floo_proxy.h
messageCount
The number of messages
- (int)messageCount
Return Value
int
Declared In
floo_proxy.h
refreshConversation
Force update the total number of messages and unread messages for the conversation
- (BMXErrorCode)refreshConversation
Return Value
Declared In
floo_proxy.h
refreshConversationWithCompletion:
Force update the total number of messages and unread messages for the conversation
- (void)refreshConversationWithCompletion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Return Value
Declared In
floo_proxy.h
removeAllMessages
Remove all messages in the conversation
- (BMXErrorCode)removeAllMessages
Return Value
Declared In
floo_proxy.h
removeAllMessagesWithCompletion:
Remove all messages in the conversation
- (void)removeAllMessagesWithCompletion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Return Value
Declared In
floo_proxy.h
searchMessagesByKeyWordsWithKeywords:refTime:size:arg5:completion:
Search messages by keywords
- (void)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* arg5:(BMXConversation_Direction)*arg5* completion:(void ( ^ ) ( BMXMessageList *result , BMXError *aError ))*resBlock*
Parameters
keywords
The keywords
refTime
Starting time
size
Maximum number of messages
result
Message list as result
Direction
Search direction, Up for earlier
Return Value
Discussion
Deprecated. use searchMessagesByKeyWords instead.
Declared In
floo_proxy.h
searchMessagesByKeyWordsWithKeywords:refTime:size:completion:
- (void)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* completion:(void ( ^ ) ( BMXMessageList *result , BMXError *aError ))*resBlock*
searchMessagesByKeyWordsWithKeywords:refTime:size:result:
- (BMXErrorCode)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* result:(BMXMessageList *)*result*
searchMessagesByKeyWordsWithKeywords:refTime:size:result:arg5:
Search messages by keywords
- (BMXErrorCode)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* result:(BMXMessageList *)*result* arg5:(BMXConversation_Direction)*arg5*
Parameters
keywords
The keywords
refTime
Starting time
size
Maximum number of messages
result
Message list as result
arg5
Search direction, Up for earlier
Return Value
Declared In
floo_proxy.h
searchMessagesByTypeWithType:refTime:size:arg5:completion:
Search messages by type
- (void)searchMessagesByTypeWithType:(BMXMessage_ContentType)*type* refTime:(long long)*refTime* size:(unsigned long)*size* arg5:(BMXConversation_Direction)*arg5* completion:(void ( ^ ) ( BMXMessageList *result , BMXError *aError ))*resBlock*
Parameters
type
The type
refTime
Starting time
size
Maximum number of messages
result
Message list as result
Direction
Search direction, Up for earlier
Return Value
Declared In
floo_proxy.h
searchMessagesByTypeWithType:refTime:size:completion:
- (void)searchMessagesByTypeWithType:(BMXMessage_ContentType)*type* refTime:(long long)*refTime* size:(unsigned long)*size* completion:(void ( ^ ) ( BMXMessageList *result , BMXError *aError ))*resBlock*
searchMessagesByTypeWithType:refTime:size:result:
- (BMXErrorCode)searchMessagesByTypeWithType:(BMXMessage_ContentType)*type* refTime:(long long)*refTime* size:(unsigned long)*size* result:(BMXMessageList *)*result*
searchMessagesByTypeWithType:refTime:size:result:arg5:
Search messages by type
- (BMXErrorCode)searchMessagesByTypeWithType:(BMXMessage_ContentType)*type* refTime:(long long)*refTime* size:(unsigned long)*size* result:(BMXMessageList *)*result* arg5:(BMXConversation_Direction)*arg5*
Parameters
type
The type
refTime
Starting time
size
Maximum number of messages
result
Message list as result
Direction
Search direction, Up for earlier
Return Value
Declared In
floo_proxy.h
setAllMessagesRead
Set all messages as read
- (BMXErrorCode)setAllMessagesRead
Return Value
Declared In
floo_proxy.h
setAllMessagesReadWithCompletion:
Set all messages as read
- (void)setAllMessagesReadWithCompletion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Return Value
Declared In
floo_proxy.h
setEditMessage:
Set message in editting
- (BMXErrorCode)setEditMessage:(NSString *)*editMessage*
Parameters
editMessage
The message content
Return Value
Declared In
floo_proxy.h
setExtension:
Set extension information of messages
- (BMXErrorCode)setExtension:(NSString *)*ext*
Parameters
ext
The extension information
Return Value
Declared In
floo_proxy.h
setMessagePlayedStatus:status:
Set palyed status of messages
- (BMXErrorCode)setMessagePlayedStatus:(BMXMessage *)*msg* status:(BOOL)*status*
Parameters
msg
The message
status
Played or not
Return Value
Declared In
floo_proxy.h
setMessagePlayedStatus:status:completion:
Set the palyed status of messages
- (void)setMessagePlayedStatus:(BMXMessage *)*msg* status:(BOOL)*status* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
msg
The message
status
Played or not
Return Value
Declared In
floo_proxy.h
setMessageReadStatus:status:
Set the read status of messages
- (BMXErrorCode)setMessageReadStatus:(BMXMessage *)*msg* status:(BOOL)*status*
Parameters
msg
The message
status
Read or not
Return Value
Declared In
floo_proxy.h
setMessageReadStatus:status:completion:
Set the read status of messages
- (void)setMessageReadStatus:(BMXMessage *)*msg* status:(BOOL)*status* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
msg
The message
status
Read or not
Return Value
Declared In
floo_proxy.h
type
Conversation type
- (BMXConversation_Type)type
Return Value
Declared In
floo_proxy.h
unreadNumber
THe number of unread messages
- (int)unreadNumber
Return Value
int
Declared In
floo_proxy.h
updateMessageExtensionWithMsg:
Update the extension information of a message
- (BMXErrorCode)updateMessageExtensionWithMsg:(BMXMessage *)*msg*
Parameters
msg
The message
Return Value
Declared In
floo_proxy.h
updateMessageExtensionWithMsg:completion:
Update the extension information of a message
- (void)updateMessageExtensionWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
msg
The message
Return Value
Declared In
floo_proxy.h
Example: