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; }
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); }
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); }
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); }