Example #1
0
        private void OnBeingHosted(EvtOnHostedArgs e)
        {
            string hostedMessage = DataHelper.GetSettingString(SettingsConstants.BEING_HOSTED_MESSAGE, string.Empty);

            if (string.IsNullOrEmpty(hostedMessage) == false)
            {
                string finalMsg = hostedMessage.Replace("{0}", e.HostedData.HostedByChannel);
                MsgHandler.QueueMessage(finalMsg);
            }
        }
Example #2
0
        private void OnChannelHosted(object sender, OnBeingHostedArgs e)
        {
            BeingHostedNotification bHNotif = e.BeingHostedNotification;

            EvtOnHostedArgs hostedArgs = new EvtOnHostedArgs
            {
                HostedData = new EvtHostedData(bHNotif.Channel, bHNotif.HostedByChannel,
                                               bHNotif.Viewers, bHNotif.IsAutoHosted)
            };

            ChannelHostedEvent?.Invoke(hostedArgs);
        }