Exemplo n.º 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.Header();
                    }
                    input.ReadMessage(Header);
                    break;
                }

                case 18: {
                    Content = input.ReadString();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
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.Header();
                    }
                    input.ReadMessage(Header);
                    break;
                }

                case 24: {
                    Result = (global::Protocol.LoginAck.Types.LoginResult)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 3
0
 public void MergeFrom(HeartBeatAck other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.Header();
         }
         Header.MergeFrom(other.Header);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 4
0
 public void MergeFrom(ChatAck other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Content.Length != 0)
     {
         Content = other.Content;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 5
0
 public void MergeFrom(LoginAck other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::Protocol.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }