Skip to content

Commit 5dd824f

Browse files
committed
Add category field to the ForumDiscussion entity
1 parent bc22f68 commit 5dd824f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

library/src/main/java/me/proxer/library/entity/info/ForumDiscussion.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ public class ForumDiscussion implements ProxerIdItem {
3131
@Json(name = "category_id")
3232
private String categoryId;
3333

34+
/**
35+
* Returns the of the category.
36+
*/
37+
@Json(name = "category_name")
38+
private String category;
39+
3440
/**
3541
* Returns the subject.
3642
*/

library/src/test/java/me/proxer/library/api/info/ForumDiscussionsEndpointTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ public void testPath() throws ProxerException, IOException, InterruptedException
4242
}
4343

4444
private ForumDiscussion buildFirstTestForumDiscussion() {
45-
return new ForumDiscussion("384098", "281", "Overlord II - Diskussionsthread",
45+
return new ForumDiscussion("384098", "281", "Airing-Anime",
46+
"Overlord II - Diskussionsthread",
4647
15, 749, new Date(1514199320 * 1000L), "351626", "Asuka..",
4748
new Date(1517246199 * 1000L), "506979", "5devilz");
4849
}
4950

5051
private ForumDiscussion buildLastTestForumDiscussion() {
51-
return new ForumDiscussion("381421", "56",
52+
return new ForumDiscussion("381421", "56", "Anime- und Manga-News",
5253
"Overlord II – neues Visual, weitere Charaktere und Synchronsprecher enthüllt",
5354
35, 32334, new Date(1489228544 * 1000L), "19328", "Moeface",
5455
new Date(1514078674 * 1000L), "470614", "..Rhyanon.");

0 commit comments

Comments
 (0)