package io.evanwong.oss.hipchat.v2.rooms; import io.evanwong.oss.hipchat.v2.commons.DeleteRequest; import io.evanwong.oss.hipchat.v2.commons.NoContent; import org.apache.http.client.HttpClient; import java.util.Map; import java.util.concurrent.ExecutorService; public class RemoveRoomMemberRequest extends DeleteRequest<NoContent> { private final String roomIdOrName; private final String userIdOrEmail; public RemoveRoomMemberRequest(String userIdOrEmail, String roomIdOrName, String accessToken, String baseUrl, HttpClient httpClient, ExecutorService executorService) { super(accessToken, baseUrl, httpClient, executorService); this.roomIdOrName = roomIdOrName; this.userIdOrEmail = userIdOrEmail; } public String getRoomIdOrName() { return roomIdOrName; } public String getUserIdOrEmail() { return userIdOrEmail; } @Override protected Map<String, Object> toQueryMap() { return null; } @Override protected String getPath() { return "/room/" + roomIdOrName + "/member/" + userIdOrEmail; } }