C# Class TwitchLib.Services.FollowerService

Service that allows customizability and subscribing to detection of new Twitch followers.
Mostrar archivo Open project: swiftyspiffy/TwitchLib

Public Methods

Method Description
FollowerService ( string channel, int checkIntervalSeconds = 60, int queryCount = 25, string clientId = "" ) : System

Service constructor.

StartService ( ) : void

Downloads recent followers from Twitch, starts service, fires OnServiceStarted event.

StopService ( ) : void

Stops service and fires OnServiceStopped event.

Private Methods

Method Description
_followerServiceTimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
isNewFollower ( Follower follower ) : bool

Method Details

FollowerService() public method

Service constructor.
If channel is invalid, an InvalidChannelException will be thrown.
public FollowerService ( string channel, int checkIntervalSeconds = 60, int queryCount = 25, string clientId = "" ) : System
channel string Param representing the channel the service should monitor.
checkIntervalSeconds int Param representing number of seconds between calls to Twitch Api.
queryCount int Number of recent followers service should request from Twitch Api. Max: 100, Min: 1
clientId string Optional param representing Twitch Api-required application client id, not required if already set.
return System

StartService() public method

Downloads recent followers from Twitch, starts service, fires OnServiceStarted event.
public StartService ( ) : void
return void

StopService() public method

Stops service and fires OnServiceStopped event.
public StopService ( ) : void
return void