コード例 #1
0
 public void MergeFrom(SecurityLogin other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Login.Length != 0)
     {
         Login = other.Login;
     }
     if (other.Password.Length != 0)
     {
         Password = other.Password;
     }
     if (other.created_ != null)
     {
         if (created_ == null)
         {
             Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Created.MergeFrom(other.Created);
     }
     if (other.passwordUpdate_ != null)
     {
         if (passwordUpdate_ == null)
         {
             PasswordUpdate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PasswordUpdate.MergeFrom(other.PasswordUpdate);
     }
     if (other.agreementAccepted_ != null)
     {
         if (agreementAccepted_ == null)
         {
             AgreementAccepted = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         AgreementAccepted.MergeFrom(other.AgreementAccepted);
     }
     if (other.IsLocked != false)
     {
         IsLocked = other.IsLocked;
     }
     if (other.IsInactive != false)
     {
         IsInactive = other.IsInactive;
     }
     if (other.EmailAddress.Length != 0)
     {
         EmailAddress = other.EmailAddress;
     }
     if (other.PhoneNumber.Length != 0)
     {
         PhoneNumber = other.PhoneNumber;
     }
     if (other.FullName.Length != 0)
     {
         FullName = other.FullName;
     }
     if (other.PrefferredLanguage.Length != 0)
     {
         PrefferredLanguage = other.PrefferredLanguage;
     }
     if (other.ForceChangePassword != false)
     {
         ForceChangePassword = other.ForceChangePassword;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Login.Length != 0)
            {
                hash ^= Login.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (passwordUpdate_ != null)
            {
                hash ^= PasswordUpdate.GetHashCode();
            }
            if (agreementAccepted_ != null)
            {
                hash ^= AgreementAccepted.GetHashCode();
            }
            if (IsLocked != false)
            {
                hash ^= IsLocked.GetHashCode();
            }
            if (IsInactive != false)
            {
                hash ^= IsInactive.GetHashCode();
            }
            if (EmailAddress.Length != 0)
            {
                hash ^= EmailAddress.GetHashCode();
            }
            if (PhoneNumber.Length != 0)
            {
                hash ^= PhoneNumber.GetHashCode();
            }
            if (FullName.Length != 0)
            {
                hash ^= FullName.GetHashCode();
            }
            if (PrefferredLanguage.Length != 0)
            {
                hash ^= PrefferredLanguage.GetHashCode();
            }
            if (ForceChangePassword != false)
            {
                hash ^= ForceChangePassword.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }