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

Last change on this file was 46, checked in by ruud, 20 months ago

Fixed small issues in domaineditor.

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.