◆ ApiService()
TwitchLib.Api.Services.ApiService.ApiService |
( |
ITwitchAPI |
api, |
|
|
int |
checkIntervalInSeconds |
|
) |
| |
|
protected |
Constructor from the ApiService.
- Exceptions
-
ArgumentNullException | When the api is null. |
ArgumentException | When the checkIntervalInSeconds is lower than one second. |
- Parameters
-
api | The api used to query information. |
checkIntervalInSeconds | |
◆ OnServiceTimerTick()
virtual Task TwitchLib.Api.Services.ApiService.OnServiceTimerTick |
( |
| ) |
|
|
protectedvirtual |
◆ SetChannels()
virtual void TwitchLib.Api.Services.ApiService.SetChannels |
( |
List< string > |
channelsToMonitor | ) |
|
|
protectedvirtual |
Sets channels by to monitor.
- Exceptions
-
ArgumentNullException | When channelsToMonitor is null. |
ArgumentException | When channelsToMonitor is empty. |
- Parameters
-
channelsToMonitor | The channels to monitor. |
◆ Start()
virtual void TwitchLib.Api.Services.ApiService.Start |
( |
| ) |
|
|
virtual |
Starts the service.
- Exceptions
-
InvalidOperationException | When no channels have been added to the service |
InvalidOperationException | When the service has already been started. |
◆ Stop()
virtual void TwitchLib.Api.Services.ApiService.Stop |
( |
| ) |
|
|
virtual |
Stops the service.
- Exceptions
-
InvalidOperationException | When the service hasn't started yet, or has already been stopped. |
◆ _api
readonly ITwitchAPI TwitchLib.Api.Services.ApiService._api |
|
protected |
◆ ChannelsToMonitor
List<string> TwitchLib.Api.Services.ApiService.ChannelsToMonitor |
|
get |
The list with channels to monitor.
◆ Enabled
bool TwitchLib.Api.Services.ApiService.Enabled |
|
get |
Whether the service is currently enabled or not.
◆ IntervalInSeconds
int TwitchLib.Api.Services.ApiService.IntervalInSeconds |
|
get |
How often the service is being updated in seconds.
◆ OnChannelsSet
Event invoked when the channels have been set.
◆ OnServiceStarted
Event invoked when the service has started.
◆ OnServiceStopped
Event invoked when the service has stopped.
◆ OnServiceTick
Event invoked when the service is updating.
The documentation for this class was generated from the following file: