-
Notifications
You must be signed in to change notification settings - Fork 221
Messages before version 4.x
linvi edited this page Aug 10, 2018
·
1 revision
Private Messages are messages that can be send between 2 users without having to display it publicly on a any Timeline
. As a result all operation related with Messages will be performed through the authenticated user.
// Messages Received
var latestMessagesReceived = Message.GetLatestMessagesReceived();
var latestMessagesReceivedParameters = new GetLatestMessagesReceivedRequestParameters();
var latestMessagesReceived = Message.GetLatestMessagesReceived(latestMessagesReceivedParameters);
// Messages Sent
var latestMessagesSent = Message.GetLatestMessagesSent();
var latestMessagesSentParameters = new GetLatestMessagesSentRequestParameters();
var latestMessagesSent = Message.GetLatestMessagesSent(latestMessagesSentParameters);
Get a specific message from its id.
var message = Message.GetExistingMessage(<user_identifier>);
// Single Line
var message = Message.PublishMessage("Messages Rocks around here!", <user_identifier>);
// Multiple Lines
var message = Message.CreateMessage("Messages Rocks around here!");
var success = message.Publish();
// You can check if a message has been published
var isPublished = message.IsMessagePublished;
// Destroy from static class Message
var success = Message.DestroyMessage(<message_identifier>);
// Destroy from Message object
var success = message.Destroy();
// With an object you can check if the message has been deleted
var isDeleted = message.IsMessageDestroyed;