Tuya iOS Smart Life App SDK 5.15.0
ThingSmartMessageListModel Class Reference

The model of a message list. More...

#import <ThingSmartMessageListModel.h>

Inheritance diagram for ThingSmartMessageListModel:

Properties

NSString * msgId
 The identifier of a message. More...
 
NSString * msgTypeContent
 The title of a message. More...
 
NSString * msgContent
 The content of a message. More...
 
NSString * dateTime
 The formatted date and time. More...
 
NSInteger time
 The timestamp of a message. More...
 
NSString * icon
 The icon of a message. More...
 
NSArray< ThingSmartMessageAttachModel * > * attachPicList
 A list of attachments. More...
 
BOOL hasNotRead
 
NSString * msgSrcId
 The device ID. Only alert messages support this field. More...
 
NSInteger alarmType
 Valid values: 1 means an alert message. 2 means an automation message. Only alert messages support this field to distinguish between alert messages and automation messages. The home messages and notifications are ignored. More...
 
NSInteger msgType
 The type of message. Valid values: 0 means system messages. 1 means that new devices are added. 2 means that new friends are added. 4 means device alerts. More...
 
NSString * msgCode
 The code of message. More...
 
long long homeID
 The ID of the current home. More...
 
NSString * homeName
 The name of the current home. More...
 
BOOL isNeedPullEncKey
 Is it necessary to pull the key to decrypt attachPicList. If isNeedPullEncKey is true, you need to get the decryption key by calling fetchMessageDecryptKeyWithEncryptRequestModel: success: failure: More...
 
ThingSmartMessageListModelExtendextendParams
 Not all information will be available, some messages will return the orientation of the image, etc. More...
 
NSString * actionURL
 The URL to navigate to when the message is clicked. More...
 
NSString * attachPics
 Attachments (e.g., image.jpg; video.mp4; video.jpg; etc.) More...
 

Detailed Description

The model of a message list.

Definition at line 60 of file ThingSmartMessageListModel.h.

Property Documentation

◆ actionURL

- (NSString *) actionURL
readwritenonatomicstrong

The URL to navigate to when the message is clicked.

Definition at line 110 of file ThingSmartMessageListModel.h.

◆ alarmType

- (NSInteger) alarmType
readwritenonatomicassign

Valid values: 1 means an alert message. 2 means an automation message. Only alert messages support this field to distinguish between alert messages and automation messages. The home messages and notifications are ignored.

Definition at line 89 of file ThingSmartMessageListModel.h.

◆ attachPicList

- (NSArray< ThingSmartMessageAttachModel * > *) attachPicList
readwritenonatomicstrong

A list of attachments.

Definition at line 81 of file ThingSmartMessageListModel.h.

◆ attachPics

- (NSString *) attachPics
readwritenonatomicstrong

Attachments (e.g., image.jpg; video.mp4; video.jpg; etc.)

Definition at line 113 of file ThingSmartMessageListModel.h.

◆ dateTime

- (NSString *) dateTime
readwritenonatomicstrong

The formatted date and time.

Definition at line 72 of file ThingSmartMessageListModel.h.

◆ extendParams

- (ThingSmartMessageListModelExtend *) extendParams
readwritenonatomicstrong

Not all information will be available, some messages will return the orientation of the image, etc.

Definition at line 107 of file ThingSmartMessageListModel.h.

◆ hasNotRead

- (BOOL) hasNotRead
readwritenonatomicassign

Definition at line 83 of file ThingSmartMessageListModel.h.

◆ homeID

- (long long) homeID
readwritenonatomicassign

The ID of the current home.

Definition at line 98 of file ThingSmartMessageListModel.h.

◆ homeName

- (NSString *) homeName
readwritenonatomiccopy

The name of the current home.

Definition at line 101 of file ThingSmartMessageListModel.h.

◆ icon

- (NSString *) icon
readwritenonatomicstrong

The icon of a message.

Definition at line 78 of file ThingSmartMessageListModel.h.

◆ isNeedPullEncKey

- (BOOL) isNeedPullEncKey
readwritenonatomicassign

Is it necessary to pull the key to decrypt attachPicList. If isNeedPullEncKey is true, you need to get the decryption key by calling fetchMessageDecryptKeyWithEncryptRequestModel: success: failure:

Definition at line 104 of file ThingSmartMessageListModel.h.

◆ msgCode

- (NSString *) msgCode
readwritenonatomiccopy

The code of message.

Definition at line 95 of file ThingSmartMessageListModel.h.

◆ msgContent

- (NSString *) msgContent
readwritenonatomicstrong

The content of a message.

Definition at line 69 of file ThingSmartMessageListModel.h.

◆ msgId

- (NSString *) msgId
readwritenonatomicstrong

The identifier of a message.

Definition at line 63 of file ThingSmartMessageListModel.h.

◆ msgSrcId

- (NSString *) msgSrcId
readwritenonatomicstrong

The device ID. Only alert messages support this field.

Definition at line 86 of file ThingSmartMessageListModel.h.

◆ msgType

- (NSInteger) msgType
readwritenonatomicassign

The type of message. Valid values: 0 means system messages. 1 means that new devices are added. 2 means that new friends are added. 4 means device alerts.

Definition at line 92 of file ThingSmartMessageListModel.h.

◆ msgTypeContent

- (NSString *) msgTypeContent
readwritenonatomicstrong

The title of a message.

Definition at line 66 of file ThingSmartMessageListModel.h.

◆ time

- (NSInteger) time
readwritenonatomicassign

The timestamp of a message.

Definition at line 75 of file ThingSmartMessageListModel.h.


The documentation for this class was generated from the following files: