C# Класс Smrf.SocialNetworkLib.Twitter.TwitterUtil

Provides utility methods for getting social networks from Twitter.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EncodeUrlParameter ( String urlParameter ) : String
EnumerateJsonValues ( String url, String jsonName, Int32 maximumValues, System.Boolean skipMostPage1Errors, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : IEnumerable
EnumerateSearchStatuses ( String searchTerm, Int32 maximumStatuses, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : Object>>.IEnumerable
EnumerateUserValueDictionaries ( String userIDsOrScreenNames, System.Boolean userIDsSpecified, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : Object>>.IEnumerable
GetTwitterResponseAsString ( String url, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : String
OnExceptionWhileEnumeratingJsonValues ( Exception exception, Int32 iPage, System.Boolean bSkipMostPage1Errors ) : void
TwitterUtil ( String twitterAccessToken, String twitterAccessTokenSecret, String userAgent, Int32 timeoutMs ) : System

Initializes a new instance of the TwitterUtil class.

WebExceptionIsDueToRateLimit ( WebException webException ) : System.Boolean

Приватные методы

Метод Описание
AppendCursorToUrl ( String sUrl, String sCursor ) : String
AssertValid ( ) : void
GetRateLimitPauseMs ( WebException oWebException ) : Int32
GetSearchUrl ( String sSearchTerm, String sQueryParametersForNextPage ) : String
TryGetQueryParametersForNextSearchPage ( Object>.Dictionary oResponseDictionary, String &sQueryParametersForNextPage ) : System.Boolean

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

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

public static EncodeUrlParameter ( String urlParameter ) : String
urlParameter String
Результат String

EnumerateJsonValues() публичный Метод

public EnumerateJsonValues ( String url, String jsonName, Int32 maximumValues, System.Boolean skipMostPage1Errors, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : IEnumerable
url String
jsonName String
maximumValues System.Int32
skipMostPage1Errors System.Boolean
requestStatistics RequestStatistics
reportProgressHandler ReportProgressHandler
checkCancellationPendingHandler CheckCancellationPendingHandler
Результат IEnumerable

EnumerateSearchStatuses() публичный Метод

public EnumerateSearchStatuses ( String searchTerm, Int32 maximumStatuses, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : Object>>.IEnumerable
searchTerm String
maximumStatuses System.Int32
requestStatistics RequestStatistics
reportProgressHandler ReportProgressHandler
checkCancellationPendingHandler CheckCancellationPendingHandler
Результат Object>>.IEnumerable

EnumerateUserValueDictionaries() публичный Метод

public EnumerateUserValueDictionaries ( String userIDsOrScreenNames, System.Boolean userIDsSpecified, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : Object>>.IEnumerable
userIDsOrScreenNames String
userIDsSpecified System.Boolean
requestStatistics RequestStatistics
reportProgressHandler ReportProgressHandler
checkCancellationPendingHandler CheckCancellationPendingHandler
Результат Object>>.IEnumerable

GetTwitterResponseAsString() публичный Метод

public GetTwitterResponseAsString ( String url, RequestStatistics requestStatistics, ReportProgressHandler reportProgressHandler, CheckCancellationPendingHandler checkCancellationPendingHandler ) : String
url String
requestStatistics RequestStatistics
reportProgressHandler ReportProgressHandler
checkCancellationPendingHandler CheckCancellationPendingHandler
Результат String

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

public static OnExceptionWhileEnumeratingJsonValues ( Exception exception, Int32 iPage, System.Boolean bSkipMostPage1Errors ) : void
exception System.Exception
iPage System.Int32
bSkipMostPage1Errors System.Boolean
Результат void

TwitterUtil() публичный Метод

Initializes a new instance of the TwitterUtil class.
public TwitterUtil ( String twitterAccessToken, String twitterAccessTokenSecret, String userAgent, Int32 timeoutMs ) : System
twitterAccessToken String /// The Twitter access token to use. ///
twitterAccessTokenSecret String /// The Twitter access token secret to use. ///
userAgent String /// The user agent string to use for web requests. ///
timeoutMs System.Int32 /// Timeout to use for web requests, in milliseconds. ///
Результат System

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

public static WebExceptionIsDueToRateLimit ( WebException webException ) : System.Boolean
webException System.Net.WebException
Результат System.Boolean