public override int GetHashCode()
        {
            int hash = 1;

            if (ResponseCode != 0)
            {
                hash ^= ResponseCode.GetHashCode();
            }
            if (Type != global::Agrirouter.Response.ResponseEnvelope.Types.ResponseBodyType.Messages)
            {
                hash ^= Type.GetHashCode();
            }
            if (ApplicationMessageId.Length != 0)
            {
                hash ^= ApplicationMessageId.GetHashCode();
            }
            if (MessageId.Length != 0)
            {
                hash ^= MessageId.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ResponseCode.GetHashCode();
         hashCode = (hashCode * 397) ^ (ResponseText != null ? ResponseText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AdditionalLines.Count.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResponseCode != 0)
            {
                hash ^= ResponseCode.GetHashCode();
            }
            if (ResponseError.Length != 0)
            {
                hash ^= ResponseError.GetHashCode();
            }
            return(hash);
        }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResponseCode != 0)
            {
                hash ^= ResponseCode.GetHashCode();
            }
            if (errorMsg_ != null)
            {
                hash ^= ErrorMsg.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ver != 0)
            {
                hash ^= Ver.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (duration_ != null)
            {
                hash ^= Duration.GetHashCode();
            }
            if (ResponseCode.Length != 0)
            {
                hash ^= ResponseCode.GetHashCode();
            }
            if (success_ != null)
            {
                hash ^= Success.GetHashCode();
            }
            if (Source.Length != 0)
            {
                hash ^= Source.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            hash ^= Properties.GetHashCode();
            hash ^= Measurements.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #6
0
 /// <summary>
 /// 抛出异常.
 /// </summary>
 /// <param name="code">Code.</param>
 /// <param name="messages">Messages.</param>
 /// <returns>Friendly Exception.</returns>
 public static FriendlyException ThrowException(ResponseCode code, params string[] messages)
 {
     return(ThrowException(code.GetHashCode(), code.GetDescription(), messages));
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (ActionId != null)
         {
             hashCode = hashCode * 59 + ActionId.GetHashCode();
         }
         if (Amount != null)
         {
             hashCode = hashCode * 59 + Amount.GetHashCode();
         }
         if (Currency != null)
         {
             hashCode = hashCode * 59 + Currency.GetHashCode();
         }
         if (Approved != null)
         {
             hashCode = hashCode * 59 + Approved.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         if (AuthCode != null)
         {
             hashCode = hashCode * 59 + AuthCode.GetHashCode();
         }
         if (ResponseCode != null)
         {
             hashCode = hashCode * 59 + ResponseCode.GetHashCode();
         }
         if (ResponseSummary != null)
         {
             hashCode = hashCode * 59 + ResponseSummary.GetHashCode();
         }
         if (ThreeDS != null)
         {
             hashCode = hashCode * 59 + ThreeDS.GetHashCode();
         }
         if (Risk != null)
         {
             hashCode = hashCode * 59 + Risk.GetHashCode();
         }
         if (Source != null)
         {
             hashCode = hashCode * 59 + Source.GetHashCode();
         }
         if (Customer != null)
         {
             hashCode = hashCode * 59 + Customer.GetHashCode();
         }
         if (ProcessedOn != null)
         {
             hashCode = hashCode * 59 + ProcessedOn.GetHashCode();
         }
         if (Reference != null)
         {
             hashCode = hashCode * 59 + Reference.GetHashCode();
         }
         if (Eci != null)
         {
             hashCode = hashCode * 59 + Eci.GetHashCode();
         }
         if (SchemeId != null)
         {
             hashCode = hashCode * 59 + SchemeId.GetHashCode();
         }
         if (Links != null)
         {
             hashCode = hashCode * 59 + Links.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #8
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (StartTime != 0L)
        {
            hash ^= StartTime.GetHashCode();
        }
        if (EndTime != 0L)
        {
            hash ^= EndTime.GetHashCode();
        }
        if (SourceServiceName.Length != 0)
        {
            hash ^= SourceServiceName.GetHashCode();
        }
        if (SourceServiceId != 0)
        {
            hash ^= SourceServiceId.GetHashCode();
        }
        if (SourceServiceInstance.Length != 0)
        {
            hash ^= SourceServiceInstance.GetHashCode();
        }
        if (SourceServiceInstanceId != 0)
        {
            hash ^= SourceServiceInstanceId.GetHashCode();
        }
        if (DestServiceName.Length != 0)
        {
            hash ^= DestServiceName.GetHashCode();
        }
        if (DestServiceId != 0)
        {
            hash ^= DestServiceId.GetHashCode();
        }
        if (DestServiceInstance.Length != 0)
        {
            hash ^= DestServiceInstance.GetHashCode();
        }
        if (DestServiceInstanceId != 0)
        {
            hash ^= DestServiceInstanceId.GetHashCode();
        }
        if (Endpoint.Length != 0)
        {
            hash ^= Endpoint.GetHashCode();
        }
        if (Latency != 0)
        {
            hash ^= Latency.GetHashCode();
        }
        if (ResponseCode != 0)
        {
            hash ^= ResponseCode.GetHashCode();
        }
        if (Status != false)
        {
            hash ^= Status.GetHashCode();
        }
        if (Protocol != 0)
        {
            hash ^= Protocol.GetHashCode();
        }
        if (DetectPoint != 0)
        {
            hash ^= DetectPoint.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }