|
3 | 3 | import java.util.Objects; |
4 | 4 |
|
5 | 5 | public class Unpin { |
6 | | - private Long messageId; |
7 | | - private Long chatId; |
8 | | - private Long userId; |
9 | | - private Long ttl; |
10 | | - |
11 | | - public Long getMessageId() { |
12 | | - return messageId; |
13 | | - } |
14 | | - |
15 | | - public void setMessageId(Long messageId) { |
16 | | - this.messageId = messageId; |
17 | | - } |
18 | | - |
19 | | - public Long getChatId() { |
20 | | - return chatId; |
21 | | - } |
22 | | - |
23 | | - public void setChatId(Long chatId) { |
24 | | - this.chatId = chatId; |
25 | | - } |
26 | | - |
27 | | - public Long getUserId() { |
28 | | - return userId; |
29 | | - } |
30 | | - |
31 | | - public void setUserId(Long userId) { |
32 | | - this.userId = userId; |
33 | | - } |
34 | | - |
35 | | - public Long getTtl() { |
36 | | - return ttl; |
37 | | - } |
38 | | - |
39 | | - public void setTtl(Long ttl) { |
40 | | - this.ttl = ttl; |
41 | | - } |
42 | | - |
43 | | - @Override |
44 | | - public boolean equals(Object o) { |
45 | | - if (this == o) return true; |
46 | | - if (o == null || getClass() != o.getClass()) return false; |
47 | | - Unpin unpin = (Unpin) o; |
48 | | - return Objects.equals(messageId, unpin.messageId) && Objects.equals(chatId, unpin.chatId) && Objects.equals(userId, unpin.userId) && Objects.equals(ttl, unpin.ttl); |
49 | | - } |
50 | | - |
51 | | - @Override |
52 | | - public int hashCode() { |
53 | | - return Objects.hash(messageId, chatId, userId, ttl); |
54 | | - } |
55 | | - |
56 | | - @Override |
57 | | - public String toString() { |
58 | | - return "Unpin{" + |
59 | | - "messageId=" + messageId + |
60 | | - ", chatId=" + chatId + |
61 | | - ", userId=" + userId + |
62 | | - ", ttl=" + ttl + |
63 | | - '}'; |
64 | | - } |
| 6 | + private Long messageId; |
| 7 | + private Long chatId; |
| 8 | + private Long ttl; |
| 9 | + |
| 10 | + public Long getMessageId() { |
| 11 | + return messageId; |
| 12 | + } |
| 13 | + |
| 14 | + public void setMessageId(Long messageId) { |
| 15 | + this.messageId = messageId; |
| 16 | + } |
| 17 | + |
| 18 | + public Long getChatId() { |
| 19 | + return chatId; |
| 20 | + } |
| 21 | + |
| 22 | + public void setChatId(Long chatId) { |
| 23 | + this.chatId = chatId; |
| 24 | + } |
| 25 | + |
| 26 | + public Long getTtl() { |
| 27 | + return ttl; |
| 28 | + } |
| 29 | + |
| 30 | + public void setTtl(Long ttl) { |
| 31 | + this.ttl = ttl; |
| 32 | + } |
| 33 | + |
| 34 | + @Override |
| 35 | + public boolean equals(Object o) { |
| 36 | + if (this == o) return true; |
| 37 | + if (o == null || getClass() != o.getClass()) return false; |
| 38 | + Unpin unpin = (Unpin) o; |
| 39 | + return Objects.equals(messageId, unpin.messageId) && Objects.equals(chatId, unpin.chatId) && Objects.equals(ttl, unpin.ttl); |
| 40 | + } |
| 41 | + |
| 42 | + @Override |
| 43 | + public int hashCode() { |
| 44 | + return Objects.hash(messageId, chatId, ttl); |
| 45 | + } |
| 46 | + |
| 47 | + @Override |
| 48 | + public String toString() { |
| 49 | + return "Unpin{" + |
| 50 | + "messageId=" + messageId + |
| 51 | + ", chatId=" + chatId + |
| 52 | + ", ttl=" + ttl + |
| 53 | + '}'; |
| 54 | + } |
65 | 55 | } |
0 commit comments