source: references/src/main/java/geniusweb/serverobjects/ServerInfo.java@ 27

Last change on this file since 27 was 27, 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: 725 bytes
Line 
1package geniusweb.serverobjects;
2
3import com.fasterxml.jackson.annotation.JsonAutoDetect;
4import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
5
6/**
7 * Contains general info abotu this server
8 */
9@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
10public class ServerInfo {
11 private final Integer freeSlots;
12 private final Integer totalSlots;
13
14 public ServerInfo(int free, int total) {
15 this.freeSlots = free;
16 this.totalSlots = total;
17 }
18
19 /**
20 * @return currently free slots
21 */
22 public Integer getFree() {
23 return freeSlots;
24 }
25
26 /**
27 *
28 * @return total available slots.
29 */
30 public Integer getTotal() {
31 return totalSlots;
32 }
33}
Note: See TracBrowser for help on using the repository browser.