2013-04-26 07:40:39 +02:00
|
|
|
package com.commafeed.frontend.model;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2013-05-12 12:38:56 +02:00
|
|
|
import java.util.Map;
|
2013-04-26 07:40:39 +02:00
|
|
|
|
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
|
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
|
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
|
|
2013-05-12 12:38:56 +02:00
|
|
|
import com.google.api.client.util.Maps;
|
2013-04-26 07:40:39 +02:00
|
|
|
import com.wordnik.swagger.annotations.ApiClass;
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("serial")
|
|
|
|
|
@XmlRootElement
|
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
|
|
|
@ApiClass("Server infos")
|
|
|
|
|
public class ServerInfo implements Serializable {
|
|
|
|
|
|
|
|
|
|
private String announcement;
|
2013-07-21 11:40:32 +02:00
|
|
|
private String version;
|
|
|
|
|
private String gitCommit;
|
2013-05-12 12:38:56 +02:00
|
|
|
private Map<String, String> supportedLanguages = Maps.newHashMap();
|
2013-04-26 07:40:39 +02:00
|
|
|
|
|
|
|
|
public String getAnnouncement() {
|
|
|
|
|
return announcement;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAnnouncement(String announcement) {
|
|
|
|
|
this.announcement = announcement;
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-12 12:38:56 +02:00
|
|
|
public Map<String, String> getSupportedLanguages() {
|
|
|
|
|
return supportedLanguages;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSupportedLanguages(Map<String, String> supportedLanguages) {
|
|
|
|
|
this.supportedLanguages = supportedLanguages;
|
|
|
|
|
}
|
|
|
|
|
|
2013-07-21 11:40:32 +02:00
|
|
|
public String getVersion() {
|
|
|
|
|
return version;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setVersion(String version) {
|
|
|
|
|
this.version = version;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getGitCommit() {
|
|
|
|
|
return gitCommit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setGitCommit(String gitCommit) {
|
|
|
|
|
this.gitCommit = gitCommit;
|
|
|
|
|
}
|
|
|
|
|
|
2013-04-26 07:40:39 +02:00
|
|
|
}
|