protected virtual void StreamingStateChanged(OnStreamingStateChangedArgs e) { EventHandler <OnStreamingStateChangedArgs> handler = OnStreamingStateChanged; if (handler != null) { handler(this, e); } }
private void OnStreamingStateChanged(object sender, OnStreamingStateChangedArgs e) { if (e.IsStreaming) { Handler.TriggerAction(Name, $"{e.Username} is streaming now!", "Twitch"); } else { Handler.TriggerAction(Name, $"{e.Username} has stopped streaming :(", "Twitch"); } }