@@ -25,6 +25,8 @@ public enum Type {
2525 //Channel and Group
2626 private String title ;
2727
28+ private Boolean all_members_are_administrators ;
29+
2830 public Long id () {
2931 return id ;
3032 }
@@ -49,19 +51,24 @@ public String title() {
4951 return title ;
5052 }
5153
54+ public Boolean allMembersAreAdministrators () {
55+ return all_members_are_administrators ;
56+ }
57+
5258 @ Override
5359 public boolean equals (Object o ) {
5460 if (this == o ) return true ;
5561 if (o == null || getClass () != o .getClass ()) return false ;
5662
5763 Chat chat = (Chat ) o ;
5864
59- if (id != null ? ! id .equals (chat .id ) : chat . id != null ) return false ;
65+ if (! id .equals (chat .id )) return false ;
6066 if (type != chat .type ) return false ;
6167 if (first_name != null ? !first_name .equals (chat .first_name ) : chat .first_name != null ) return false ;
6268 if (last_name != null ? !last_name .equals (chat .last_name ) : chat .last_name != null ) return false ;
6369 if (username != null ? !username .equals (chat .username ) : chat .username != null ) return false ;
64- return title != null ? title .equals (chat .title ) : chat .title == null ;
70+ if (title != null ? !title .equals (chat .title ) : chat .title != null ) return false ;
71+ return all_members_are_administrators != null ? all_members_are_administrators .equals (chat .all_members_are_administrators ) : chat .all_members_are_administrators == null ;
6572 }
6673
6774 @ Override
@@ -78,6 +85,7 @@ public String toString() {
7885 ", last_name='" + last_name + '\'' +
7986 ", username='" + username + '\'' +
8087 ", title='" + title + '\'' +
88+ ", all_members_are_administrators=" + all_members_are_administrators +
8189 '}' ;
8290 }
8391}
0 commit comments