ImzagerServices

<back to all web services

DownloadDocument

The following routes are available for this service:
All Verbs/DownloadDocument/{ClientKey}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class DownloadDocumentResponse implements IConvertible
{
    Uint8List? Result;
    bool? ServiceSuccessResult;
    String? ErrorMesage;

    DownloadDocumentResponse({this.Result,this.ServiceSuccessResult,this.ErrorMesage});
    DownloadDocumentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Result = JsonConverters.fromJson(json['Result'],'Uint8List',context!);
        ServiceSuccessResult = json['ServiceSuccessResult'];
        ErrorMesage = json['ErrorMesage'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Result': JsonConverters.toJson(Result,'Uint8List',context!),
        'ServiceSuccessResult': ServiceSuccessResult,
        'ErrorMesage': ErrorMesage
    };

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

class DownloadDocument implements IConvertible
{
    String? ClientKey;
    String? AuthorizationID;
    String? UserSSN;
    int? DocumentId;

    DownloadDocument({this.ClientKey,this.AuthorizationID,this.UserSSN,this.DocumentId});
    DownloadDocument.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClientKey = json['ClientKey'];
        AuthorizationID = json['AuthorizationID'];
        UserSSN = json['UserSSN'];
        DocumentId = json['DocumentId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClientKey': ClientKey,
        'AuthorizationID': AuthorizationID,
        'UserSSN': UserSSN,
        'DocumentId': DocumentId
    };

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

TypeContext _ctx = TypeContext(library: 'imzagerservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
    'DownloadDocumentResponse': TypeInfo(TypeOf.Class, create:() => DownloadDocumentResponse()),
    'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
    'DownloadDocument': TypeInfo(TypeOf.Class, create:() => DownloadDocument()),
});

Dart DownloadDocument 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 /DownloadDocument/{ClientKey} HTTP/1.1 
Host: imzagerservices.eyyubiye.bel.tr 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ClientKey: String,
	AuthorizationID: String,
	UserSSN: String,
	DocumentId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: AA==,
	ServiceSuccessResult: False,
	ErrorMesage: String
}