public static Dictionary<byte, object> Write(SyncMsgType type, int viewObjectId, bool doExpand)
 {
     var res = new Dictionary<byte, object>();
     res.Add((byte) DiscussionParamKey.IntParameter1, (int) type);
     res.Add((byte) DiscussionParamKey.IntParameter2, viewObjectId);
     res.Add((byte) DiscussionParamKey.BoolParameter1, doExpand);
     return res;
 }
Example #2
0
        public static Dictionary <byte, object> Write(SyncMsgType type, int viewObjectId, bool doExpand)
        {
            var res = new Dictionary <byte, object>();

            res.Add((byte)DiscussionParamKey.IntParameter1, (int)type);
            res.Add((byte)DiscussionParamKey.IntParameter2, viewObjectId);
            res.Add((byte)DiscussionParamKey.BoolParameter1, doExpand);
            return(res);
        }
Example #3
0
        public void SendExplanationModeSyncRequest(SyncMsgType type, int viewObjectId, bool doExpand)
        {
            if (peer == null || peer.PeerState != PeerStateValue.Connected)
            {
                return;
            }

            peer.OpCustom((byte)DiscussionOpCode.ExplanationModeSyncViewRequest,
                          ExplanationModeSyncMsg.Write(type, viewObjectId, doExpand),
                          true);
        }
Example #4
0
        public void SendExplanationModeSyncRequest(SyncMsgType type, int viewObjectId, bool doExpand)
        {
            if (peer == null || peer.PeerState != PeerStateValue.Connected)
                return;

            peer.OpCustom((byte)DiscussionOpCode.ExplanationModeSyncViewRequest,
                          ExplanationModeSyncMsg.Write(type, viewObjectId, doExpand),
                          true);
        }