TuyaSmartMessage Class Reference

Inherits from NSObject
Declared in TuyaSmartMessage.h

– getMessageList:failure:

Get the message list. 获取消息列表

- (void)getMessageList:(void ( ^ ) ( NSArray<TuyaSmartMessageListModel*> *list ))success failure:(TYFailureError)failure

Parameters

success

Success block

failure

Failure block

Discussion

Get the message list. 获取消息列表

Declared In

TuyaSmartMessage.h

– getMessageList:offset:success:failure:

Get next page message list. 获取分页的消息列表

- (void)getMessageList:(NSInteger)limit offset:(NSInteger)offset success:(void ( ^ ) ( NSArray<TuyaSmartMessageListModel*> *list ))success failure:(TYFailureError)failure

Parameters

limit

Limit

offset

Offset start from zero

success

Success block

failure

Failure block

Discussion

Get next page message list. 获取分页的消息列表

Declared In

TuyaSmartMessage.h

– deleteMessage:success:failure:

Delete a batch of messages 批量删除消息

- (void)deleteMessage:(NSArray<NSString*> *)messgeIdList success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

messgeIdList

Message Id list

success

Success block

failure

Failure block

Discussion

Delete a batch of messages 批量删除消息

Declared In

TuyaSmartMessage.h

– getMessageMaxTime:failure:

Get the timestamp of the newest message 获取最新一条消息的时间戳

- (void)getMessageMaxTime:(TYSuccessInt)success failure:(TYFailureError)failure

Parameters

success

Success block

failure

Failure block

Discussion

Get the timestamp of the newest message 获取最新一条消息的时间戳

Declared In

TuyaSmartMessage.h

– getMessageListWithType:limit:offset:success:failure:

Get the message list. 获取消息列表

- (void)getMessageListWithType:(NSInteger)msgType limit:(NSInteger)limit offset:(NSInteger)offset success:(void ( ^ ) ( NSArray<TuyaSmartMessageListModel*> *list ))success failure:(TYFailureError)failure

Parameters

msgType

Message type

limit

Limit

offset

Offset start from zero

success

Success block

failure

Failure block

Discussion

Get the message list. 获取消息列表

Declared In

TuyaSmartMessage.h

– getMessageDetailListWithType:msgSrcId:limit:offset:success:failure:

Get the message list by message type. 获取分类消息列表

- (void)getMessageDetailListWithType:(NSInteger)msgType msgSrcId:(NSString *)msgSrcId limit:(NSInteger)limit offset:(NSInteger)offset success:(void ( ^ ) ( NSArray<TuyaSmartMessageListModel*> *list ))success failure:(TYFailureError)failure

Parameters

msgType

Message type

msgSrcId

Detail message Id

limit

Limit

offset

Offset start from zero

success

Success block

failure

Failure block

Discussion

Get the message list by message type. 获取分类消息列表

Declared In

TuyaSmartMessage.h

– getLatestMessageWithSuccess:failure:

Get three types of messages if there are new ones 获取三类消息是否有新消息

- (void)getLatestMessageWithSuccess:(TYSuccessDict)success failure:(TYFailureError)failure

Parameters

success

Success block

failure

Failure block

Discussion

Get three types of messages if there are new ones 获取三类消息是否有新消息

Declared In

TuyaSmartMessage.h

– deleteMessageWithType:ids:msgSrcIds:success:failure:

Delete a batch of messages 批量删除数据

- (void)deleteMessageWithType:(NSInteger)msgType ids:(NSArray *)ids msgSrcIds:(NSArray *)msgSrcIds success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

msgType

Message type

ids

Delete message Id list

msgSrcIds

Delete alarm message Id list

success

Success block

failure

Failure block

Discussion

Delete a batch of messages 批量删除数据

Declared In

TuyaSmartMessage.h

– cancelRequest

Cancel the request being executed. 取消正在进行的操作。

- (void)cancelRequest

Discussion

Cancel the request being executed. 取消正在进行的操作。

Declared In

TuyaSmartMessage.h