|
| 1 | +package com.temnenkov.mz.ports.tg.dto; |
| 2 | + |
| 3 | +import com.google.gson.annotations.SerializedName; |
| 4 | + |
| 5 | +public class User { |
| 6 | + @SerializedName("id") |
| 7 | + private long id; |
| 8 | + @SerializedName("is_bot") |
| 9 | + private boolean isBot; |
| 10 | + @SerializedName("first_name") |
| 11 | + private String firstName; |
| 12 | + @SerializedName("last_name") |
| 13 | + private String lastName; |
| 14 | + @SerializedName("username") |
| 15 | + private String username; |
| 16 | + @SerializedName("language_code") |
| 17 | + private String languageCode; |
| 18 | + @SerializedName("is_premium") |
| 19 | + private boolean isPremium; |
| 20 | + |
| 21 | + public long getId() { |
| 22 | + return id; |
| 23 | + } |
| 24 | + |
| 25 | + public void setId(long id) { |
| 26 | + this.id = id; |
| 27 | + } |
| 28 | + |
| 29 | + public boolean isBot() { |
| 30 | + return isBot; |
| 31 | + } |
| 32 | + |
| 33 | + public void setBot(boolean bot) { |
| 34 | + isBot = bot; |
| 35 | + } |
| 36 | + |
| 37 | + public String getFirstName() { |
| 38 | + return firstName; |
| 39 | + } |
| 40 | + |
| 41 | + public void setFirstName(String firstName) { |
| 42 | + this.firstName = firstName; |
| 43 | + } |
| 44 | + |
| 45 | + public String getLastName() { |
| 46 | + return lastName; |
| 47 | + } |
| 48 | + |
| 49 | + public void setLastName(String lastName) { |
| 50 | + this.lastName = lastName; |
| 51 | + } |
| 52 | + |
| 53 | + public String getUsername() { |
| 54 | + return username; |
| 55 | + } |
| 56 | + |
| 57 | + public void setUsername(String username) { |
| 58 | + this.username = username; |
| 59 | + } |
| 60 | + |
| 61 | + public String getLanguageCode() { |
| 62 | + return languageCode; |
| 63 | + } |
| 64 | + |
| 65 | + public void setLanguageCode(String languageCode) { |
| 66 | + this.languageCode = languageCode; |
| 67 | + } |
| 68 | + |
| 69 | + public boolean isPremium() { |
| 70 | + return isPremium; |
| 71 | + } |
| 72 | + |
| 73 | + public void setPremium(boolean premium) { |
| 74 | + isPremium = premium; |
| 75 | + } |
| 76 | + |
| 77 | + @Override |
| 78 | + public String toString() { |
| 79 | + return "User{" + "id=" + id + ", isBot=" + isBot + ", firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + ", username='" + username + '\'' + ", languageCode='" + languageCode + '\'' + ", isPremium=" + isPremium + '}'; |
| 80 | + } |
| 81 | +} |
0 commit comments