|
| 1 | +package io.intercom.api; |
| 2 | + |
| 3 | + |
| 4 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 5 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 6 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 7 | + |
| 8 | +@SuppressWarnings("UnusedDeclaration") |
| 9 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 10 | +@JsonInclude(JsonInclude.Include.NON_EMPTY) |
| 11 | +public class Participant { |
| 12 | + |
| 13 | + @JsonProperty("intercom_user_id") |
| 14 | + private String intercomUserId; |
| 15 | + |
| 16 | + @JsonProperty("user_id") |
| 17 | + private String userId; |
| 18 | + |
| 19 | + @JsonProperty("email") |
| 20 | + private String email; |
| 21 | + |
| 22 | + public Participant() { |
| 23 | + } |
| 24 | + |
| 25 | + public String getIntercomUserId() { |
| 26 | + return intercomUserId; |
| 27 | + } |
| 28 | + |
| 29 | + public Participant setIntercomUserId(String intercomUserId) { |
| 30 | + this.intercomUserId = intercomUserId;; |
| 31 | + return this; |
| 32 | + } |
| 33 | + |
| 34 | + public String getUserId() { |
| 35 | + return userId; |
| 36 | + } |
| 37 | + |
| 38 | + public Participant setUserId(String userId) { |
| 39 | + this.userId = userId; |
| 40 | + return this; |
| 41 | + } |
| 42 | + |
| 43 | + public String getEmail() { |
| 44 | + return email; |
| 45 | + } |
| 46 | + |
| 47 | + public Participant setEmail(String email) { |
| 48 | + this.email = email; |
| 49 | + return this; |
| 50 | + } |
| 51 | + |
| 52 | + @Override |
| 53 | + public int hashCode() { |
| 54 | + int result = intercomUserId != null ? intercomUserId.hashCode() : 0; |
| 55 | + result = 31 * result + (userId != null ? userId.hashCode() : 0); |
| 56 | + result = 31 * result + (email != null ? email.hashCode() : 0); |
| 57 | + return result; |
| 58 | + } |
| 59 | + |
| 60 | + @Override |
| 61 | + public boolean equals(Object o) { |
| 62 | + if (this == o) return true; |
| 63 | + if (o == null || getClass() != o.getClass()) return false; |
| 64 | + |
| 65 | + Participant customer = (Participant) o; |
| 66 | + |
| 67 | + if (intercomUserId != null ? !intercomUserId.equals(customer.intercomUserId) : customer.intercomUserId != null) return false; |
| 68 | + if (userId != null ? !userId.equals(customer.userId) : customer.userId != null) return false; |
| 69 | + if (email != null ? !email.equals(customer.email) : customer.email != null) return false; |
| 70 | + return true; |
| 71 | + } |
| 72 | + |
| 73 | + @Override |
| 74 | + public String toString() { |
| 75 | + return "Participant{" + |
| 76 | + ", intercomUserId='" + intercomUserId+ '\'' + |
| 77 | + ", userId='" + userId+ '\'' + |
| 78 | + ", email='" + email+ '\'' + |
| 79 | + "} " + super.toString(); |
| 80 | + } |
| 81 | +} |
0 commit comments