WebService

<back to all web services

UpdateActionRequest

import Foundation
import ServiceStack

public class UpdateActionRequest : Codable
{
    public var cryptedLicenseNr:String
    public var cryptedStamp:String
    public var action:UpdateAction

    required public init(){}
}

public enum UpdateAction : String, Codable
{
    case doCheckVersion
    case doNothing
    case doUpdate
    case doDowngrade
    case sendVersionlist
    case delete
    case install
    case execute
    case copy
    case move
    case Error
}

public class UpdateActionResponse : Codable
{
    public var answer:UpdateAction
    public var answerInfo1:String
    public var answerInfo2:String
    public var modulVersionen:[String:ModulVersionsInfo] = [:]

    required public init(){}
}

public class ModulVersionsInfo : Codable
{
    public var modul:String
    public var pruefAssembly:String
    public var istTestVersion:Bool
    public var istDisabled:Bool
    public var url:String
    public var willTestVersion:Bool
    public var major:Int
    public var minor:Int
    public var build:Int
    public var revision:Int

    required public init(){}
}


Swift 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>