DigiOffice Gateway Web Services

<back to all web services

GetApplicationInfo

Requires Authentication
import 'package:servicestack/servicestack.dart';

class ModuleInformation implements IConvertible
{
    String? ModuleName;
    String? ModuleVersion;
    DateTime? ModuleDate;

    ModuleInformation({this.ModuleName,this.ModuleVersion,this.ModuleDate});
    ModuleInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ModuleName = json['ModuleName'];
        ModuleVersion = json['ModuleVersion'];
        ModuleDate = JsonConverters.fromJson(json['ModuleDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ModuleName': ModuleName,
        'ModuleVersion': ModuleVersion,
        'ModuleDate': JsonConverters.toJson(ModuleDate,'DateTime',context!)
    };

    getTypeName() => "ModuleInformation";
    TypeContext? context = _ctx;
}

class ApplicationInfo implements IConvertible
{
    String? ApplicationName;
    String? Version;
    String? VersionGateway;
    String? Environment;
    String? MachineName;
    String? CustomerCode;
    String? CustomerBrandCode;
    String? DatabaseName;
    String? DatabaseVersion;
    String? DatabaseServer;
    String? UserName;
    String? UserLoginName;
    List<ModuleInformation>? ModulesInformation;
    String? WebsiteIntranetUrl;
    bool? IDBOpties;
    String? OnPremisesUrl;
    String? OnLineUrl;
    bool? IsApiGateway;
    bool? HasCRMModuleActive;
    bool? HasExtranetModuleActive;
    bool? HasHuisstijlMOModuleActive;
    bool? HasDigitaalOndertekenenModuleActive;
    bool? HasDOVoorWordHuisstijl;
    bool? HasDOVoorWordRegistreren;
    bool? HasDOVoorExcelHuisstijl;
    bool? HasDOVoorExcelRegistreren;
    bool? HasDOVoorPowerPointHuisstijl;
    bool? HasDOVoorPowerPointRegistreren;
    bool? HasDOVoorOutlookHuisstijl;
    bool? HasDOVoorOutlookRegistreren;

    ApplicationInfo({this.ApplicationName,this.Version,this.VersionGateway,this.Environment,this.MachineName,this.CustomerCode,this.CustomerBrandCode,this.DatabaseName,this.DatabaseVersion,this.DatabaseServer,this.UserName,this.UserLoginName,this.ModulesInformation,this.WebsiteIntranetUrl,this.IDBOpties,this.OnPremisesUrl,this.OnLineUrl,this.IsApiGateway,this.HasCRMModuleActive,this.HasExtranetModuleActive,this.HasHuisstijlMOModuleActive,this.HasDigitaalOndertekenenModuleActive,this.HasDOVoorWordHuisstijl,this.HasDOVoorWordRegistreren,this.HasDOVoorExcelHuisstijl,this.HasDOVoorExcelRegistreren,this.HasDOVoorPowerPointHuisstijl,this.HasDOVoorPowerPointRegistreren,this.HasDOVoorOutlookHuisstijl,this.HasDOVoorOutlookRegistreren});
    ApplicationInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ApplicationName = json['ApplicationName'];
        Version = json['Version'];
        VersionGateway = json['VersionGateway'];
        Environment = json['Environment'];
        MachineName = json['MachineName'];
        CustomerCode = json['CustomerCode'];
        CustomerBrandCode = json['CustomerBrandCode'];
        DatabaseName = json['DatabaseName'];
        DatabaseVersion = json['DatabaseVersion'];
        DatabaseServer = json['DatabaseServer'];
        UserName = json['UserName'];
        UserLoginName = json['UserLoginName'];
        ModulesInformation = JsonConverters.fromJson(json['ModulesInformation'],'List<ModuleInformation>',context!);
        WebsiteIntranetUrl = json['WebsiteIntranetUrl'];
        IDBOpties = json['IDBOpties'];
        OnPremisesUrl = json['OnPremisesUrl'];
        OnLineUrl = json['OnLineUrl'];
        IsApiGateway = json['IsApiGateway'];
        HasCRMModuleActive = json['HasCRMModuleActive'];
        HasExtranetModuleActive = json['HasExtranetModuleActive'];
        HasHuisstijlMOModuleActive = json['HasHuisstijlMOModuleActive'];
        HasDigitaalOndertekenenModuleActive = json['HasDigitaalOndertekenenModuleActive'];
        HasDOVoorWordHuisstijl = json['HasDOVoorWordHuisstijl'];
        HasDOVoorWordRegistreren = json['HasDOVoorWordRegistreren'];
        HasDOVoorExcelHuisstijl = json['HasDOVoorExcelHuisstijl'];
        HasDOVoorExcelRegistreren = json['HasDOVoorExcelRegistreren'];
        HasDOVoorPowerPointHuisstijl = json['HasDOVoorPowerPointHuisstijl'];
        HasDOVoorPowerPointRegistreren = json['HasDOVoorPowerPointRegistreren'];
        HasDOVoorOutlookHuisstijl = json['HasDOVoorOutlookHuisstijl'];
        HasDOVoorOutlookRegistreren = json['HasDOVoorOutlookRegistreren'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ApplicationName': ApplicationName,
        'Version': Version,
        'VersionGateway': VersionGateway,
        'Environment': Environment,
        'MachineName': MachineName,
        'CustomerCode': CustomerCode,
        'CustomerBrandCode': CustomerBrandCode,
        'DatabaseName': DatabaseName,
        'DatabaseVersion': DatabaseVersion,
        'DatabaseServer': DatabaseServer,
        'UserName': UserName,
        'UserLoginName': UserLoginName,
        'ModulesInformation': JsonConverters.toJson(ModulesInformation,'List<ModuleInformation>',context!),
        'WebsiteIntranetUrl': WebsiteIntranetUrl,
        'IDBOpties': IDBOpties,
        'OnPremisesUrl': OnPremisesUrl,
        'OnLineUrl': OnLineUrl,
        'IsApiGateway': IsApiGateway,
        'HasCRMModuleActive': HasCRMModuleActive,
        'HasExtranetModuleActive': HasExtranetModuleActive,
        'HasHuisstijlMOModuleActive': HasHuisstijlMOModuleActive,
        'HasDigitaalOndertekenenModuleActive': HasDigitaalOndertekenenModuleActive,
        'HasDOVoorWordHuisstijl': HasDOVoorWordHuisstijl,
        'HasDOVoorWordRegistreren': HasDOVoorWordRegistreren,
        'HasDOVoorExcelHuisstijl': HasDOVoorExcelHuisstijl,
        'HasDOVoorExcelRegistreren': HasDOVoorExcelRegistreren,
        'HasDOVoorPowerPointHuisstijl': HasDOVoorPowerPointHuisstijl,
        'HasDOVoorPowerPointRegistreren': HasDOVoorPowerPointRegistreren,
        'HasDOVoorOutlookHuisstijl': HasDOVoorOutlookHuisstijl,
        'HasDOVoorOutlookRegistreren': HasDOVoorOutlookRegistreren
    };

    getTypeName() => "ApplicationInfo";
    TypeContext? context = _ctx;
}

class GetApplicationInfo implements IConvertible
{
    bool? IncludeModules;
    bool? IncludeOfficeAddins;

    GetApplicationInfo({this.IncludeModules,this.IncludeOfficeAddins});
    GetApplicationInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IncludeModules = json['IncludeModules'];
        IncludeOfficeAddins = json['IncludeOfficeAddins'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IncludeModules': IncludeModules,
        'IncludeOfficeAddins': IncludeOfficeAddins
    };

    getTypeName() => "GetApplicationInfo";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
    'ModuleInformation': TypeInfo(TypeOf.Class, create:() => ModuleInformation()),
    'ApplicationInfo': TypeInfo(TypeOf.Class, create:() => ApplicationInfo()),
    'List<ModuleInformation>': TypeInfo(TypeOf.Class, create:() => <ModuleInformation>[]),
    'GetApplicationInfo': TypeInfo(TypeOf.Class, create:() => GetApplicationInfo()),
});

Dart GetApplicationInfo DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetApplicationInfo HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"IncludeModules":false,"IncludeOfficeAddins":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ApplicationName":"String","Version":"String","VersionGateway":"String","Environment":"String","MachineName":"String","CustomerCode":"String","CustomerBrandCode":"String","DatabaseName":"String","DatabaseVersion":"String","DatabaseServer":"String","UserName":"String","UserLoginName":"String","ModulesInformation":[{"ModuleName":"String","ModuleVersion":"String","ModuleDate":"0001-01-01T00:00:00.0000000"}],"WebsiteIntranetUrl":"String","IDBOpties":false,"OnPremisesUrl":"String","OnLineUrl":"String","IsApiGateway":false,"HasCRMModuleActive":false,"HasExtranetModuleActive":false,"HasHuisstijlMOModuleActive":false,"HasDigitaalOndertekenenModuleActive":false,"HasDOVoorWordHuisstijl":false,"HasDOVoorWordRegistreren":false,"HasDOVoorExcelHuisstijl":false,"HasDOVoorExcelRegistreren":false,"HasDOVoorPowerPointHuisstijl":false,"HasDOVoorPowerPointRegistreren":false,"HasDOVoorOutlookHuisstijl":false,"HasDOVoorOutlookRegistreren":false}