/
SofiMut
/
httpCats
Обзор
Документация
Войти
/
SofiMut
/
httpCats
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/java/CatService.java
55 строк
1 KB
Sofia Stepanova
first_commit
03 ноя 2025, 11:19
03 ноя 2025, 11:19
df831d3
Код
Авторство
О чём код?
import com.fasterxml.jackson.annotation.JsonProperty; public class CatService { private final String id; private final String text; private final String type; private final String user; private final String upvotes; public CatService( @JsonProperty("id") String id, @JsonProperty("text") String text, @JsonProperty("type") String type, @JsonProperty("user") String user, @JsonProperty("upvotes") String upvotes) { this.id = id; this.text = text; this.type = type; this.user = user; this.upvotes = upvotes; } public String getId() { return id; } public String getText() { return text; } public String getType() { return type; } public String getUser() { return user; } public String getUpvotes() { return upvotes; } @Override public String toString() { return "Cat{" + "id=" + id + ", text='" + text + '\'' + ", type='" + type + '\'' + ", user='" + user + '\'' + ", upvotes='" + upvotes + '\'' + '}'; } }