import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UpdateActionRequest
{
public String CryptedLicenseNr = null;
public String CryptedStamp = null;
public UpdateAction Action = null;
public String getCryptedLicenseNr() { return CryptedLicenseNr; }
public UpdateActionRequest setCryptedLicenseNr(String value) { this.CryptedLicenseNr = value; return this; }
public String getCryptedStamp() { return CryptedStamp; }
public UpdateActionRequest setCryptedStamp(String value) { this.CryptedStamp = value; return this; }
public UpdateAction getAction() { return Action; }
public UpdateActionRequest setAction(UpdateAction value) { this.Action = value; return this; }
}
public static enum UpdateAction
{
DoCheckVersion,
DoNothing,
DoUpdate,
DoDowngrade,
SendVersionlist,
Delete,
Install,
Execute,
Copy,
Move,
Error;
}
public static class UpdateActionResponse
{
public UpdateAction Answer = null;
public String AnswerInfo1 = null;
public String AnswerInfo2 = null;
public HashMap<String,ModulVersionsInfo> ModulVersionen = null;
public UpdateAction getAnswer() { return Answer; }
public UpdateActionResponse setAnswer(UpdateAction value) { this.Answer = value; return this; }
public String getAnswerInfo1() { return AnswerInfo1; }
public UpdateActionResponse setAnswerInfo1(String value) { this.AnswerInfo1 = value; return this; }
public String getAnswerInfo2() { return AnswerInfo2; }
public UpdateActionResponse setAnswerInfo2(String value) { this.AnswerInfo2 = value; return this; }
public HashMap<String,ModulVersionsInfo> getModulVersionen() { return ModulVersionen; }
public UpdateActionResponse setModulVersionen(HashMap<String,ModulVersionsInfo> value) { this.ModulVersionen = value; return this; }
}
public static class ModulVersionsInfo
{
public String Modul = null;
public String PruefAssembly = null;
public Boolean istTestVersion = null;
public Boolean istDisabled = null;
public String URL = null;
public Boolean willTestVersion = null;
public Integer Major = null;
public Integer Minor = null;
public Integer Build = null;
public Integer Revision = null;
public String getModul() { return Modul; }
public ModulVersionsInfo setModul(String value) { this.Modul = value; return this; }
public String getPruefAssembly() { return PruefAssembly; }
public ModulVersionsInfo setPruefAssembly(String value) { this.PruefAssembly = value; return this; }
public Boolean getIstTestVersion() { return istTestVersion; }
public ModulVersionsInfo setIstTestVersion(Boolean value) { this.istTestVersion = value; return this; }
public Boolean getIstDisabled() { return istDisabled; }
public ModulVersionsInfo setIstDisabled(Boolean value) { this.istDisabled = value; return this; }
public String getUrl() { return URL; }
public ModulVersionsInfo setUrl(String value) { this.URL = value; return this; }
public Boolean isWillTestVersion() { return willTestVersion; }
public ModulVersionsInfo setWillTestVersion(Boolean value) { this.willTestVersion = value; return this; }
public Integer getMajor() { return Major; }
public ModulVersionsInfo setMajor(Integer value) { this.Major = value; return this; }
public Integer getMinor() { return Minor; }
public ModulVersionsInfo setMinor(Integer value) { this.Minor = value; return this; }
public Integer getBuild() { return Build; }
public ModulVersionsInfo setBuild(Integer value) { this.Build = value; return this; }
public Integer getRevision() { return Revision; }
public ModulVersionsInfo setRevision(Integer value) { this.Revision = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/UpdateActionRequest HTTP/1.1
Host: 52.142.207.43
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"CryptedLicenseNr":"String","CryptedStamp":"String","Action":"doCheckVersion"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Answer":"doCheckVersion","AnswerInfo1":"String","AnswerInfo2":"String","ModulVersionen":{"String":{"Modul":"String","PruefAssembly":"String","istTestVersion":false,"istDisabled":false,"URL":"String","willTestVersion":false,"Major":0,"Minor":0,"Build":0,"Revision":0}}}