public override int GetHashCode() { int hashCode = -1406942862; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (RelativeScheduledDays != null) { hashCode += RelativeScheduledDays.GetHashCode(); } if (Message != null) { hashCode += Message.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (SentAt != null) { hashCode += SentAt.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InvoicePaymentReminder other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((RelativeScheduledDays == null && other.RelativeScheduledDays == null) || (RelativeScheduledDays?.Equals(other.RelativeScheduledDays) == true)) && ((Message == null && other.Message == null) || (Message?.Equals(other.Message) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((SentAt == null && other.SentAt == null) || (SentAt?.Equals(other.SentAt) == true))); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Uid = {(Uid == null ? "null" : Uid == string.Empty ? "" : Uid)}"); toStringOutput.Add($"RelativeScheduledDays = {(RelativeScheduledDays == null ? "null" : RelativeScheduledDays.ToString())}"); toStringOutput.Add($"Message = {(Message == null ? "null" : Message == string.Empty ? "" : Message)}"); toStringOutput.Add($"Status = {(Status == null ? "null" : Status.ToString())}"); toStringOutput.Add($"SentAt = {(SentAt == null ? "null" : SentAt == string.Empty ? "" : SentAt)}"); }