TRM-coding | cdfe548 | 2025-06-06 17:31:01 +0800 | [diff] [blame] | 1 | package entity; |
| 2 | |
| 3 | import java.io.Serializable; |
| 4 | import java.util.Objects; |
| 5 | |
| 6 | public class UserInviteId implements Serializable { |
| 7 | private static final long serialVersionUID = 1L; |
| 8 | |
| 9 | public String userId; |
| 10 | public String inviterEmail; |
| 11 | |
| 12 | public UserInviteId() { |
| 13 | } |
| 14 | |
| 15 | public UserInviteId(String userId, String inviterEmail) { |
| 16 | this.userId = userId; |
| 17 | this.inviterEmail = inviterEmail; |
| 18 | } |
| 19 | |
| 20 | @Override |
| 21 | public boolean equals(Object o) { |
| 22 | if (this == o) return true; |
| 23 | if (o == null || getClass() != o.getClass()) return false; |
| 24 | UserInviteId that = (UserInviteId) o; |
| 25 | return Objects.equals(userId, that.userId) && |
| 26 | Objects.equals(inviterEmail, that.inviterEmail); |
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | public int hashCode() { |
| 31 | return Objects.hash(userId, inviterEmail); |
| 32 | } |
| 33 | } |