![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
ThingSmartMessage provides methods to implement message functionalities. More...
#import <ThingSmartMessage.h>
ThingSmartMessage provides methods to implement message functionalities.
ThingSmartMessage provides a message center and supports push functions. The messages are classified into the following categories: alert messages, home messages, and notifications. Each type of message can be enabled or disabled.
Definition at line 15 of file ThingSmartMessage.h.
| - (void) cancelRequest |
Cancels the ongoing request.
| - (void) cancelRequest |
Cancels the ongoing request.
| - (void) cancelRequest |
Cancels the ongoing request.
| - (void) cancelRequest |
Cancels the ongoing request.
| - (void) deleteMessage: | (NSArray< NSString * > *) | messgeIdList | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithType:ids:msgSrcIds:success:failure:] | ||
Deletes a batch of messages
| messgeIdList | Message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessage: | (NSArray< NSString * > *) | messgeIdList | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithType:ids:msgSrcIds:success:failure:] | ||
Deletes a batch of messages
| messgeIdList | Message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessage: | (NSArray< NSString * > *) | messgeIdList | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithType:ids:msgSrcIds:success:failure:] | ||
Deletes a batch of messages
| messgeIdList | Message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessage: | (NSArray< NSString * > *) | messgeIdList | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithType:ids:msgSrcIds:success:failure:] | ||
Deletes a batch of messages
| messgeIdList | Message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessageWithDeleteRequestModel: | (ThingSmartMessageListDeleteRequestModel *) | deleteRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Deletes a list of data from the message center.
| deleteRequestModel | A list of deleted messages. The deletion of all data is not supported. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) deleteMessageWithDeleteRequestModel: | (ThingSmartMessageListDeleteRequestModel *) | deleteRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Deletes a list of data from the message center.
| deleteRequestModel | A list of deleted messages. The deletion of all data is not supported. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) deleteMessageWithDeleteRequestModel: | (ThingSmartMessageListDeleteRequestModel *) | deleteRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Deletes a list of data from the message center.
| deleteRequestModel | A list of deleted messages. The deletion of all data is not supported. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) deleteMessageWithDeleteRequestModel: | (ThingSmartMessageListDeleteRequestModel *) | deleteRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Deletes a list of data from the message center.
| deleteRequestModel | A list of deleted messages. The deletion of all data is not supported. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) deleteMessageWithType: | (NSInteger) | msgType | |
| ids: | (NSArray *) | ids | |
| msgSrcIds: | (NSArray *) | msgSrcIds | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithDeleteRequestModel:failure:] | ||
Delete a batch of messages
| msgType | Message type |
| ids | Delete message Id list |
| msgSrcIds | Delete alert message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessageWithType: | (NSInteger) | msgType | |
| ids: | (NSArray *) | ids | |
| msgSrcIds: | (NSArray *) | msgSrcIds | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithDeleteRequestModel:failure:] | ||
Delete a batch of messages
| msgType | Message type |
| ids | Delete message Id list |
| msgSrcIds | Delete alert message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessageWithType: | (NSInteger) | msgType | |
| ids: | (NSArray *) | ids | |
| msgSrcIds: | (NSArray *) | msgSrcIds | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithDeleteRequestModel:failure:] | ||
Delete a batch of messages
| msgType | Message type |
| ids | Delete message Id list |
| msgSrcIds | Delete alert message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) deleteMessageWithType: | (NSInteger) | msgType | |
| ids: | (NSArray *) | ids | |
| msgSrcIds: | (NSArray *) | msgSrcIds | |
| success: | (ThingSuccessHandler) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage deleteMessageWithDeleteRequestModel:failure:] | ||
Delete a batch of messages
| msgType | Message type |
| ids | Delete message Id list |
| msgSrcIds | Delete alert message Id list |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) fetchEncryptMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details. Some details require additional decryption
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchEncryptMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details. Some details require additional decryption
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchEncryptMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details. Some details require additional decryption
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchEncryptMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details. Some details require additional decryption
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDecryptKeyWithEncryptRequestModel: | (NSArray< ThingSmartMessageEncryptRequestModel * > *) | encryptRequestListModel | |
| success: | (void(^)(NSArray< ThingSmartMessageDecryptModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Request message details decryption key
| encryptRequestListModel | A list of encryptRequestModel |
| success | Called when the task is finished. A list of ThingSmartMessageDecryptModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDecryptKeyWithEncryptRequestModel: | (NSArray< ThingSmartMessageEncryptRequestModel * > *) | encryptRequestListModel | |
| success: | (void(^)(NSArray< ThingSmartMessageDecryptModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Request message details decryption key
| encryptRequestListModel | A list of encryptRequestModel |
| success | Called when the task is finished. A list of ThingSmartMessageDecryptModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDecryptKeyWithEncryptRequestModel: | (NSArray< ThingSmartMessageEncryptRequestModel * > *) | encryptRequestListModel | |
| success: | (void(^)(NSArray< ThingSmartMessageDecryptModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Request message details decryption key
| encryptRequestListModel | A list of encryptRequestModel |
| success | Called when the task is finished. A list of ThingSmartMessageDecryptModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDecryptKeyWithEncryptRequestModel: | (NSArray< ThingSmartMessageEncryptRequestModel * > *) | encryptRequestListModel | |
| success: | (void(^)(NSArray< ThingSmartMessageDecryptModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Request message details decryption key
| encryptRequestListModel | A list of encryptRequestModel |
| success | Called when the task is finished. A list of ThingSmartMessageDecryptModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details.
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details.
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details.
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageDetailListWithListRequestModel: | (ThingSmartMessageDetailListRequestModel *) | detailListRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of message details.
| detailListRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageListWithListRequestModel: | (ThingSmartMessageListRequestModel *) | listRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of messages.
| listRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageListWithListRequestModel: | (ThingSmartMessageListRequestModel *) | listRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of messages.
| listRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageListWithListRequestModel: | (ThingSmartMessageListRequestModel *) | listRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of messages.
| listRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) fetchMessageListWithListRequestModel: | (ThingSmartMessageListRequestModel *) | listRequestModel | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *messageList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of messages.
| listRequestModel | Returns a list of ThingSmartMessageListModel. |
| success | Called when the task is finished. A list of ThingSmartMessageListModel is returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) getLatestMessageWithSuccess: | (ThingSuccessDict) | success | |
| failure: | (ThingFailureError) | failure | |
Returns the latest messages of all types.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getLatestMessageWithSuccess: | (ThingSuccessDict) | success | |
| failure: | (ThingFailureError) | failure | |
Returns the latest messages of all types.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getLatestMessageWithSuccess: | (ThingSuccessDict) | success | |
| failure: | (ThingFailureError) | failure | |
Returns the latest messages of all types.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getLatestMessageWithSuccess: | (ThingSuccessDict) | success | |
| failure: | (ThingFailureError) | failure | |
Returns the latest messages of all types.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getMessageDetailListWithType: | (NSInteger) | msgType | |
| msgSrcId: | (NSString *) | msgSrcId | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageDetailListWithListRequestModel:success:failure:] | ||
Get the message list by message type.
| msgType | Message type |
| msgSrcId | Detail message Id |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageDetailListWithType: | (NSInteger) | msgType | |
| msgSrcId: | (NSString *) | msgSrcId | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageDetailListWithListRequestModel:success:failure:] | ||
Get the message list by message type.
| msgType | Message type |
| msgSrcId | Detail message Id |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageDetailListWithType: | (NSInteger) | msgType | |
| msgSrcId: | (NSString *) | msgSrcId | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageDetailListWithListRequestModel:success:failure:] | ||
Get the message list by message type.
| msgType | Message type |
| msgSrcId | Detail message Id |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageDetailListWithType: | (NSInteger) | msgType | |
| msgSrcId: | (NSString *) | msgSrcId | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageDetailListWithListRequestModel:success:failure:] | ||
Get the message list by message type.
| msgType | Message type |
| msgSrcId | Detail message Id |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get the message list.
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get the message list.
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get the message list.
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get the message list.
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get next page message list.
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get next page message list.
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get next page message list.
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageList: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - or - instead") | __deprecated_msg[ThingSmartMessage getMessageListWithType:limit:offset:success:failure:][ThingSmartMessage getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:] | ||
Get next page message list.
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageListWithType: | (ThingMessageType) | msgType | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageListWithListRequestModel:success:failure:] | ||
Get the message list.
| msgType | Message type |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageListWithType: | (ThingMessageType) | msgType | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageListWithListRequestModel:success:failure:] | ||
Get the message list.
| msgType | Message type |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageListWithType: | (ThingMessageType) | msgType | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageListWithListRequestModel:success:failure:] | ||
Get the message list.
| msgType | Message type |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageListWithType: | (ThingMessageType) | msgType | |
| limit: | (NSInteger) | limit | |
| offset: | (NSInteger) | offset | |
| success: | (void(^)(NSArray< ThingSmartMessageListModel * > *list)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage fetchMessageListWithListRequestModel:success:failure:] | ||
Get the message list.
| msgType | Message type |
| limit | Limit |
| offset | Offset start from zero |
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageMaxTime: | (ThingSuccessInt) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage getLatestMessageWithSuccess:failure:] | ||
Get the timestamp of the newest message
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageMaxTime: | (ThingSuccessInt) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage getLatestMessageWithSuccess:failure:] | ||
Get the timestamp of the newest message
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageMaxTime: | (ThingSuccessInt) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage getLatestMessageWithSuccess:failure:] | ||
Get the timestamp of the newest message
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) getMessageMaxTime: | (ThingSuccessInt) | success | |
| failure: | ("This method is) | deprecated | |
| (Use - instead") | __deprecated_msg[ThingSmartMessage getLatestMessageWithSuccess:failure:] | ||
Get the timestamp of the newest message
| success | Success block |
| failure | Failure block |
Provided by category ThingSmartMessage(ThingDeprecatedApi).
| - (void) readMessageWithReadRequestModel: | (ThingSmartMessageListReadRequestModel *) | readRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Sets and reads a list of data of the message center.
| readRequestModel | A list of read messages. All types of messages can be read. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) readMessageWithReadRequestModel: | (ThingSmartMessageListReadRequestModel *) | readRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Sets and reads a list of data of the message center.
| readRequestModel | A list of read messages. All types of messages can be read. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) readMessageWithReadRequestModel: | (ThingSmartMessageListReadRequestModel *) | readRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Sets and reads a list of data of the message center.
| readRequestModel | A list of read messages. All types of messages can be read. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) readMessageWithReadRequestModel: | (ThingSmartMessageListReadRequestModel *) | readRequestModel | |
| success: | (ThingSuccessBOOL) | success | |
| failure: | (ThingFailureError) | failure | |
Sets and reads a list of data of the message center.
| readRequestModel | A list of read messages. All types of messages can be read. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |