DigiOffice Gateway Web Services

<back to all web services

UpdateStorageSystem

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

class UpdateStorageSystemResponse implements IConvertible
{
    bool? IsSucces;
    String? DocumentID;
    List<String>? ErrorMessages;

    UpdateStorageSystemResponse({this.IsSucces,this.DocumentID,this.ErrorMessages});
    UpdateStorageSystemResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IsSucces = json['IsSucces'];
        DocumentID = json['DocumentID'];
        ErrorMessages = JsonConverters.fromJson(json['ErrorMessages'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IsSucces': IsSucces,
        'DocumentID': DocumentID,
        'ErrorMessages': JsonConverters.toJson(ErrorMessages,'List<String>',context!)
    };

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

class UpdateStorageSystem implements IConvertible
{
    String? DocumentID;
    bool? OptimizeForNewCreatedFiles;

    UpdateStorageSystem({this.DocumentID,this.OptimizeForNewCreatedFiles});
    UpdateStorageSystem.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'DocumentID': DocumentID,
        'OptimizeForNewCreatedFiles': OptimizeForNewCreatedFiles
    };

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

TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
    'UpdateStorageSystemResponse': TypeInfo(TypeOf.Class, create:() => UpdateStorageSystemResponse()),
    'UpdateStorageSystem': TypeInfo(TypeOf.Class, create:() => UpdateStorageSystem()),
});

Dart UpdateStorageSystem 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/UpdateStorageSystem HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	OptimizeForNewCreatedFiles: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	IsSucces: False,
	ErrorMessages: 
	[
		String
	]
}