Message
@objc
public class Message : NSObject, APIModel
The Message representing an invitation or request for access to an IoT device.
-
Message ID.
Declaration
Swift
@objc public var messageId: String -
Custom content added to the message by the sender.
Declaration
Swift
@objc public var content: [String : String]? -
Message creation timestamp.
Declaration
Swift
@objc public var createdTs: TimeInterval -
Message update timestamp.
Declaration
Swift
@objc public var updatedTs: TimeInterval -
Message expiration timestamp.
Declaration
Swift
@objc public var expiredTs: TimeInterval -
Has the message expired.
Declaration
Swift
@objc public var isExpired: Bool -
IoT device ID.
Declaration
Swift
@objc public var iotId: String -
Invitation code expiration timestamp.
Declaration
Swift
@objc public var codeExpiredTs: TimeInterval -
The user id of the message receiver.
Declaration
Swift
@objc public var receiverId: String? -
First name of the sender.
Declaration
Swift
@objc public var senderFirstName: String? -
Last name of the sender.
Declaration
Swift
@objc public var senderLastName: String? -
Email address of the sender.
Declaration
Swift
@objc public var senderEmail: String? -
Mobile number of the sender.
Declaration
Swift
@objc public var senderMobile: String?
-
Additional Message properties.
Declaration
Swift
public var additionalProperties: [String : Any?]? -
Initializer with decoder for Message model.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderDecoder parameter.
-
Invitation code.
Declaration
Swift
@objc public var code: String { get } -
The status of the message.
See also
MessageStatusDeclaration
Swift
@objc public var status: MessageStatus { get } -
The type of the message.
See also
MessageTypeDeclaration
Swift
@objc public var type: MessageType { get } -
String value of IoT device type.
Declaration
Swift
@objc public var iotType: String { get } -
Purpose of the message.
Declaration
Swift
@objc public var purpose: MessagePurpose { get } -
Message recipient type.
Declaration
Swift
@objc public var receiverType: IdType { get } -
Message created time.
Declaration
Swift
@objc public var createdTime: Date? { get } -
Code expiry time.
Declaration
Swift
@objc public var codeExpiryTime: Date? { get }
Message Class Reference