Пример #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (header_ == null)
                    {
                        Header = new global::Protocol.ReqHeader();
                    }
                    input.ReadMessage(Header);
                    break;
                }

                case 18: {
                    Message = input.ReadString();
                    break;
                }
                }
            }
        }
Пример #2
0
 public void MergeFrom(BoardcastReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Body.Length != 0)
     {
         Body = other.Body;
     }
     if (other.Kind != 0)
     {
         Kind = other.Kind;
     }
     if (other.Extra.Length != 0)
     {
         Extra = other.Extra;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #3
0
 public void MergeFrom(LoginReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.UserName.Length != 0)
     {
         UserName = other.UserName;
     }
     if (other.Password.Length != 0)
     {
         Password = other.Password;
     }
     if (other.ValidCode.Length != 0)
     {
         ValidCode = other.ValidCode;
     }
     if (other.ValidId.Length != 0)
     {
         ValidId = other.ValidId;
     }
     if (other.PhoneNumber.Length != 0)
     {
         PhoneNumber = other.PhoneNumber;
     }
     if (other.DeviceCode.Length != 0)
     {
         DeviceCode = other.DeviceCode;
     }
     if (other.InviteCode.Length != 0)
     {
         InviteCode = other.InviteCode;
     }
     if (other.LoginType != 0)
     {
         LoginType = other.LoginType;
     }
     if (other.Register != false)
     {
         Register = other.Register;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #4
0
 public void MergeFrom(ExitRoomReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #5
0
 public void MergeFrom(EchoReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Message.Length != 0)
     {
         Message = other.Message;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #6
0
 public void MergeFrom(WithdrawReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Value != 0L)
     {
         Value = other.Value;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #7
0
 public void MergeFrom(GetGameRoomTypeListReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.GameId != 0)
     {
         GameId = other.GameId;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #8
0
 public void MergeFrom(CheckUserIdReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.ReqHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Value.Length != 0)
     {
         Value = other.Value;
     }
     if (other.CheckType != 0)
     {
         CheckType = other.CheckType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #9
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (header_ == null)
                    {
                        Header = new global::Protocol.ReqHeader();
                    }
                    input.ReadMessage(Header);
                    break;
                }

                case 18: {
                    UserName = input.ReadString();
                    break;
                }

                case 26: {
                    Password = input.ReadString();
                    break;
                }

                case 34: {
                    ValidCode = input.ReadString();
                    break;
                }

                case 42: {
                    ValidId = input.ReadString();
                    break;
                }

                case 50: {
                    PhoneNumber = input.ReadString();
                    break;
                }

                case 58: {
                    DeviceCode = input.ReadString();
                    break;
                }

                case 66: {
                    InviteCode = input.ReadString();
                    break;
                }

                case 72: {
                    LoginType = input.ReadInt32();
                    break;
                }

                case 80: {
                    Register = input.ReadBool();
                    break;
                }
                }
            }
        }