WebService

<back to all web services

UpdateActionRequest

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; }
    }

}

Java UpdateActionRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/UpdateActionRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ecUpdaterLicenseCommModel.UpdateActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <Action>doCheckVersion</Action>
  <CryptedLicenseNr>String</CryptedLicenseNr>
  <CryptedStamp>String</CryptedStamp>
</ecUpdaterLicenseCommModel.UpdateActionRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ecUpdaterLicenseCommModel.UpdateActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <Answer>doCheckVersion</Answer>
  <AnswerInfo1>String</AnswerInfo1>
  <AnswerInfo2>String</AnswerInfo2>
  <ModulVersionen xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringecUpdaterLicenseCommModel.ModulVersionsInfoFZISSfTN>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <Build>0</Build>
        <Major>0</Major>
        <Minor>0</Minor>
        <Modul>String</Modul>
        <PruefAssembly>String</PruefAssembly>
        <Revision>0</Revision>
        <URL>String</URL>
        <istDisabled>false</istDisabled>
        <istTestVersion>false</istTestVersion>
        <willTestVersion>false</willTestVersion>
      </d2p1:Value>
    </d2p1:KeyValueOfstringecUpdaterLicenseCommModel.ModulVersionsInfoFZISSfTN>
  </ModulVersionen>
</ecUpdaterLicenseCommModel.UpdateActionResponse>