CoreTweet  0.7.0
Yet another .NET Twitter Library
Public Member Functions | List of all members
CoreTweet.Rest.DirectMessages Class Reference

Provides a set of methods for the wrapper of GET/POST direct_messages. More...

Inheritance diagram for CoreTweet.Rest.DirectMessages:
CoreTweet.Core.ApiProviderBase

Public Member Functions

ListedResponse< DirectMessageReceived (params Expression< Func< string, object >>[] parameters)
 
ListedResponse< DirectMessageReceived (IDictionary< string, object > parameters)
 
ListedResponse< DirectMessageReceived (object parameters)
 
ListedResponse< DirectMessageReceived (long?since_id=null, long?max_id=null, int?count=null, int?page=null, bool?full_text=null, bool?include_entities=null)
 
Task< ListedResponse< DirectMessage > > ReceivedAsync (params Expression< Func< string, object >>[] parameters)
 
Task< ListedResponse< DirectMessage > > ReceivedAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< ListedResponse< DirectMessage > > ReceivedAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< ListedResponse< DirectMessage > > ReceivedAsync (long?since_id=null, long?max_id=null, int?count=null, int?page=null, bool?full_text=null, bool?include_entities=null, CancellationToken cancellationToken=default(CancellationToken))
 
ListedResponse< DirectMessageSent (params Expression< Func< string, object >>[] parameters)
 
ListedResponse< DirectMessageSent (IDictionary< string, object > parameters)
 
ListedResponse< DirectMessageSent (object parameters)
 
ListedResponse< DirectMessageSent (long?since_id=null, long?max_id=null, int?count=null, int?page=null, bool?full_text=null, bool?include_entities=null)
 
Task< ListedResponse< DirectMessage > > SentAsync (params Expression< Func< string, object >>[] parameters)
 
Task< ListedResponse< DirectMessage > > SentAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< ListedResponse< DirectMessage > > SentAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< ListedResponse< DirectMessage > > SentAsync (long?since_id=null, long?max_id=null, int?count=null, int?page=null, bool?full_text=null, bool?include_entities=null, CancellationToken cancellationToken=default(CancellationToken))
 
DirectMessageResponse Show (params Expression< Func< string, object >>[] parameters)
 
DirectMessageResponse Show (IDictionary< string, object > parameters)
 
DirectMessageResponse Show (object parameters)
 
DirectMessageResponse Show (long id, bool?full_text=null)
 
Task< DirectMessageResponseShowAsync (params Expression< Func< string, object >>[] parameters)
 
Task< DirectMessageResponseShowAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseShowAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseShowAsync (long id, bool?full_text=null, CancellationToken cancellationToken=default(CancellationToken))
 
DirectMessageResponse New (params Expression< Func< string, object >>[] parameters)
 
DirectMessageResponse New (IDictionary< string, object > parameters)
 
DirectMessageResponse New (object parameters)
 
DirectMessageResponse New (long user_id, string text)
 
DirectMessageResponse New (string screen_name, string text)
 
Task< DirectMessageResponseNewAsync (params Expression< Func< string, object >>[] parameters)
 
Task< DirectMessageResponseNewAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseNewAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseNewAsync (long user_id, string text, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseNewAsync (string screen_name, string text, CancellationToken cancellationToken=default(CancellationToken))
 
DirectMessageResponse Destroy (params Expression< Func< string, object >>[] parameters)
 
DirectMessageResponse Destroy (IDictionary< string, object > parameters)
 
DirectMessageResponse Destroy (object parameters)
 
DirectMessageResponse Destroy (long id, bool?include_entities=null)
 
Task< DirectMessageResponseDestroyAsync (params Expression< Func< string, object >>[] parameters)
 
Task< DirectMessageResponseDestroyAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseDestroyAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< DirectMessageResponseDestroyAsync (long id, bool?include_entities=null, CancellationToken cancellationToken=default(CancellationToken))
 

Additional Inherited Members

- Public Attributes inherited from CoreTweet.Core.ApiProviderBase
TokensBase IncludedTokens => this.Tokens
 Gets the tokens being used in this instance. More...
 
- Properties inherited from CoreTweet.Core.ApiProviderBase
TokensBase Tokens [get, set]
 Gets or sets the OAuth tokens. More...
 

Detailed Description

Provides a set of methods for the wrapper of GET/POST direct_messages.

Member Function Documentation

DirectMessageResponse CoreTweet.Rest.DirectMessages.Destroy ( params Expression< Func< string, object >>[]  parameters)
inline

Destroys the direct message specified in the required ID parameter.

Available parameters:

- long id (required)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Destroy ( IDictionary< string, object >  parameters)
inline

Destroys the direct message specified in the required ID parameter.

Available parameters:

- long id (required)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Destroy ( object  parameters)
inline

Destroys the direct message specified in the required ID parameter.

Available parameters:

- long id (required)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Destroy ( long  id,
bool?  include_entities = null 
)
inline

Destroys the direct message specified in the required ID parameter.

Parameters
idrequired.
include_entitiesoptional.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.DestroyAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Destroys the direct message specified in the required ID parameter.

Available parameters:

- long id (required)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.DestroyAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Destroys the direct message specified in the required ID parameter.

Available parameters:

- long id (required)

- bool include_entities (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.DestroyAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Destroys the direct message specified in the required ID parameter.

Available parameters:

- long id (required)

- bool include_entities (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.DestroyAsync ( long  id,
bool?  include_entities = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Destroys the direct message specified in the required ID parameter.

Parameters
idrequired.
include_entitiesoptional.
cancellationTokenThe cancellation token.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.New ( params Expression< Func< string, object >>[]  parameters)
inline

Sends a new direct message to the specified user from the authenticating user.

Available parameters:

- long user_id (any one is required)

- string screen_name (any one is required)

- string text (required)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.New ( IDictionary< string, object >  parameters)
inline

Sends a new direct message to the specified user from the authenticating user.

Available parameters:

- long user_id (any one is required)

- string screen_name (any one is required)

- string text (required)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.New ( object  parameters)
inline

Sends a new direct message to the specified user from the authenticating user.

Available parameters:

- long user_id (any one is required)

- string screen_name (any one is required)

- string text (required)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.New ( long  user_id,
string  text 
)
inline

Sends a new direct message to the specified user from the authenticating user.

Parameters
user_idany one is required.
textrequired.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.New ( string  screen_name,
string  text 
)
inline

Sends a new direct message to the specified user from the authenticating user.

Parameters
screen_nameany one is required.
textrequired.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.NewAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Sends a new direct message to the specified user from the authenticating user.

Available parameters:

- long user_id (any one is required)

- string screen_name (any one is required)

- string text (required)

Parameters
parametersThe parameters.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.NewAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a new direct message to the specified user from the authenticating user.

Available parameters:

- long user_id (any one is required)

- string screen_name (any one is required)

- string text (required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.NewAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a new direct message to the specified user from the authenticating user.

Available parameters:

- long user_id (any one is required)

- string screen_name (any one is required)

- string text (required)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.NewAsync ( long  user_id,
string  text,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a new direct message to the specified user from the authenticating user.

Parameters
user_idany one is required.
textrequired.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.NewAsync ( string  screen_name,
string  text,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a new direct message to the specified user from the authenticating user.

Parameters
screen_nameany one is required.
textrequired.
cancellationTokenThe cancellation token.
Returns
The direct message.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Received ( params Expression< Func< string, object >>[]  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Received ( IDictionary< string, object >  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Received ( object  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Received ( long?  since_id = null,
long?  max_id = null,
int?  count = null,
int?  page = null,
bool?  full_text = null,
bool?  include_entities = null 
)
inline

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

Parameters
since_idoptional.
max_idoptional.
countoptional.
pageoptional.
full_textoptional.
include_entitiesoptional.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.ReceivedAsync ( params Expression< Func< string, object >>[]  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.ReceivedAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.ReceivedAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.ReceivedAsync ( long?  since_id = null,
long?  max_id = null,
int?  count = null,
int?  page = null,
bool?  full_text = null,
bool?  include_entities = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

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

Parameters
since_idoptional.
max_idoptional.
countoptional.
pageoptional.
full_textoptional.
include_entitiesoptional.
cancellationTokenThe cancellation token.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Sent ( params Expression< Func< string, object >>[]  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Sent ( IDictionary< string, object >  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Sent ( object  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
ListedResponse<DirectMessage> CoreTweet.Rest.DirectMessages.Sent ( long?  since_id = null,
long?  max_id = null,
int?  count = null,
int?  page = null,
bool?  full_text = null,
bool?  include_entities = null 
)
inline

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

Parameters
since_idoptional.
max_idoptional.
countoptional.
pageoptional.
full_textoptional.
include_entitiesoptional.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.SentAsync ( params Expression< Func< string, object >>[]  parameters)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.SentAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.SentAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

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

Available parameters:

- long since_id (optional)

- long max_id (optional)

- int count (optional)

- int page (optional)

- bool full_text (optional)

- bool include_entities (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct messages.
Task<ListedResponse<DirectMessage> > CoreTweet.Rest.DirectMessages.SentAsync ( long?  since_id = null,
long?  max_id = null,
int?  count = null,
int?  page = null,
bool?  full_text = null,
bool?  include_entities = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

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

Parameters
since_idoptional.
max_idoptional.
countoptional.
pageoptional.
full_textoptional.
include_entitiesoptional.
cancellationTokenThe cancellation token.
Returns
The direct messages.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Show ( params Expression< Func< string, object >>[]  parameters)
inline

Returns a single direct message, specified by an id parameter.

Available parameters:

- long id (required)

- bool full_text (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Show ( IDictionary< string, object >  parameters)
inline

Returns a single direct message, specified by an id parameter.

Available parameters:

- long id (required)

- bool full_text (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Show ( object  parameters)
inline

Returns a single direct message, specified by an id parameter.

Available parameters:

- long id (required)

- bool full_text (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
DirectMessageResponse CoreTweet.Rest.DirectMessages.Show ( long  id,
bool?  full_text = null 
)
inline

Returns a single direct message, specified by an id parameter.

Parameters
idrequired.
full_textoptional.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.ShowAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Returns a single direct message, specified by an id parameter.

Available parameters:

- long id (required)

- bool full_text (optional)

Parameters
parametersThe parameters.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.ShowAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Returns a single direct message, specified by an id parameter.

Available parameters:

- long id (required)

- bool full_text (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.ShowAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Returns a single direct message, specified by an id parameter.

Available parameters:

- long id (required)

- bool full_text (optional)

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The direct message.
Task<DirectMessageResponse> CoreTweet.Rest.DirectMessages.ShowAsync ( long  id,
bool?  full_text = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Returns a single direct message, specified by an id parameter.

Parameters
idrequired.
full_textoptional.
cancellationTokenThe cancellation token.
Returns
The direct message.

The documentation for this class was generated from the following file: