C# Class TwitchLib.Services.FollowerService

Service that allows customizability and subscribing to detection of new Twitch followers.
Afficher le fichier Open project: swiftyspiffy/TwitchLib

Méthodes publiques

Méthode 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

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

Method Details

FollowerService() public méthode

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.
Résultat System

StartService() public méthode

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

StopService() public méthode

Stops service and fires OnServiceStopped event.
public StopService ( ) : void
Résultat void