No longer snapshot

This commit is contained in:
Timo Ley 2020-09-30 22:09:56 +02:00
parent a4ff64bed8
commit a041230f4c
4 changed files with 7 additions and 23 deletions

View File

@ -4,7 +4,7 @@ plugins {
}
group 'ley.jensmemes'
version '1.0-SNAPSHOT'
version '1.0'
repositories {
mavenCentral()

View File

@ -23,15 +23,9 @@ public class CategoryResponse extends Response {
}
@Expose
public String id;
@Expose
public String name;
public Category category;
public Category toCategory() {
Category category = new Category();
category.id = id;
category.name = name;
return category;
}

View File

@ -23,23 +23,9 @@ public class MemeResponse extends Response {
}
@Expose
public int id;
@Expose
public String link;
@Expose
public String category;
@Expose
public String user;
public Meme meme;
public Meme toMeme() {
Meme meme = new Meme();
meme.id = id;
meme.link = link;
meme.category = category;
meme.user = user;
return meme;
}

View File

@ -25,4 +25,8 @@ public class UserResponse extends Response {
@Expose
public User user;
public User toUser() {
return user;
}
}