public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ Time.GetHashCode(); hashCode = (hashCode * 397) ^ SellerId.GetHashCode(); hashCode = (hashCode * 397) ^ Stars.GetHashCode(); return(hashCode); } }
public string GetWidgetUrl() { if (SellerId.IsEmpty()) { return(null); } string url = (UseSandbox ? AmazonPayCore.UrlWidgetSandbox : AmazonPayCore.UrlWidgetProduction); url = url.FormatWith(Marketplace ?? "de"); return("{0}?sellerId={1}".FormatWith( url, HttpUtility.UrlEncode(SellerId) )); }
public override int GetHashCode() { int hashCode = 604613904; if (SellerId != null) { hashCode += SellerId.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (BookingEnabled != null) { hashCode += BookingEnabled.GetHashCode(); } if (CustomerTimezoneChoice != null) { hashCode += CustomerTimezoneChoice.GetHashCode(); } if (BookingPolicy != null) { hashCode += BookingPolicy.GetHashCode(); } if (AllowUserCancel != null) { hashCode += AllowUserCancel.GetHashCode(); } if (BusinessAppointmentSettings != null) { hashCode += BusinessAppointmentSettings.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is BusinessBookingProfile other && ((SellerId == null && other.SellerId == null) || (SellerId?.Equals(other.SellerId) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((BookingEnabled == null && other.BookingEnabled == null) || (BookingEnabled?.Equals(other.BookingEnabled) == true)) && ((CustomerTimezoneChoice == null && other.CustomerTimezoneChoice == null) || (CustomerTimezoneChoice?.Equals(other.CustomerTimezoneChoice) == true)) && ((BookingPolicy == null && other.BookingPolicy == null) || (BookingPolicy?.Equals(other.BookingPolicy) == true)) && ((AllowUserCancel == null && other.AllowUserCancel == null) || (AllowUserCancel?.Equals(other.AllowUserCancel) == true)) && ((BusinessAppointmentSettings == null && other.BusinessAppointmentSettings == null) || (BusinessAppointmentSettings?.Equals(other.BusinessAppointmentSettings) == true))); }