C# Class OakBot.Clients.TwitchReadOnlyClient

Inheritance: ITwitchClient
Mostrar archivo Open project: ocgineer/OakBot

Public Properties

Property Type Description
restClient RestClient

Public Methods

Method Description
GetBadges ( string channel ) : BadgeResult
GetChannel ( string channel ) : Channel
GetChannelVideos ( string channel, bool broadcasts = false, bool hls = false, PagingInfo pagingInfo = null ) : TwitchList
GetEmoticons ( ) : TwitchList
GetFeaturedStreams ( PagingInfo pagingInfo = null ) : TwitchList
GetFollowedChannel ( string user, string target ) : FollowedChannel
GetFollowedChannels ( string user, PagingInfo pagingInfo = null, SortDirection sortDirection = SortDirection.desc, SortType sortType = SortType.created_at ) : TwitchList
GetFollowers ( string channel, PagingInfo pagingInfo = null ) : TwitchList
GetIngests ( ) : TwitchList
GetRequest ( string url, Method method ) : RestRequest
GetRoot ( ) : RootResult
GetStream ( string channel ) : StreamResult
GetStreamSummary ( string game = null ) : StreamSummary
GetStreams ( string game = null, string channel = null, string clientId = null, PagingInfo pagingInfo = null ) : TwitchList
GetTeam ( string team ) : Team
GetTeams ( PagingInfo pagingInfo = null ) : TwitchList
GetTeams ( string channel ) : TwitchList
GetTopGames ( PagingInfo pagingInfo = null ) : TwitchList
GetTopVideos ( string game = null, PeriodType period = PeriodType.week, PagingInfo pagingInfo = null ) : TwitchList
GetUser ( string user ) : User
GetVideo ( string id ) : Video
IsFollowing ( string user, string target ) : bool
IsLive ( string channel ) : bool
SearchChannels ( string query, PagingInfo pagingInfo = null ) : TwitchList
SearchGames ( string query, bool live = false, PagingInfo pagingInfo = null ) : TwitchList
SearchStreams ( string query, PagingInfo pagingInfo = null ) : TwitchList
SearchStreams ( string query, bool hls, PagingInfo pagingInfo = null ) : TwitchList
TwitchReadOnlyClient ( ) : OakBot.Enums
TwitchReadOnlyClient ( string url ) : OakBot.Enums

Method Details

GetBadges() public method

public GetBadges ( string channel ) : BadgeResult
channel string
return OakBot.Models.BadgeResult

GetChannel() public method

public GetChannel ( string channel ) : Channel
channel string
return OakBot.Models.Channel

GetChannelVideos() public method

public GetChannelVideos ( string channel, bool broadcasts = false, bool hls = false, PagingInfo pagingInfo = null ) : TwitchList
channel string
broadcasts bool
hls bool
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetEmoticons() public method

public GetEmoticons ( ) : TwitchList
return TwitchList

GetFeaturedStreams() public method

public GetFeaturedStreams ( PagingInfo pagingInfo = null ) : TwitchList
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetFollowedChannel() public method

public GetFollowedChannel ( string user, string target ) : FollowedChannel
user string
target string
return OakBot.Models.FollowedChannel

GetFollowedChannels() public method

public GetFollowedChannels ( string user, PagingInfo pagingInfo = null, SortDirection sortDirection = SortDirection.desc, SortType sortType = SortType.created_at ) : TwitchList
user string
pagingInfo OakBot.Helpers.PagingInfo
sortDirection SortDirection
sortType SortType
return TwitchList

GetFollowers() public method

public GetFollowers ( string channel, PagingInfo pagingInfo = null ) : TwitchList
channel string
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetIngests() public method

public GetIngests ( ) : TwitchList
return TwitchList

GetRequest() public method

public GetRequest ( string url, Method method ) : RestRequest
url string
method Method
return RestSharp.RestRequest

GetRoot() public method

public GetRoot ( ) : RootResult
return OakBot.Models.RootResult

GetStream() public method

public GetStream ( string channel ) : StreamResult
channel string
return OakBot.Models.StreamResult

GetStreamSummary() public method

public GetStreamSummary ( string game = null ) : StreamSummary
game string
return OakBot.Models.StreamSummary

GetStreams() public method

public GetStreams ( string game = null, string channel = null, string clientId = null, PagingInfo pagingInfo = null ) : TwitchList
game string
channel string
clientId string
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetTeam() public method

public GetTeam ( string team ) : Team
team string
return OakBot.Models.Team

GetTeams() public method

public GetTeams ( PagingInfo pagingInfo = null ) : TwitchList
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetTeams() public method

public GetTeams ( string channel ) : TwitchList
channel string
return TwitchList

GetTopGames() public method

public GetTopGames ( PagingInfo pagingInfo = null ) : TwitchList
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetTopVideos() public method

public GetTopVideos ( string game = null, PeriodType period = PeriodType.week, PagingInfo pagingInfo = null ) : TwitchList
game string
period PeriodType
pagingInfo OakBot.Helpers.PagingInfo
return TwitchList

GetUser() public method

public GetUser ( string user ) : User
user string
return OakBot.Models.User

GetVideo() public method

public GetVideo ( string id ) : Video
id string
return OakBot.Models.Video

IsFollowing() public method

public IsFollowing ( string user, string target ) : bool
user string
target string
return bool

IsLive() public method

public IsLive ( string channel ) : bool
channel string
return bool

SearchChannels() public method

public SearchChannels ( string query, PagingInfo pagingInfo = null ) : TwitchList
query string
pagingInfo PagingInfo
return TwitchList

SearchGames() public method

public SearchGames ( string query, bool live = false, PagingInfo pagingInfo = null ) : TwitchList
query string
live bool
pagingInfo PagingInfo
return TwitchList

SearchStreams() public method

public SearchStreams ( string query, PagingInfo pagingInfo = null ) : TwitchList
query string
pagingInfo PagingInfo
return TwitchList

SearchStreams() public method

public SearchStreams ( string query, bool hls, PagingInfo pagingInfo = null ) : TwitchList
query string
hls bool
pagingInfo PagingInfo
return TwitchList

TwitchReadOnlyClient() public method

public TwitchReadOnlyClient ( ) : OakBot.Enums
return OakBot.Enums

TwitchReadOnlyClient() public method

public TwitchReadOnlyClient ( string url ) : OakBot.Enums
url string
return OakBot.Enums

Property Details

restClient public_oe property

public RestClient restClient
return RestClient