All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gpluscb.ggjava.entity.object.response.objects.EventTeamResponse Maven / Gradle / Ivy

package com.github.gpluscb.ggjava.entity.object.response.objects;

import com.github.gpluscb.ggjava.entity.EntityType;
import com.github.gpluscb.ggjava.entity.object.response.ListResponse;
import com.github.gpluscb.ggjava.entity.object.response.interfaces.TeamResponse;
import com.github.gpluscb.ggjava.entity.object.response.scalars.IDResponse;
import com.github.gpluscb.ggjava.entity.object.response.scalars.StringResponse;

/**
 * An event-level Team, in the context of some competition
 */
public class EventTeamResponse extends TeamResponse {
	private final GlobalTeamResponse globalTeam;

	public EventTeamResponse(GlobalTeamResponse globalTeam) {
		super(EntityType.EVENT_TEAM);
		this.globalTeam = globalTeam;
	}

	public EventTeamResponse(IDResponse id, StringResponse discriminator, EntrantResponse entrant, EventResponse event, ListResponse images, ListResponse members, StringResponse name, GlobalTeamResponse globalTeam) {
		super(EntityType.EVENT_TEAM, id, discriminator, entrant, event, images, members, name);
		this.globalTeam = globalTeam;
	}

	public GlobalTeamResponse getGlobalTeam() {
		checkProvided();
		return globalTeam;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy