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

Last change on this file since 12 was 1, checked in by bart, 5 years ago

Initial Release

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.