Class MessagesReceivedManagement
Class with API to manage received messages in the device database.
public class MessagesReceivedManagement
- Inheritance
-
MessagesReceivedManagement
Properties
Count
Count of received messages available in the device database.
public int Count { get; }
Property Value
UnreadCount
Count of received messages unread available in the device database.
public int UnreadCount { get; }
Property Value
Methods
DeleteAllMessages()
Deletes all the received messages from the device database.
public bool DeleteAllMessages()
Returns
DeleteAllReadMessages()
Deletes all the received messages marked as read from the device database.
public bool DeleteAllReadMessages()
Returns
DeleteMessage(string)
Deletes the specified message from the device database.
public bool DeleteMessage(string id)
Parameters
id
stringID of message.
Returns
MarkAllMessagesRead()
Marks all the received messages as read.
public bool MarkAllMessagesRead()
Returns
MarkMessageRead(string)
Marks the specified message as read.
public bool MarkMessageRead(string id)
Parameters
id
stringID of message.
Returns
ReadMessage(string)
Reads the specified message from the device database.
public MessageReceived ReadMessage(string id)
Parameters
id
stringID of message.
Returns
- MessageReceived
The MessageReceived read.
Remarks
This is will return null if there message doesn't exist in the device database.
ReadNewestMessage()
Reads the newest message from the device database.
public MessageReceived ReadNewestMessage()
Returns
- MessageReceived
The MessageReceived message read.
Remarks
This is will return null if there are no messages in the device database.
ReadOldestMessage()
Reads the oldest message from the device database.
public MessageReceived ReadOldestMessage()
Returns
- MessageReceived
The MessageReceived message read.
Remarks
This is will return null if there are no messages in the device database.