Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Creator.Length != 0)
            {
                hash ^= Creator.GetHashCode();
            }
            if (ExtJson.Length != 0)
            {
                hash ^= ExtJson.GetHashCode();
            }
            if (IsStock != false)
            {
                hash ^= IsStock.GetHashCode();
            }
            if (IsNotify != false)
            {
                hash ^= IsNotify.GetHashCode();
            }
            if (AliasType.Length != 0)
            {
                hash ^= AliasType.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (NotificationTypeId != 0)
            {
                hash ^= NotificationTypeId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Counter.Length != 0)
            {
                hash ^= Counter.GetHashCode();
            }
            if (Company.Length != 0)
            {
                hash ^= Company.GetHashCode();
            }
            if (Account.Length != 0)
            {
                hash ^= Account.GetHashCode();
            }
            if (Action != 0)
            {
                hash ^= Action.GetHashCode();
            }
            if (Result.Length != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (ExtJson.Length != 0)
            {
                hash ^= ExtJson.GetHashCode();
            }
            if (Platform != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }