Пример #1
0
 public void MergeFrom(ErrorInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.objectAddress_ != null)
     {
         if (objectAddress_ == null)
         {
             objectAddress_ = new Bgs.Protocol.ObjectAddress();
         }
         ObjectAddress.MergeFrom(other.ObjectAddress);
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.ServiceHash != 0)
     {
         ServiceHash = other.ServiceHash;
     }
     if (other.MethodId != 0)
     {
         MethodId = other.MethodId;
     }
 }
Пример #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10:
                {
                    if (objectAddress_ == null)
                    {
                        objectAddress_ = new Bgs.Protocol.ObjectAddress();
                    }
                    input.ReadMessage(objectAddress_);
                    break;
                }

                case 16:
                {
                    Status = input.ReadUInt32();
                    break;
                }

                case 24:
                {
                    ServiceHash = input.ReadUInt32();
                    break;
                }

                case 32:
                {
                    MethodId = input.ReadUInt32();
                    break;
                }
                }
            }
        }