TwitterDataProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Data Provider for connecting to Twitter service.
public class TwitterDataProvider : Microsoft.Toolkit.Services.DataProviderBase<Microsoft.Toolkit.Services.Twitter.TwitterDataConfig,Microsoft.Toolkit.Parsers.SchemaBase>
type TwitterDataProvider = class
inherit DataProviderBase<TwitterDataConfig, SchemaBase>
Public Class TwitterDataProvider
Inherits DataProviderBase(Of TwitterDataConfig, SchemaBase)
- Inheritance
Constructors
TwitterDataProvider(TwitterOAuthTokens, IAuthenticationBroker, IPasswordManager, IStorageManager, ISignatureManager) |
Initializes a new instance of the TwitterDataProvider class. Constructor. |
TwitterDataProvider(TwitterOAuthTokens) |
Initializes a new instance of the TwitterDataProvider class. Constructor. |
Properties
LoggedIn |
Gets a value indicating whether the provider is already logged in |
UserScreenName |
Gets or sets logged in user information. |
Methods
GetDataAsync<TSchema>(TConfig, Int32, Int32, IParser<TSchema>) |
Derived classes will have to implement this method to return provider data (Inherited from DataProviderBase<TConfig>) |
GetDataAsync<TSchema>(TwitterDataConfig, Int32, Int32, IParser<TSchema>) |
Wrapper around REST API for making data request. |
GetDefaultParser(TConfig) |
Default parser abstract method. (Inherited from DataProviderBase<TConfig,TSchema>) |
GetDefaultParser(TwitterDataConfig) |
Returns parser implementation for specified configuration. |
GetUserAsync(String) |
Retrieve user data. |
GetUserTimeLineAsync<TSchema>(String, Int32, IParser<TSchema>) |
Retrieve user timeline data with specific parser. |
LoadDataAsync(TConfig, Int32, Int32) |
Load data from provider endpoint. (Inherited from DataProviderBase<TConfig,TSchema>) |
LoadDataAsync<TSchema>(TConfig, Int32, Int32, IParser<TSchema>) |
Load data from provider endpoint. (Inherited from DataProviderBase<TConfig>) |
LoginAsync() |
Log user in to Twitter. |
Logout() |
Obsolete.
Log user out of Twitter. |
LogoutAsync() |
Log user out of Twitter. |
SearchAsync<TSchema>(String, Int32, IParser<TSchema>) |
Search for specific hash tag with specific parser. |
StartUserStreamAsync(TwitterUserStreamParser, TwitterStreamCallbacks+TwitterStreamCallback) |
Open a connection to user streams service (Events, DirectMessages...). |
StopStream() |
Stop user's stream |
TweetStatusAsync(String, Stream[]) |
Tweets a status update. |
TweetStatusAsync(TwitterStatus, Stream[]) |
Tweets a status update. |
UploadPictureAsync(Stream) |
Publish a picture to Twitter user's medias. |
ValidateConfig(TConfig) |
Method provided by derived class to validate specified configuration (Inherited from DataProviderBase<TConfig>) |
ValidateConfig(TwitterDataConfig) |
Check validity of configuration. |