C# Class BoxKite.Twitter.TwitterConnection

Datei anzeigen Open project: nickhodge/BoxKite.Twitter Class Usage Examples

Public Methods

Method Description
AuthenticateUser ( string _callbackuri ) : Task
BeginUserAuthentication ( ) : Task

First stage of PIN-based Authentication (and Authorisation) This will display a web browser, asking the User to log in to Twitter with their account (Authentication) and Authorise this client application to access their Twitter Stream

CompleteUserAuthentication ( string pin, string oAuthToken ) : Task

Second stage of PIN-based Authentication (and Authorisation) confirms the supplied PIN is correct for this user, application, session

StartSearchStreaming ( string textToSearch ) : void

Start a SearchStream

StartUserStreaming ( ) : void

Start UserStreaming

StopSearchStreaming ( ) : void

Stop SearchStreaming

StopUserStreaming ( ) : void

Stop UserStreaming

TwitterConnection ( TwitterCredentials twitterCredentials ) : System
TwitterConnection ( TwitterCredentials twitterCredentials, IPlatformAdaptor platformAdaptor = null ) : System
TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret ) : System
TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret, IPlatformAdaptor platformAdaptor = null ) : System
TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret, string xauthusername, string xauthpassword ) : System
TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret, string xauthusername, string xauthpassword, IPlatformAdaptor platformAdaptor = null ) : System
VerifyUserCredentials ( ) : Task

Given the current session, this will Verify that the current User's credentials are OK And update this TwitterConnection's AccountSettings and AccountDetails

XAuthentication ( string xauthusername, string xauthpassword ) : Task

XAuthentication is a method of creating a set of Credentials for Twitter based on Username and Password Whilst this is in BoxKite.Twitter, it has not been fully tested

Private Methods

Method Description
AddToHomeTimeLine ( Tweet t ) : void
BuildApplicationSession ( string twitterConsumerKey, string twitterConsumerSecret ) : IApplicationSession
BuildUserSession ( ) : IUserSession
BuildUserSession ( string twitterConsumerKey, string twitterConsumerSecret ) : IUserSession
ConnectStreamEvents ( ) : void
ConnectUserStreams ( ) : void
GetDirectMessages_Received_Backfill ( ) : Task
GetDirectMessages_Received_Failover ( long sinceid ) : Task
GetDirectMessages_Sent_Backfill ( ) : Task
GetDirectMessages_Sent_Failover ( long sinceid ) : Task
GetHomeTimeLine_Backfill ( ) : Task
GetHomeTimeLine_Failover ( long sinceid ) : Task
GetMentions_Backfill ( ) : Task
GetMentions_Failover ( long sinceid ) : Task
GetMyTweets_Backfill ( ) : Task
GetMyTweets_Failover ( long sinceid ) : Task
GetRTOfMe_Backfill ( ) : Task
GetRTOfMe_Failover ( long sinceid ) : Task
GetSearchTimeLine_Backfill ( ) : Task
GetSearchTimeLine_Failover ( long sinceid ) : Task
IsUnique ( Tweet t ) : bool
ManageSearchStreamDisconnect ( ) : void
ProcessBackfillPump ( ) : void
ProcessEventsFill_Pump ( ) : void
ProcessSearchBackFill_Pump ( ) : void
StartPollingSearch ( bool status ) : void
StartPollingUpdates ( bool status ) : void

Method Details

AuthenticateUser() public method

public AuthenticateUser ( string _callbackuri ) : Task
_callbackuri string
return Task

BeginUserAuthentication() public method

First stage of PIN-based Authentication (and Authorisation) This will display a web browser, asking the User to log in to Twitter with their account (Authentication) and Authorise this client application to access their Twitter Stream
public BeginUserAuthentication ( ) : Task
return Task

CompleteUserAuthentication() public method

Second stage of PIN-based Authentication (and Authorisation) confirms the supplied PIN is correct for this user, application, session
public CompleteUserAuthentication ( string pin, string oAuthToken ) : Task
pin string PIN as entered by the user
oAuthToken string OAuth token supplied by BeginUserAuthentication
return Task

StartSearchStreaming() public method

Start a SearchStream
public StartSearchStreaming ( string textToSearch ) : void
textToSearch string text string to begin search
return void

StartUserStreaming() public method

Start UserStreaming
public StartUserStreaming ( ) : void
return void

StopSearchStreaming() public method

Stop SearchStreaming
public StopSearchStreaming ( ) : void
return void

StopUserStreaming() public method

Stop UserStreaming
public StopUserStreaming ( ) : void
return void

TwitterConnection() public method

public TwitterConnection ( TwitterCredentials twitterCredentials ) : System
twitterCredentials BoxKite.Twitter.Models.TwitterCredentials
return System

TwitterConnection() public method

public TwitterConnection ( TwitterCredentials twitterCredentials, IPlatformAdaptor platformAdaptor = null ) : System
twitterCredentials BoxKite.Twitter.Models.TwitterCredentials
platformAdaptor IPlatformAdaptor
return System

TwitterConnection() public method

public TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret ) : System
twitterConsumerKey string
twitterConsumerSecret string
return System

TwitterConnection() public method

public TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret, IPlatformAdaptor platformAdaptor = null ) : System
twitterConsumerKey string
twitterConsumerSecret string
platformAdaptor IPlatformAdaptor
return System

TwitterConnection() public method

public TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret, string xauthusername, string xauthpassword ) : System
twitterConsumerKey string
twitterConsumerSecret string
xauthusername string
xauthpassword string
return System

TwitterConnection() public method

public TwitterConnection ( string twitterConsumerKey, string twitterConsumerSecret, string xauthusername, string xauthpassword, IPlatformAdaptor platformAdaptor = null ) : System
twitterConsumerKey string
twitterConsumerSecret string
xauthusername string
xauthpassword string
platformAdaptor IPlatformAdaptor
return System

VerifyUserCredentials() public method

Given the current session, this will Verify that the current User's credentials are OK And update this TwitterConnection's AccountSettings and AccountDetails
public VerifyUserCredentials ( ) : Task
return Task

XAuthentication() public method

XAuthentication is a method of creating a set of Credentials for Twitter based on Username and Password Whilst this is in BoxKite.Twitter, it has not been fully tested
public XAuthentication ( string xauthusername, string xauthpassword ) : Task
xauthusername string user supplied Username
xauthpassword string user supplied Password
return Task