- public String getGivenName() {
- return givenName;
- }
-
- public String getFamilyName() {
- return familyName;
- }
-
- public String getColor() {
- return color;
- }
-
- public int getMessageExpirationTime() {
- return messageExpirationTime;
- }
-
- public boolean isBlocked() {
- return blocked;
- }
-
- public boolean isArchived() {
- return archived;
- }
-
- public boolean isProfileSharingEnabled() {
- return profileSharingEnabled;
- }
-
- @Override
- public boolean equals(final Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- final Contact contact = (Contact) o;
- return messageExpirationTime == contact.messageExpirationTime
- && blocked == contact.blocked
- && archived == contact.archived
- && profileSharingEnabled == contact.profileSharingEnabled
- && Objects.equals(givenName, contact.givenName)
- && Objects.equals(familyName, contact.familyName)
- && Objects.equals(color, contact.color);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(givenName,
- familyName,
- color,
- messageExpirationTime,
- blocked,
- archived,
- profileSharingEnabled);
- }
-