Ejemplo n.º 1
0
 public TwitchMessageThrottledNotification(ITwitchChannelLink channelLink, string message, int allowedInPeriod, TimeSpan period, int sentMessageCount) : base(channelLink)
 {
     Message          = message;
     AllowedInPeriod  = allowedInPeriod;
     Period           = period;
     SentMessageCount = sentMessageCount;
 }
        /// <summary>
        /// Disconnects channel links on application shutdown
        /// </summary>
        public async Task StopAsync()
        {
            foreach (KeyValuePair <ITwitchChannelLink, IServiceScope> entry in _links)
            {
                ITwitchChannelLink link = entry.Key;

                await link.DisconnectAsync()
                .ConfigureAwait(false);
            }
        }
Ejemplo n.º 3
0
 public TwitchConnectedNotification(ITwitchChannelLink channelLink, string botUsername, string autoJoinChannel) : base(channelLink)
 {
     BotUsername     = botUsername;
     AutoJoinChannel = autoJoinChannel;
 }
Ejemplo n.º 4
0
 public TwitchJoinedChannelNotification(ITwitchChannelLink channelLink, string channel, string botUsername) : base(channelLink)
 {
     Channel     = channel;
     BotUsername = botUsername;
 }
Ejemplo n.º 5
0
 public TwitchHostLeftNotification(ITwitchChannelLink channelLink, EventArgs eventArgs) : base(channelLink)
 {
     EventArgs = eventArgs;
 }
Ejemplo n.º 6
0
 public TwitchGiftedSubscriptionNotification(ITwitchChannelLink channelLink, string channel, GiftedSubscription giftedSubscription) : base(channelLink)
 {
     Channel            = channel;
     GiftedSubscription = giftedSubscription;
 }
Ejemplo n.º 7
0
 protected TwitchEvent(ITwitchChannelLink channelLink)
 {
     ChannelLink = channelLink;
 }
 public TwitchDisconnectedNotification(ITwitchChannelLink channelLink, OnDisconnectedEventArgs disconnectedEventArgs) : base(channelLink)
 {
     DisconnectedEventArgs = disconnectedEventArgs;
 }
Ejemplo n.º 9
0
 public TwitchNewSubscriberNotification(ITwitchChannelLink channelLink, string channel, Subscriber subscriber) : base(channelLink)
 {
     Channel    = channel;
     Subscriber = subscriber;
 }
Ejemplo n.º 10
0
 public static Task SendMessageAsync(this ITwitchChannelLink channelLink, string message, string channel, bool dryRun = false)
 {
     channelLink.Client.SendMessage(channel, message, dryRun);
     return(Task.CompletedTask);
 }
 public TwitchMessageSentNotification(ITwitchChannelLink channelLink, SentMessage sentMessage) : base(channelLink)
 {
     SentMessage = sentMessage;
 }
 public TwitchLogNotification(ITwitchChannelLink channelLink, string botUsername, string data, DateTime dateTime) : base(channelLink)
 {
     BotUsername = botUsername;
     Data        = data;
     DateTime    = dateTime;
 }
Ejemplo n.º 13
0
 public TwitchConnectionErrorNotification(ITwitchChannelLink channelLink, string botUsername, ErrorEvent error) : base(channelLink)
 {
     BotUsername = botUsername;
     Error       = error;
 }
Ejemplo n.º 14
0
 public TwitchChannelMessageNotification(ITwitchChannelLink channelLink, ChatMessage chatMessage) : base(channelLink)
 {
     ChatMessage = chatMessage;
 }
Ejemplo n.º 15
0
 public TwitchWhisperMessageNotification(ITwitchChannelLink channelLink, WhisperMessage whisperMessage) : base(channelLink)
 {
     WhisperMessage = whisperMessage;
 }
Ejemplo n.º 16
0
 public TwitchBeingHostedNotification(ITwitchChannelLink channelLink, BeingHostedNotification beingHostedNotification) : base(channelLink)
 {
     BeingHostedNotification = beingHostedNotification;
 }
 protected TwitchNotification(ITwitchChannelLink channelLink) : base(channelLink)
 {
 }
 public TwitchIncorrectLoginNotification(ITwitchChannelLink channelLink, ErrorLoggingInException exception) : base(channelLink)
 {
     Exception = exception;
 }
 public TwitchChannelStateChangedNotification(ITwitchChannelLink channelLink, string channel, ChannelState channelState) : base(channelLink)
 {
     Channel      = channel;
     ChannelState = channelState;
 }
 public TwitchChatCommandReceivedNotification(ITwitchChannelLink channelLink, ChatCommand command) : base(channelLink)
 {
     Command = command;
 }
 public TwitchHostingStoppedNotification(ITwitchChannelLink channelLink, HostingStopped hostingStopped) : base(channelLink)
 {
     HostingStopped = hostingStopped;
 }
 public TwitchExistingUsersDetectedNotification(ITwitchChannelLink channelLink, string channel, List <string> users) : base(channelLink)
 {
     Channel = channel;
     Users   = users;
 }
 public TwitchErrorNotification(ITwitchChannelLink channelLink, Exception exception) : base(channelLink)
 {
     Exception = exception;
 }
 public TwitchChatClearedNotification(ITwitchChannelLink channelLink, string channel) : base(channelLink)
 {
     Channel = channel;
 }