C# 클래스 TwitchLib.Services.FollowerService

Service that allows customizability and subscribing to detection of new Twitch followers.
파일 보기 프로젝트 열기: swiftyspiffy/TwitchLib

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
_followerServiceTimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
isNewFollower ( Follower follower ) : bool

메소드 상세

FollowerService() 공개 메소드

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.
리턴 System

StartService() 공개 메소드

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

StopService() 공개 메소드

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