Exemple #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    UserId = input.ReadInt64();
                    break;
                }

                case 16: {
                    type_ = (global::Proto.FactorType)input.ReadEnum();
                    break;
                }

                case 26: {
                    Code = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(FactorReq other)
 {
     if (other == null)
     {
         return;
     }
     if (other.UserId != 0L)
     {
         UserId = other.UserId;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }