WebService

<back to all web services

UpdateActionRequest

"use strict";
/** @typedef {'doCheckVersion'|'doNothing'|'doUpdate'|'doDowngrade'|'sendVersionlist'|'delete'|'install'|'execute'|'copy'|'move'|'Error'} */
export var UpdateAction;
(function (UpdateAction) {
    UpdateAction["doCheckVersion"] = "doCheckVersion"
    UpdateAction["doNothing"] = "doNothing"
    UpdateAction["doUpdate"] = "doUpdate"
    UpdateAction["doDowngrade"] = "doDowngrade"
    UpdateAction["sendVersionlist"] = "sendVersionlist"
    UpdateAction["delete"] = "delete"
    UpdateAction["install"] = "install"
    UpdateAction["execute"] = "execute"
    UpdateAction["copy"] = "copy"
    UpdateAction["move"] = "move"
    UpdateAction["Error"] = "Error"
})(UpdateAction || (UpdateAction = {}));
export class ModulVersionsInfo {
    /** @param {{Modul?:string,PruefAssembly?:string,istTestVersion?:boolean,istDisabled?:boolean,URL?:string,willTestVersion?:boolean,Major?:number,Minor?:number,Build?:number,Revision?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Modul;
    /** @type {string} */
    PruefAssembly;
    /** @type {boolean} */
    istTestVersion;
    /** @type {boolean} */
    istDisabled;
    /** @type {string} */
    URL;
    /** @type {boolean} */
    willTestVersion;
    /** @type {number} */
    Major;
    /** @type {number} */
    Minor;
    /** @type {number} */
    Build;
    /** @type {number} */
    Revision;
}
export class UpdateActionResponse {
    /** @param {{Answer?:UpdateAction,AnswerInfo1?:string,AnswerInfo2?:string,ModulVersionen?:{ [index: string]: ModulVersionsInfo; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {UpdateAction} */
    Answer;
    /** @type {string} */
    AnswerInfo1;
    /** @type {string} */
    AnswerInfo2;
    /** @type {{ [index: string]: ModulVersionsInfo; }} */
    ModulVersionen;
}
export class UpdateActionRequest {
    /** @param {{CryptedLicenseNr?:string,CryptedStamp?:string,Action?:UpdateAction}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    CryptedLicenseNr;
    /** @type {string} */
    CryptedStamp;
    /** @type {UpdateAction} */
    Action;
}

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