forked from pengrad/java-telegram-bot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForumTopicCreated.java
More file actions
60 lines (48 loc) · 1.6 KB
/
ForumTopicCreated.java
File metadata and controls
60 lines (48 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.pengrad.telegrambot.model;
import java.io.Serializable;
import java.util.Objects;
public class ForumTopicCreated implements Serializable {
private final static long serialVersionUID = 0L;
private String name;
private Integer icon_color;
private String icon_custom_emoji_id;
private Boolean is_name_implicit;
public String name() {
return name;
}
public Integer iconColor() {
return icon_color;
}
public String iconCustomEmojiId() {
return icon_custom_emoji_id;
}
public Boolean isNameImplicit() {
return is_name_implicit;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ForumTopicCreated that = (ForumTopicCreated) o;
return Objects.equals(name, that.name) &&
Objects.equals(icon_color, that.icon_color) &&
Objects.equals(icon_custom_emoji_id, that.icon_custom_emoji_id) &&
Objects.equals(is_name_implicit, that.is_name_implicit);
}
@Override
public int hashCode() {
return Objects.hash(name,
icon_color,
icon_custom_emoji_id,
is_name_implicit);
}
@Override
public String toString() {
return "ForumTopicCreated{" +
"name='" + name + '\'' +
", icon_color=" + icon_color +
", icon_custom_emoji_id='" + icon_custom_emoji_id + '\'' +
", is_name_implicit=" + is_name_implicit +
'}';
}
}