TextMessage
A text message (SMS).
Collected by TextMessageProbe for the CommunicationSamplingPackage.TEXT_MESSAGE measure, and listed in a TextMessageLog.
- Inheritance
-
- Object
- Serializable
- Data
- TextMessage
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
TextMessage.fromJson
TextMessage.fromSmsMessage
- SmsMessage sms
Creates a TextMessage from an SmsMessage from the telephony plugin.
TextMessage
Properties
address
getter/setter pair
The address (phone number) of the other party of this message.
body
getter/setter pair
The text body of this message.
date
getter/setter pair
The date this message was created.
dateSent
getter/setter pair
The date this message was sent.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
id
getter/setter pair
The id of this message on the device.
read
getter/setter pair
Whether the message has been read.
size
getter/setter pair
The size in bytes of the body of the message.
status
getter/setter pair
The delivery status of the message.
type
getter/setter pair
The type of message, e.g. inbox or sent.
Methods
toJson
Return a JSON encoding of this object.