public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is TeamMember other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((IsOwner == null && other.IsOwner == null) || (IsOwner?.Equals(other.IsOwner) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) && ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) && ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((AssignedLocations == null && other.AssignedLocations == null) || (AssignedLocations?.Equals(other.AssignedLocations) == true))); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"Name = {(Name == null ? "null" : Name == string.Empty ? "" : Name)}"); toStringOutput.Add($"Permissions = {(Permissions == null ? "null" : $"[{ string.Join(", ", Permissions)} ]")}"); toStringOutput.Add($"IsOwner = {(IsOwner == null ? "null" : IsOwner.ToString())}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}"); }
public override int GetHashCode() { int hashCode = -1607883077; if (Id != null) { hashCode += Id.GetHashCode(); } if (FirstName != null) { hashCode += FirstName.GetHashCode(); } if (LastName != null) { hashCode += LastName.GetHashCode(); } if (Email != null) { hashCode += Email.GetHashCode(); } if (PhoneNumber != null) { hashCode += PhoneNumber.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (IsOwner != null) { hashCode += IsOwner.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } return(hashCode); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"FirstName = {(FirstName == null ? "null" : FirstName == string.Empty ? "" : FirstName)}"); toStringOutput.Add($"LastName = {(LastName == null ? "null" : LastName == string.Empty ? "" : LastName)}"); toStringOutput.Add($"Email = {(Email == null ? "null" : Email == string.Empty ? "" : Email)}"); toStringOutput.Add($"PhoneNumber = {(PhoneNumber == null ? "null" : PhoneNumber == string.Empty ? "" : PhoneNumber)}"); toStringOutput.Add($"LocationIds = {(LocationIds == null ? "null" : $"[{ string.Join(", ", LocationIds)} ]")}"); toStringOutput.Add($"Status = {(Status == null ? "null" : Status.ToString())}"); toStringOutput.Add($"IsOwner = {(IsOwner == null ? "null" : IsOwner.ToString())}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}"); }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId == string.Empty ? "" : ReferenceId)}"); toStringOutput.Add($"IsOwner = {(IsOwner == null ? "null" : IsOwner.ToString())}"); toStringOutput.Add($"Status = {(Status == null ? "null" : Status.ToString())}"); toStringOutput.Add($"GivenName = {(GivenName == null ? "null" : GivenName == string.Empty ? "" : GivenName)}"); toStringOutput.Add($"FamilyName = {(FamilyName == null ? "null" : FamilyName == string.Empty ? "" : FamilyName)}"); toStringOutput.Add($"EmailAddress = {(EmailAddress == null ? "null" : EmailAddress == string.Empty ? "" : EmailAddress)}"); toStringOutput.Add($"PhoneNumber = {(PhoneNumber == null ? "null" : PhoneNumber == string.Empty ? "" : PhoneNumber)}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt == string.Empty ? "" : UpdatedAt)}"); toStringOutput.Add($"AssignedLocations = {(AssignedLocations == null ? "null" : AssignedLocations.ToString())}"); }
public override int GetHashCode() { int hashCode = -1766900605; if (Context != null) { hashCode += Context.GetHashCode(); } if (Id != null) { hashCode += Id.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Permissions != null) { hashCode += Permissions.GetHashCode(); } if (IsOwner != null) { hashCode += IsOwner.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1EmployeeRole other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) && ((Permissions == null && other.Permissions == null) || (Permissions?.Equals(other.Permissions) == true)) && ((IsOwner == null && other.IsOwner == null) || (IsOwner?.Equals(other.IsOwner) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Employee other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((FirstName == null && other.FirstName == null) || (FirstName?.Equals(other.FirstName) == true)) && ((LastName == null && other.LastName == null) || (LastName?.Equals(other.LastName) == true)) && ((Email == null && other.Email == null) || (Email?.Equals(other.Email) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((IsOwner == null && other.IsOwner == null) || (IsOwner?.Equals(other.IsOwner) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true))); }
public override int GetHashCode() { int hashCode = -1084182002; if (Id != null) { hashCode += Id.GetHashCode(); } if (ReferenceId != null) { hashCode += ReferenceId.GetHashCode(); } if (IsOwner != null) { hashCode += IsOwner.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (GivenName != null) { hashCode += GivenName.GetHashCode(); } if (FamilyName != null) { hashCode += FamilyName.GetHashCode(); } if (EmailAddress != null) { hashCode += EmailAddress.GetHashCode(); } if (PhoneNumber != null) { hashCode += PhoneNumber.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } if (AssignedLocations != null) { hashCode += AssignedLocations.GetHashCode(); } return(hashCode); }