internal override void FromProto(object protoObj)
            {
                ShowMessageFromWXReq req = protoObj as ShowMessageFromWXReq;

                if (req != null)
                {
                    Transaction = req.Base.Transaction;
                    Message     = WXBaseMessage.CreateMessage((int)req.Msg.Type);
                    Message?.FromProto(req.Msg);
                }
            }
            internal override void FromProto(object protoObj)
            {
                GetMessageFromWXResp resp = protoObj as GetMessageFromWXResp;

                if (resp != null)
                {
                    Transaction = resp.Base.Transaction;
                    ErrCode     = (int)resp.Base.ErrCode;
                    ErrStr      = resp.Base.ErrStr;
                    Username    = resp.Username;
                    Message     = WXBaseMessage.CreateMessage((int)resp.Msg.Type);
                    Message?.FromProto(resp.Msg);
                }
            }
            internal override void FromProto(object protoObj)
            {
                if (protoObj == null)
                {
                    return;
                }
                ShowMessageFromWXReq showMessageFromWXReq = protoObj as ShowMessageFromWXReq;

                if (showMessageFromWXReq == null)
                {
                    return;
                }
                this.Transaction = showMessageFromWXReq.Base.Transaction;
                this.Message     = WXBaseMessage.CreateMessage((int)showMessageFromWXReq.Msg.Type);
                if (this.Message != null)
                {
                    this.Message.FromProto(showMessageFromWXReq.Msg);
                }
            }
Exemple #4
0
            internal override void FromProto(object protoObj)
            {
                if (protoObj == null)
                {
                    return;
                }
                SendMessageToWXReq sendMessageToWXReq = protoObj as SendMessageToWXReq;

                if (sendMessageToWXReq == null)
                {
                    return;
                }
                this.Transaction = sendMessageToWXReq.Base.Transaction;
                this.Scene       = (int)sendMessageToWXReq.Scene;
                this.Message     = WXBaseMessage.CreateMessage((int)sendMessageToWXReq.Msg.Type);
                if (this.Message != null)
                {
                    this.Message.FromProto(sendMessageToWXReq.Msg);
                }
            }
            internal override void FromProto(object protoObj)
            {
                if (protoObj == null)
                {
                    return;
                }
                GetMessageFromWXResp getMessageFromWXResp = protoObj as GetMessageFromWXResp;

                if (getMessageFromWXResp == null)
                {
                    return;
                }
                this.Transaction = getMessageFromWXResp.Base.Transaction;
                this.ErrCode     = (int)getMessageFromWXResp.Base.ErrCode;
                this.ErrStr      = getMessageFromWXResp.Base.ErrStr;
                this.Username    = getMessageFromWXResp.Username;
                this.Message     = WXBaseMessage.CreateMessage((int)getMessageFromWXResp.Msg.Type);
                if (this.Message != null)
                {
                    this.Message.FromProto(getMessageFromWXResp.Msg);
                }
            }