CoreTweet  2.0.0-beta.2
Yet another .NET Twitter Library
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
CoreTweet.Core.TokensBase Class Referenceabstract

Represents an OAuth token. This is an abstract class. More...

Inheritance diagram for CoreTweet.Core.TokensBase:
CoreTweet.OAuth2Token CoreTweet.Tokens

Public Member Functions

Task< AsyncResponseSendRequestAsync (MethodType type, string url, CancellationToken cancellationToken=default(CancellationToken), params Expression< Func< string, object >>[] parameters)
 Sends a request to the specified url with the specified parameters as an asynchronous operation. More...
 
Task< AsyncResponseSendRequestAsync (MethodType type, string url, object parameters, CancellationToken cancellationToken=default(CancellationToken))
 Sends a request to the specified url with the specified parameters as an asynchronous operation. More...
 
Task< AsyncResponseSendRequestAsync (MethodType type, string url, IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 Sends a request to the specified url with the specified parameters as an asynchronous operation. More...
 
Task< AsyncResponseSendStreamingRequestAsync (MethodType type, string url, IEnumerable< KeyValuePair< string, object >> parameters, CancellationToken cancellationToken=default(CancellationToken))
 Sends a streaming request to the specified url with the specified parameters as an asynchronous operation. More...
 
Task< AsyncResponsePostContentAsync (string url, string contentType, byte[] content, CancellationToken cancellationToken=default(CancellationToken))
 Sends a request to the specified url with the specified content as an asynchronous operation. More...
 
abstract string CreateAuthorizationHeader (MethodType type, Uri url, IEnumerable< KeyValuePair< string, object >> parameters)
 When overridden in a descendant class, creates a string for Authorization header. More...
 
HttpWebResponse SendRequest (MethodType type, string url, params Expression< Func< string, object >>[] parameters)
 Sends a request to the specified url with the specified parameters. More...
 
HttpWebResponse SendRequest (MethodType type, string url, object parameters)
 Sends a request to the specified url with the specified parameters. More...
 
HttpWebResponse SendRequest (MethodType type, string url, IDictionary< string, object > parameters)
 Sends a request to the specified url with the specified parameters. More...
 
HttpWebResponse SendStreamingRequest (MethodType type, string url, IEnumerable< KeyValuePair< string, object >> parameters)
 Sends a streaming request to the specified url with the specified parameters. More...
 
HttpWebResponse PostContent (string url, string contentType, byte[] content)
 Sends a request to the specified url with the specified content. More...
 

Public Attributes

V2.V2Api V2 => new V2.V2Api(this)
 
Account Account => new Account(this)
 Gets the wrapper of account. More...
 
Application Application => new Application(this)
 Gets the wrapper of application. More...
 
Blocks Blocks => new Blocks(this)
 Gets the wrapper of blocks. More...
 
Collections Collections => new Collections(this)
 Gets the wrapper of collections. More...
 
DirectMessages DirectMessages => new DirectMessages(this)
 Gets the wrapper of direct_messages. More...
 
Favorites Favorites => new Favorites(this)
 Gets the wrapper of favorites. More...
 
Friends Friends => new Friends(this)
 Gets the wrapper of friends. More...
 
Followers Followers => new Followers(this)
 Gets the wrapper of followers. More...
 
Friendships Friendships => new Friendships(this)
 Gets the wrapper of friendships. More...
 
Geo Geo => new Geo(this)
 Gets the wrapper of geo. More...
 
Help Help => new Help(this)
 Gets the wrapper of help. More...
 
Lists Lists => new Lists(this)
 Gets the wrapper of lists. More...
 
Media Media => new Media(this)
 Gets the wrapper of media. More...
 
Mutes Mutes => new Mutes(this)
 Gets the wrapper of mutes. More...
 
Search Search => new Search(this)
 Gets the wrapper of search. More...
 
SavedSearches SavedSearches => new SavedSearches(this)
 Gets the wrapper of saved_searches. More...
 
Statuses Statuses => new Statuses(this)
 Gets the wrapper of statuses. More...
 
Trends Trends => new Trends(this)
 Gets the wrapper of trends. More...
 
Tweets Tweets => new Tweets(this)
 Gets the wrapper of tweets. More...
 
Users Users => new Users(this)
 Gets the wrapper of users. More...
 
StreamingApi Streaming => new StreamingApi(this)
 Gets the wrapper of the Streaming API. More...
 
AccountActivityApi AccountActivity => new AccountActivityApi(this)
 Gets the wrapper of the Account Activity API. More...
 

Protected Member Functions

 TokensBase ()
 Initializes a new instance of the TokensBase class. More...
 

Properties

string ConsumerKey [get, set]
 Gets or sets the consumer key. More...
 
string ConsumerSecret [get, set]
 Gets or sets the consumer secret. More...
 
ConnectionOptions ConnectionOptions [get, set]
 Gets or sets the options of the connection. More...
 

Detailed Description

Represents an OAuth token. This is an abstract class.

Constructor & Destructor Documentation

◆ TokensBase()

CoreTweet.Core.TokensBase.TokensBase ( )
inlineprotected

Initializes a new instance of the TokensBase class.

Member Function Documentation

◆ CreateAuthorizationHeader()

abstract string CoreTweet.Core.TokensBase.CreateAuthorizationHeader ( MethodType  type,
Uri  url,
IEnumerable< KeyValuePair< string, object >>  parameters 
)
pure virtual

When overridden in a descendant class, creates a string for Authorization header.

Parameters
typeType of HTTP request.
urlThe URL.
parametersThe parameters.
Returns
A string for Authorization header.

Implemented in CoreTweet.Tokens, and CoreTweet.OAuth2Token.

◆ PostContent()

HttpWebResponse CoreTweet.Core.TokensBase.PostContent ( string  url,
string  contentType,
byte[]  content 
)
inline

Sends a request to the specified url with the specified content.

Parameters
urlThe URL.
contentTypeThe Content-Type header.
contentThe content.
Returns
A HttpWebResponse.

◆ PostContentAsync()

Task<AsyncResponse> CoreTweet.Core.TokensBase.PostContentAsync ( string  url,
string  contentType,
byte[]  content,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a request to the specified url with the specified content as an asynchronous operation.

Parameters
urlThe URL.
contentTypeThe Content-Type header.
contentThe content.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns a AsyncResponse.

◆ SendRequest() [1/3]

HttpWebResponse CoreTweet.Core.TokensBase.SendRequest ( MethodType  type,
string  url,
IDictionary< string, object >  parameters 
)
inline

Sends a request to the specified url with the specified parameters.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
Returns
A HttpWebResponse.

◆ SendRequest() [2/3]

HttpWebResponse CoreTweet.Core.TokensBase.SendRequest ( MethodType  type,
string  url,
object  parameters 
)
inline

Sends a request to the specified url with the specified parameters.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
Returns
A HttpWebResponse.

◆ SendRequest() [3/3]

HttpWebResponse CoreTweet.Core.TokensBase.SendRequest ( MethodType  type,
string  url,
params Expression< Func< string, object >>[]  parameters 
)
inline

Sends a request to the specified url with the specified parameters.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
Returns
A HttpWebResponse.

◆ SendRequestAsync() [1/3]

Task<AsyncResponse> CoreTweet.Core.TokensBase.SendRequestAsync ( MethodType  type,
string  url,
CancellationToken  cancellationToken = default(CancellationToken),
params Expression< Func< string, object >>[]  parameters 
)
inline

Sends a request to the specified url with the specified parameters as an asynchronous operation.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns a AsyncResponse.

◆ SendRequestAsync() [2/3]

Task<AsyncResponse> CoreTweet.Core.TokensBase.SendRequestAsync ( MethodType  type,
string  url,
IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a request to the specified url with the specified parameters as an asynchronous operation.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns a AsyncResponse.

◆ SendRequestAsync() [3/3]

Task<AsyncResponse> CoreTweet.Core.TokensBase.SendRequestAsync ( MethodType  type,
string  url,
object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a request to the specified url with the specified parameters as an asynchronous operation.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns a AsyncResponse.

◆ SendStreamingRequest()

HttpWebResponse CoreTweet.Core.TokensBase.SendStreamingRequest ( MethodType  type,
string  url,
IEnumerable< KeyValuePair< string, object >>  parameters 
)
inline

Sends a streaming request to the specified url with the specified parameters.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
Returns
A HttpWebResponse.

◆ SendStreamingRequestAsync()

Task<AsyncResponse> CoreTweet.Core.TokensBase.SendStreamingRequestAsync ( MethodType  type,
string  url,
IEnumerable< KeyValuePair< string, object >>  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Sends a streaming request to the specified url with the specified parameters as an asynchronous operation.

Parameters
typeThe type of HTTP request.
urlThe URL.
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns a AsyncResponse.

Member Data Documentation

◆ Account

Account CoreTweet.Core.TokensBase.Account => new Account(this)

Gets the wrapper of account.

◆ AccountActivity

AccountActivityApi CoreTweet.Core.TokensBase.AccountActivity => new AccountActivityApi(this)

Gets the wrapper of the Account Activity API.

◆ Application

Application CoreTweet.Core.TokensBase.Application => new Application(this)

Gets the wrapper of application.

◆ Blocks

Blocks CoreTweet.Core.TokensBase.Blocks => new Blocks(this)

Gets the wrapper of blocks.

◆ Collections

Collections CoreTweet.Core.TokensBase.Collections => new Collections(this)

Gets the wrapper of collections.

◆ DirectMessages

DirectMessages CoreTweet.Core.TokensBase.DirectMessages => new DirectMessages(this)

Gets the wrapper of direct_messages.

◆ Favorites

Favorites CoreTweet.Core.TokensBase.Favorites => new Favorites(this)

Gets the wrapper of favorites.

◆ Followers

Followers CoreTweet.Core.TokensBase.Followers => new Followers(this)

Gets the wrapper of followers.

◆ Friends

Friends CoreTweet.Core.TokensBase.Friends => new Friends(this)

Gets the wrapper of friends.

◆ Friendships

Friendships CoreTweet.Core.TokensBase.Friendships => new Friendships(this)

Gets the wrapper of friendships.

◆ Geo

Geo CoreTweet.Core.TokensBase.Geo => new Geo(this)

Gets the wrapper of geo.

◆ Help

Help CoreTweet.Core.TokensBase.Help => new Help(this)

Gets the wrapper of help.

◆ Lists

Lists CoreTweet.Core.TokensBase.Lists => new Lists(this)

Gets the wrapper of lists.

◆ Media

Media CoreTweet.Core.TokensBase.Media => new Media(this)

Gets the wrapper of media.

◆ Mutes

Mutes CoreTweet.Core.TokensBase.Mutes => new Mutes(this)

Gets the wrapper of mutes.

◆ SavedSearches

SavedSearches CoreTweet.Core.TokensBase.SavedSearches => new SavedSearches(this)

Gets the wrapper of saved_searches.

◆ Search

Search CoreTweet.Core.TokensBase.Search => new Search(this)

Gets the wrapper of search.

◆ Statuses

Statuses CoreTweet.Core.TokensBase.Statuses => new Statuses(this)

Gets the wrapper of statuses.

◆ Streaming

StreamingApi CoreTweet.Core.TokensBase.Streaming => new StreamingApi(this)

Gets the wrapper of the Streaming API.

◆ Trends

Trends CoreTweet.Core.TokensBase.Trends => new Trends(this)

Gets the wrapper of trends.

◆ Tweets

Tweets CoreTweet.Core.TokensBase.Tweets => new Tweets(this)

Gets the wrapper of tweets.

◆ Users

Users CoreTweet.Core.TokensBase.Users => new Users(this)

Gets the wrapper of users.

◆ V2

V2.V2Api CoreTweet.Core.TokensBase.V2 => new V2.V2Api(this)

Property Documentation

◆ ConnectionOptions

ConnectionOptions CoreTweet.Core.TokensBase.ConnectionOptions
getset

Gets or sets the options of the connection.

◆ ConsumerKey

string CoreTweet.Core.TokensBase.ConsumerKey
getset

Gets or sets the consumer key.

◆ ConsumerSecret

string CoreTweet.Core.TokensBase.ConsumerSecret
getset

Gets or sets the consumer secret.


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