source: src/main/java/geniusweb/partiesserver/repository/RunningPartyInfo.java@ 25

Last change on this file since 25 was 25, checked in by bart, 4 years ago
  • party capabilities now include profile information. Existing parties may need small fix * plot layout shows accepts * VotingEvaluator use group power instead of group size * runsession you can now also select MOPAC-only parties
File size: 716 bytes
Line 
1package geniusweb.partiesserver.repository;
2
3import java.util.Date;
4
5import com.fasterxml.jackson.annotation.JsonAutoDetect;
6import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
7
8import geniusweb.actions.PartyId;
9
10/**
11 * Contains info about running party
12 */
13@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
14public class RunningPartyInfo {
15 private final String name;
16 private final PartyId id;
17 private final Date start;
18 private final Date end;
19
20 public RunningPartyInfo(RunningParty party) {
21 this.name = party.getName();
22 this.id = party.getID();
23 this.start = party.getStartDate();
24 this.end = party.getEndDate();
25 }
26
27}
Note: See TracBrowser for help on using the repository browser.