C# Class OakBot.Clients.TwitchAuthenticatedClient

Inheritance: TwitchReadOnlyClient, ITwitchClient
ファイルを表示 Open project: ocgineer/OakBot Class Usage Examples

Public Methods

Method Description
Block ( string target ) : TwitchResponse
CanSubscribeToChannel ( string channel ) : bool
Follow ( string target, bool notifications = false ) : FollowedChannel
GetBlocks ( ) : TwitchList
GetChannelEditors ( ) : TwitchList
GetFollowedStreams ( PagingInfo pagingInfo = null ) : TwitchList
GetFollowedVideos ( PagingInfo pagingInfo = null ) : TwitchList
GetFollowers ( PagingInfo pagingInfo = null, SortDirection sortDirection = SortDirection.asc ) : TwitchList
GetMyChannel ( ) : Channel
GetMyStream ( ) : StreamResult
GetMyUser ( ) : User
GetRequest ( string url, Method method ) : RestRequest
GetSubscribedChannel ( string channel ) : Subscription
GetSubscriber ( string user ) : Subscription
GetSubscribers ( PagingInfo pagingInfo = null, SortDirection sortDirection = SortDirection.asc ) : TwitchList
IsSubscribedToChannel ( string channel ) : bool
IsSubscriber ( string user ) : bool
ResetStreamKey ( ) : User
SetDelay ( long delay ) : Channel
SetGame ( string game ) : Channel
SetTitle ( string title ) : Channel
TriggerCommercial ( int length ) : TwitchResponse

TwitchAuthenticatedClient ( string oauth, string clientId ) : OakBot.Enums
Unblock ( string target ) : TwitchResponse
Unfollow ( string target ) : TwitchResponse
Update ( string status = null, string game = null, long delay = null ) : Channel

Method Details

Block() public method

public Block ( string target ) : TwitchResponse
target string
return OakBot.Models.TwitchResponse

CanSubscribeToChannel() public method

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

Follow() public method

public Follow ( string target, bool notifications = false ) : FollowedChannel
target string
notifications bool
return OakBot.Models.FollowedChannel

GetBlocks() public method

public GetBlocks ( ) : TwitchList
return TwitchList

GetChannelEditors() public method

public GetChannelEditors ( ) : TwitchList
return TwitchList

GetFollowedStreams() public method

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

GetFollowedVideos() public method

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

GetFollowers() public method

public GetFollowers ( PagingInfo pagingInfo = null, SortDirection sortDirection = SortDirection.asc ) : TwitchList
pagingInfo OakBot.Helpers.PagingInfo
sortDirection SortDirection
return TwitchList

GetMyChannel() public method

public GetMyChannel ( ) : Channel
return OakBot.Models.Channel

GetMyStream() public method

public GetMyStream ( ) : StreamResult
return OakBot.Models.StreamResult

GetMyUser() public method

public GetMyUser ( ) : User
return OakBot.Models.User

GetRequest() public method

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

GetSubscribedChannel() public method

public GetSubscribedChannel ( string channel ) : Subscription
channel string
return OakBot.Models.Subscription

GetSubscriber() public method

public GetSubscriber ( string user ) : Subscription
user string
return OakBot.Models.Subscription

GetSubscribers() public method

public GetSubscribers ( PagingInfo pagingInfo = null, SortDirection sortDirection = SortDirection.asc ) : TwitchList
pagingInfo OakBot.Helpers.PagingInfo
sortDirection SortDirection
return TwitchList

IsSubscribedToChannel() public method

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

IsSubscriber() public method

public IsSubscriber ( string user ) : bool
user string
return bool

ResetStreamKey() public method

public ResetStreamKey ( ) : User
return OakBot.Models.User

SetDelay() public method

public SetDelay ( long delay ) : Channel
delay long
return OakBot.Models.Channel

SetGame() public method

public SetGame ( string game ) : Channel
game string
return OakBot.Models.Channel

SetTitle() public method

public SetTitle ( string title ) : Channel
title string
return OakBot.Models.Channel

TriggerCommercial() public method

public TriggerCommercial ( int length ) : TwitchResponse
length int Length of commercial break in seconds. Default value is 30. Valid values are 30, 60, 90, 120, 150, and 180. You can only trigger a commercial once every 8 minutes.
return OakBot.Models.TwitchResponse

TwitchAuthenticatedClient() public method

public TwitchAuthenticatedClient ( string oauth, string clientId ) : OakBot.Enums
oauth string
clientId string
return OakBot.Enums

Unblock() public method

public Unblock ( string target ) : TwitchResponse
target string
return OakBot.Models.TwitchResponse

Unfollow() public method

public Unfollow ( string target ) : TwitchResponse
target string
return OakBot.Models.TwitchResponse

Update() public method

public Update ( string status = null, string game = null, long delay = null ) : Channel
status string
game string
delay long
return OakBot.Models.Channel