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 .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /jsv/reply/UpdateActionRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CryptedLicenseNr: String,
	CryptedStamp: String,
	Action: doCheckVersion
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}