public void AddSLCBEvent(JSONSLCBEvent SLCBEvent)
        {
            eventQueue.Enqueue(SLCBEvent);

            /* continue thread */
            _event.Set();
        }
Exemple #2
0
        public void AddListViewEventsItem(JSONSLCBEvent SLCBEvent)
        {
            string eventname   = [email protected]([email protected]("_") + 1);
            string information = "";

            switch (eventname)
            {
            case "FOLLOW":
            case "MX_FOLLOW":
                information = "User: "******"SUB":
            case "MX_SUB":
            case "YT_SUB":
                information = "User: "******", gifted to " + SLCBEvent.EventData.gift_target : "") + ", tier: " + SLCBEvent.EventData.tier + ", months: " + SLCBEvent.EventData.months;
                break;

            case "DONATION":
                information = "User: "******", " + SLCBEvent.EventData.amount + SLCBEvent.EventData.currency;
                break;

            case "CHEER":
                information = "User: "******", bits: " + SLCBEvent.EventData.bits + ", total: " + SLCBEvent.EventData.total_bits;
                break;

            case "HOST":
            case "MX_HOST":
                information = "User: "******", Viewers: " + SLCBEvent.EventData.viewers;
                break;

            case "RAID":
                information = "User: "******", Viewers: " + SLCBEvent.EventData.viewers;
                break;

            case "CHATCMD":
                information = "User: " + SLCBEvent.EventData.display_name;
                break;
            }
            AddListViewEventsItem(SLCBEvent.Date, eventname, information);
        }