public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is RetrieveCashDrawerShiftResponse other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((CashDrawerShift == null && other.CashDrawerShift == null) || (CashDrawerShift?.Equals(other.CashDrawerShift) == true)) && ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true))); }
public override int GetHashCode() { int hashCode = -2011399353; if (Context != null) { hashCode += Context.GetHashCode(); } if (CashDrawerShift != null) { hashCode += CashDrawerShift.GetHashCode(); } if (Errors != null) { hashCode += Errors.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"CashDrawerShift = {(CashDrawerShift == null ? "null" : CashDrawerShift.ToString())}"); toStringOutput.Add($"Errors = {(Errors == null ? "null" : $"[{ string.Join(", ", Errors)} ]")}"); }