C# Класс BoxKite.Twitter.DirectMessageExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteDirectMessage ( this session, long Id ) : Task

Deletes a sent direct message

ref: https://dev.twitter.com/docs/api/1.1/post/direct_messages/destroy

GetDirectMessageSingle ( this session, long Id ) : Task

Returns a direct message sent to the authenticating user.

ref: https://dev.twitter.com/docs/api/1.1/get/direct_messages/show

GetDirectMessages ( this session, long sinceId, long maxId, int count = 20 ) : Task>

Returns the most recent direct messages sent to the authenticating user.

ref: https://dev.twitter.com/docs/api/1.1/get/direct_messages

GetDirectMessagesSent ( this session, long sinceId, long maxId, int count = 20 ) : Task>

Returns the most recent direct messages sent by the authenticating user.

ref: https://dev.twitter.com/docs/api/1.1/get/direct_messages/sent

SendDirectMessage ( this session, string screenName, string text ) : Task

Sends a direct message sent to a user.

ref: https://dev.twitter.com/docs/api/1.1/post/direct_messages/new

Описание методов

DeleteDirectMessage() публичный статический Метод

Deletes a sent direct message
ref: https://dev.twitter.com/docs/api/1.1/post/direct_messages/destroy
public static DeleteDirectMessage ( this session, long Id ) : Task
session this
Id long ID of the direct message to delete
Результат Task

GetDirectMessageSingle() публичный статический Метод

Returns a direct message sent to the authenticating user.
ref: https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
public static GetDirectMessageSingle ( this session, long Id ) : Task
session this
Id long ID of direct message to return
Результат Task

GetDirectMessages() публичный статический Метод

Returns the most recent direct messages sent to the authenticating user.
ref: https://dev.twitter.com/docs/api/1.1/get/direct_messages
public static GetDirectMessages ( this session, long sinceId, long maxId, int count = 20 ) : Task>
session this
sinceId long Returns results with an ID greater than (that is, more recent than) the specified ID
maxId long Returns results with an ID less than (that is, older than) or equal to the specified ID
count int Specifies the number of direct messages to try and retrieve, up to a maximum of 200
Результат Task>

GetDirectMessagesSent() публичный статический Метод

Returns the most recent direct messages sent by the authenticating user.
ref: https://dev.twitter.com/docs/api/1.1/get/direct_messages/sent
public static GetDirectMessagesSent ( this session, long sinceId, long maxId, int count = 20 ) : Task>
session this
sinceId long Returns results with an ID greater than (that is, more recent than) the specified ID
maxId long Returns results with an ID less than (that is, older than) or equal to the specified ID
count int Specifies the number of direct messages to try and retrieve, up to a maximum of 200
Результат Task>

SendDirectMessage() публичный статический Метод

Sends a direct message sent to a user.
ref: https://dev.twitter.com/docs/api/1.1/post/direct_messages/new
public static SendDirectMessage ( this session, string screenName, string text ) : Task
session this
screenName string Screen name of the recipient
text string Text to send to user
Результат Task