Ejemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

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

                case 32: {
                    citStatus_ = (global::Suresecureivs.SvrClient.Types.Status)input.ReadEnum();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(SvrClient other)
 {
     if (other == null)
     {
         return;
     }
     if (other.UserName.Length != 0)
     {
         UserName = other.UserName;
     }
     if (other.EndPoint.Length != 0)
     {
         EndPoint = other.EndPoint;
     }
     if (other.ConnectTime.Length != 0)
     {
         ConnectTime = other.ConnectTime;
     }
     if (other.CitStatus != 0)
     {
         CitStatus = other.CitStatus;
     }
 }