package org.xcolab.client.contest;
import org.xcolab.client.contest.pojo.team.ContestTeamMember;
import org.xcolab.client.contest.pojo.team.ContestTeamMemberRole;
import org.xcolab.util.clients.CoLabService;
import org.xcolab.util.http.ServiceRequestUtils;
import org.xcolab.util.http.client.RestService;
import java.util.List;
import java.util.Map;
public final class ContestTeamMemberClientUtil {
private static final RestService contestService = new RestService(CoLabService.CONTEST,
ServiceRequestUtils.getNamespace());
private static final ContestTeamMemberClient client =
ContestTeamMemberClient.fromService(contestService);
private ContestTeamMemberClientUtil() {
}
public static ContestTeamMemberClient getClient() {
return client;
}
public static ContestTeamMember createContestTeamMember(
ContestTeamMember contestTeamMember) {
return client.createContestTeamMember(contestTeamMember);
}
public static void deleteContestTeamMember(Long contestTeamMemberId) {
client.deleteContestTeamMember(contestTeamMemberId);
}
public static ContestTeamMemberRole getContestTeamMemberRole(long id) {
return client.getContestTeamMemberRole(id);
}
public static List<Long> getAdvisorsForContest(Long contestId) {
return client.getAdvisorsForContest(contestId);
}
public static List<Long> getRoleForContestTeam(Long contestId, Long roleId) {
return client.getRoleForContestTeam(contestId, roleId);
}
public static Map<Long, List<Long>> getContestTeamMembersByRole(
Long contestId) {
return client.getContestTeamMembersByRole(contestId);
}
public static List<ContestTeamMember> getTeamMembers(
Long contestId) {
return client.getTeamMembers(contestId);
}
public static List<ContestTeamMember> getTeamMembers(Long categoryId, Long contestYear) {
return client.getTeamMembers(categoryId, contestYear);
}
public static List<Long> getJudgesForContest(Long contestId) {
return client.getJudgesForContest(contestId);
}
public static List<Long> getFellowsForContest(Long contestId) {
return client.getFellowsForContest(contestId);
}
public static List<Long> getContestManagersForContest(Long contestId) {
return client.getContestManagersForContest(contestId);
}
public static List<Long> getIAFellowsForContest(Long contestId){
return client.getIAFellowsForContest(contestId);
}
}