Пример #1
0
 public static ClusterBadgeMessage Read(Dictionary<byte, object> par)
 {
     var res = new ClusterBadgeMessage();
     res.ownerId = (int) par[(byte) DiscussionParamKey.ShapeOwnerId];
     res.badgeId = (int) par[(byte) DiscussionParamKey.ShapeId];
     res.clusterId = (int) par[(byte) DiscussionParamKey.ClusterId];
     res.playImmidiately = (bool) par[(byte) DiscussionParamKey.BoolParameter1];
     res.topicId = (int) par[(byte) DiscussionParamKey.ChangedTopicId];
     res.callToken = (int) par[(byte) DiscussionParamKey.CallToken];
     return res;
 }
Пример #2
0
        public static ClusterBadgeMessage Read(Dictionary <byte, object> par)
        {
            var res = new ClusterBadgeMessage();

            res.ownerId         = (int)par[(byte)DiscussionParamKey.ShapeOwnerId];
            res.badgeId         = (int)par[(byte)DiscussionParamKey.ShapeId];
            res.clusterId       = (int)par[(byte)DiscussionParamKey.ClusterId];
            res.playImmidiately = (bool)par[(byte)DiscussionParamKey.BoolParameter1];
            res.topicId         = (int)par[(byte)DiscussionParamKey.ChangedTopicId];
            res.callToken       = (int)par[(byte)DiscussionParamKey.CallToken];
            return(res);
        }
Пример #3
0
        void __clusterBadge(ClusterBadgeMessage ev)
        {
            if (ev.topicId != TopicId)
                return;

            clusterRebuildPending = false;
            PlayClusterBadge(ev.clusterId, ev.badgeId, ev.playImmidiately, ev.callToken);
        }