Esempio n. 1
0
        public override int GetHashCode()
        {
            int hashCode = -1635211081;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (BusinessBookingProfile != null)
            {
                hashCode += BusinessBookingProfile.GetHashCode();
            }

            if (Errors != null)
            {
                hashCode += Errors.GetHashCode();
            }

            return(hashCode);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is RetrieveBusinessBookingProfileResponse other &&
                   ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) &&
                   ((BusinessBookingProfile == null && other.BusinessBookingProfile == null) || (BusinessBookingProfile?.Equals(other.BusinessBookingProfile) == true)) &&
                   ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true)));
        }
Esempio n. 3
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"BusinessBookingProfile = {(BusinessBookingProfile == null ? "null" : BusinessBookingProfile.ToString())}");
     toStringOutput.Add($"Errors = {(Errors == null ? "null" : $"[{ string.Join(", ", Errors)} ]")}");
 }