示例#1
0
        public Int64 GetSongIDForQueueID(Int64 p_QueueID)
        {
            var s_SongData = CurrentQueue.FirstOrDefault(p_Item => p_Item.QueueID == p_QueueID);

            if (s_SongData == null)
            {
                return(-1);
            }

            return(s_SongData.SongID);
        }
示例#2
0
        private void OnSongVote(SharkEvent p_SharkEvent)
        {
            var s_Event = (SongVoteEvent)p_SharkEvent;

            var s_SongData = CurrentQueue.FirstOrDefault(p_Item => p_Item.QueueID == s_Event.QueueSongID);

            if (s_SongData == null)
            {
                return;
            }

            s_SongData.Votes = s_Event.VoteChange;
        }