Skip to content

Commit

Permalink
fix check style
Browse files Browse the repository at this point in the history
  • Loading branch information
ariefnurputranto committed Oct 2, 2019
1 parent 14797cc commit 03b2fd6
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public Observable<QiscusAccount> getUserData() {
@Deprecated
public Observable<QiscusChatRoom> getChatRoom(String withEmail, String distinctId, JSONObject options) {
return api.createOrGetChatRoom(QiscusCore.getToken(), Collections.singletonList(withEmail), distinctId,
options == null ? null : options.toString(),null)
options == null ? null : options.toString(), null)
.map(QiscusApiParser::parseQiscusChatRoom);
}

Expand Down Expand Up @@ -283,7 +283,8 @@ public Observable<List<QiscusChatRoom>> getChatRooms(int page, int limit, boolea
.map(QiscusApiParser::parseQiscusChatRoomInfo);
}

public Observable<List<QiscusChatRoom>> getAllChatRooms(boolean showParticipant, boolean showRemoved, boolean showEmpty, int page, int limit) {
public Observable<List<QiscusChatRoom>> getAllChatRooms(boolean showParticipant, boolean showRemoved,
boolean showEmpty, int page, int limit) {
return api.getChatRooms(QiscusCore.getToken(), page, limit, showParticipant, showEmpty, showRemoved)
.map(QiscusApiParser::parseQiscusChatRoomInfo);
}
Expand All @@ -294,7 +295,8 @@ public Observable<List<QiscusChatRoom>> getChatRooms(List<Long> roomIds, List<St
.map(QiscusApiParser::parseQiscusChatRoomInfo);
}

public Observable<List<QiscusChatRoom>> getChatRooms(List<Long> roomIds, List<String> uniqueIds, int page, boolean showRemoved, boolean showParticipant) {
public Observable<List<QiscusChatRoom>> getChatRooms(List<Long> roomIds, List<String> uniqueIds, int page,
boolean showRemoved, boolean showParticipant) {
return api.getChatRooms(QiscusCore.getToken(), roomIds, uniqueIds, showParticipant, showRemoved)
.map(QiscusApiParser::parseQiscusChatRoomInfo);
}
Expand Down Expand Up @@ -876,8 +878,10 @@ public Observable<List<QiscusRoomMember>> getRoomMembers(String roomUniqueId, in
.toList();
}

public Observable<List<QiscusRoomMember>> getParticipants(String roomUniqueId, int offset, String sorting, MetaRoomMembersListener metaRoomMembersListener) {
return api.getRoomParticipants(QiscusCore.getToken(), roomUniqueId, offset, null, sorting, null)
public Observable<List<QiscusRoomMember>> getParticipants(String roomUniqueId, int offset,
String sorting, MetaRoomMembersListener metaRoomMembersListener) {
return api.getRoomParticipants(QiscusCore.getToken(), roomUniqueId, offset,
null, sorting, null)
.map(JsonElement::getAsJsonObject)
.map(jsonResponse -> jsonResponse.getAsJsonObject("results"))
.doOnNext(jsonResults -> {
Expand Down

0 comments on commit 03b2fd6

Please sign in to comment.