Skip to content

Commit

Permalink
Added the field has_main_web_app to the class User
Browse files Browse the repository at this point in the history
  • Loading branch information
mircoianese committed Aug 1, 2024
1 parent 815d772 commit dc795bc
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class User implements Serializable {
private Boolean can_read_all_group_messages;
private Boolean supports_inline_queries;
private Boolean can_connect_to_business;
private Boolean has_main_web_app;

private User() {
}
Expand Down Expand Up @@ -78,12 +79,16 @@ public Boolean canConnectToBusiness() {
return can_connect_to_business != null && can_connect_to_business;
}

public Boolean hasMainWebApp() {
return has_main_web_app;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
User user = (User) o;
return Objects.equals(id, user.id) && Objects.equals(is_bot, user.is_bot) && Objects.equals(first_name, user.first_name) && Objects.equals(last_name, user.last_name) && Objects.equals(username, user.username) && Objects.equals(language_code, user.language_code) && Objects.equals(is_premium, user.is_premium) && Objects.equals(added_to_attachment_menu, user.added_to_attachment_menu) && Objects.equals(can_join_groups, user.can_join_groups) && Objects.equals(can_read_all_group_messages, user.can_read_all_group_messages) && Objects.equals(supports_inline_queries, user.supports_inline_queries) && Objects.equals(can_connect_to_business, user.can_connect_to_business);
return Objects.equals(id, user.id) && Objects.equals(is_bot, user.is_bot) && Objects.equals(first_name, user.first_name) && Objects.equals(last_name, user.last_name) && Objects.equals(username, user.username) && Objects.equals(language_code, user.language_code) && Objects.equals(is_premium, user.is_premium) && Objects.equals(added_to_attachment_menu, user.added_to_attachment_menu) && Objects.equals(can_join_groups, user.can_join_groups) && Objects.equals(can_read_all_group_messages, user.can_read_all_group_messages) && Objects.equals(supports_inline_queries, user.supports_inline_queries) && Objects.equals(can_connect_to_business, user.can_connect_to_business) && Objects.equals(has_main_web_app, user.has_main_web_app);
}

@Override
Expand All @@ -106,6 +111,7 @@ public String toString() {
", can_read_all_group_messages=" + can_read_all_group_messages +
", supports_inline_queries=" + supports_inline_queries +
", can_connect_to_business=" + can_connect_to_business +
", has_main_web_app=" + has_main_web_app +
'}';
}
}

0 comments on commit dc795bc

Please sign in to comment.