Rev | Line | |
---|
[46] | 1 | package geniusweb.partiesserver.repository;
|
---|
| 2 |
|
---|
| 3 | import java.util.Date;
|
---|
| 4 |
|
---|
| 5 | import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
---|
| 6 | import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
|
---|
| 7 |
|
---|
| 8 | import geniusweb.actions.PartyId;
|
---|
| 9 |
|
---|
| 10 | /**
|
---|
| 11 | * Contains info about running party
|
---|
| 12 | */
|
---|
| 13 | @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
|
---|
| 14 | public 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.