Skip to content

Commit 2c3ab9f

Browse files
committed
Remove the disabled flag from chat rooms
1 parent e7f2eeb commit 2c3ab9f

4 files changed

Lines changed: 6 additions & 18 deletions

File tree

library/src/main/java/me/proxer/library/entity/chat/ChatRoom.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,4 @@ public class ChatRoom implements ProxerIdItem {
4141
*/
4242
@Json(name = "flag_readonly")
4343
private boolean isReadOnly;
44-
45-
/**
46-
* Returns if this chat room is disabled.
47-
*/
48-
@Json(name = "flag_disabled")
49-
private boolean isDisabled;
5044
}

library/src/test/java/me/proxer/library/api/chat/PublicChatRoomsEndpointTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ public void testPath() throws ProxerException, IOException, InterruptedException
4141
}
4242

4343
private ChatRoom buildFirstTestRoom() {
44-
return new ChatRoom("1", "Proxer.Me Hauptchat", "Willkommen im Proxer-Chat!",
45-
false, false);
44+
return new ChatRoom("1", "Proxer.Me Hauptchat", "Willkommen im Proxer-Chat!", false);
4645
}
4746

4847
private ChatRoom buildLastTestRoom() {
49-
return new ChatRoom("6", "Chat-Ankündigungen (21.03.18)", "",
50-
true, false);
48+
return new ChatRoom("6", "Chat-Ankündigungen (21.03.18)", "", true);
5149
}
5250
}

library/src/test/java/me/proxer/library/api/chat/UserChatRoomsEndpointTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ public void testPath() throws ProxerException, IOException, InterruptedException
4141
}
4242

4343
private ChatRoom buildFirstTestRoom() {
44-
return new ChatRoom("1", "Proxer.Me Hauptchat", "Willkommen im Proxer-Chat!",
45-
false, false);
44+
return new ChatRoom("1", "Proxer.Me Hauptchat", "Willkommen im Proxer-Chat!", false);
4645
}
4746

4847
private ChatRoom buildLastTestRoom() {
49-
return new ChatRoom("6", "Chat-Ankündigungen (21.03.18)", "",
50-
true, false);
48+
return new ChatRoom("6", "Chat-Ankündigungen (21.03.18)", "", true);
5149
}
5250
}

library/src/test/resources/chat_rooms.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
"id": "1",
77
"name": "Proxer.Me Hauptchat",
88
"topic": "Willkommen im Proxer-Chat!",
9-
"flag_readonly": "0",
10-
"flag_disabled": "0"
9+
"flag_readonly": "0"
1110
},
1211
{
1312
"id": "6",
1413
"name": "Chat-Ankündigungen (21.03.18)",
1514
"topic": "",
16-
"flag_readonly": "1",
17-
"flag_disabled": "0"
15+
"flag_readonly": "1"
1816
}
1917
]
2018
}

0 commit comments

Comments
 (0)