import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/GetApplicationInfo HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetApplicationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.Diagnostics.DTO">
<IncludeModules>false</IncludeModules>
<IncludeOfficeAddins>false</IncludeOfficeAddins>
</GetApplicationInfo>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ApplicationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.Diagnostics.DTO"> <ApplicationName>String</ApplicationName> <CustomerBrandCode>String</CustomerBrandCode> <CustomerCode>String</CustomerCode> <DatabaseName>String</DatabaseName> <DatabaseServer>String</DatabaseServer> <DatabaseVersion>String</DatabaseVersion> <Environment>String</Environment> <HasCRMModuleActive>false</HasCRMModuleActive> <HasDOVoorExcelHuisstijl>false</HasDOVoorExcelHuisstijl> <HasDOVoorExcelRegistreren>false</HasDOVoorExcelRegistreren> <HasDOVoorOutlookHuisstijl>false</HasDOVoorOutlookHuisstijl> <HasDOVoorOutlookRegistreren>false</HasDOVoorOutlookRegistreren> <HasDOVoorPowerPointHuisstijl>false</HasDOVoorPowerPointHuisstijl> <HasDOVoorPowerPointRegistreren>false</HasDOVoorPowerPointRegistreren> <HasDOVoorWordHuisstijl>false</HasDOVoorWordHuisstijl> <HasDOVoorWordRegistreren>false</HasDOVoorWordRegistreren> <HasDigitaalOndertekenenModuleActive>false</HasDigitaalOndertekenenModuleActive> <HasExtranetModuleActive>false</HasExtranetModuleActive> <HasHuisstijlMOModuleActive>false</HasHuisstijlMOModuleActive> <IDBOpties>false</IDBOpties> <IsApiGateway>false</IsApiGateway> <IsEmpty>false</IsEmpty> <MachineName>String</MachineName> <ModulesInformation> <ModuleInformation> <ModuleDate>0001-01-01T00:00:00</ModuleDate> <ModuleName>String</ModuleName> <ModuleVersion>String</ModuleVersion> </ModuleInformation> </ModulesInformation> <OnLineUrl>String</OnLineUrl> <OnPremisesUrl>String</OnPremisesUrl> <UserLoginName>String</UserLoginName> <UserName>String</UserName> <Version>String</Version> <VersionGateway>String</VersionGateway> <WebsiteIntranetUrl>String</WebsiteIntranetUrl> </ApplicationInfo>