C# Класс TwitchLib.Services.FollowerService

Service that allows customizability and subscribing to detection of new Twitch followers.
Показать файл Открыть проект

Открытые методы

Метод Описание
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