package geniusweb.partiesserver.repository; import java.util.Date; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import geniusweb.actions.PartyId; /** * Contains info about running party */ @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE) public class RunningPartyInfo { private final String name; private final PartyId id; private final Date start; private final Date end; public RunningPartyInfo(RunningParty party) { this.name = party.getName(); this.id = party.getID(); this.start = party.getStartDate(); this.end = party.getEndDate(); } }