本文整理汇总了C#中TwitterSearchResultType类的典型用法代码示例。如果您正苦于以下问题:C# TwitterSearchResultType类的具体用法?C# TwitterSearchResultType怎么用?C# TwitterSearchResultType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TwitterSearchResultType类属于命名空间,在下文中一共展示了TwitterSearchResultType类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BeginSearch
public virtual IAsyncResult BeginSearch(string q, TwitterSearchResultType resultType)
{
return BeginWithHammock<TwitterSearchResult>(WebMethod.Get, "search", FormatAsString, "?q=", q, "&result_type=", resultType);
}
示例2: SearchSince
public virtual IAsyncResult SearchSince(long since_id, string q, int rpp, TwitterSearchResultType resultType, Action<TwitterSearchResult, TwitterResponse> action)
{
return WithHammock(action, "search", FormatAsString, "?since_id=", since_id, "&q=", q, "&rpp=", rpp, "&result_type=", resultType);
}
示例3: SearchBefore
public virtual IAsyncResult SearchBefore(long max_id, string q, int page, int rpp, TwitterSearchResultType resultType, Action<TwitterSearchResult, TwitterResponse> action)
{
return WithHammock(action, "search", FormatAsString, "?max_id=", max_id, "&q=", q, "&page=", page, "&rpp=", rpp, "&result_type=", resultType);
}
示例4: Search
public virtual IAsyncResult Search(string q, TwitterSearchResultType resultType, Action<TwitterSearchResult, TwitterResponse> action)
{
return WithHammock(action, "search", FormatAsString, "?q=", q, "&result_type=", resultType);
}
示例5: SearchSince
public virtual void SearchSince(long since_id, string q, int page, int rpp, TwitterSearchResultType resultType, string geocode, Action<TwitterSearchResult, TwitterResponse> action)
{
WithHammock(action, "search", FormatAsString, "?since_id=", since_id, "&q=", q, "&page=", page, "&rpp=", rpp, "&result_type=", resultType, "&geocode=", geocode);
}
示例6: BeginSearch
public virtual IAsyncResult BeginSearch(string q, int page, int rpp, TwitterSearchResultType resultType, string geocode)
{
return BeginWithHammock<TwitterSearchResult>(WebMethod.Get, "search", FormatAsString, "?q=", q, "&page=", page, "&rpp=", rpp, "&result_type=", resultType, "&geocode=", geocode);
}
示例7: GetRecentTweetsFromQuery
/// <summary>
///
/// </summary>
/// <param name="query"></param>
/// <param name="count"></param>
/// <param name="resultType"></param>
/// <returns></returns>
public IEnumerable<TwitterStatus> GetRecentTweetsFromQuery(String query, int count = 20, TwitterSearchResultType resultType = TwitterSearchResultType.Recent, string language = "eu")
{
return _twitterService.Search(new SearchOptions { Resulttype = resultType, Count = count, Q = query, Lang = language }).Statuses;
}
示例8: Search
public virtual IAsyncResult Search(string q, int page, int rpp, TwitterSearchResultType resultType, string geocode, Action<TwitterSearchResult, TwitterResponse> action)
{
return WithHammock(action, "search", FormatAsString, "?q=", q, "&page=", page, "&rpp=", rpp, "&result_type=", resultType, "&geocode=", geocode);
}
示例9: SearchBefore
public virtual TwitterSearchResult SearchBefore(long max_id, string q, TwitterSearchResultType resultType, string geocode)
{
return WithHammock<TwitterSearchResult>("search", FormatAsString, "?max_id=", max_id, "&q=", q, "&result_type=", resultType, "&geocode=", geocode);
}
示例10: BeginSearchSince
public virtual IAsyncResult BeginSearchSince(long since_id, string q, int rpp, TwitterSearchResultType resultType)
{
return BeginWithHammock<TwitterSearchResult>(WebMethod.Get, "search", FormatAsString, "?since_id=", since_id, "&q=", q, "&rpp=", rpp, "&result_type=", resultType);
}
示例11: BeginSearchBefore
public virtual IAsyncResult BeginSearchBefore(long max_id, string q, int page, int rpp, TwitterSearchResultType resultType)
{
return BeginWithHammock<TwitterSearchResult>(WebMethod.Get, "search", FormatAsString, "?max_id=", max_id, "&q=", q, "&page=", page, "&rpp=", rpp, "&result_type=", resultType);
}