ImzagerServices

<back to all web services

SignContentV2

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

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

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

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

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

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

class SignContentV2 implements IConvertible
{
    String? ClientKey;
    String? AuthorizationID;
    String? UserSSN;
    Uint8List? Content;
    String? SignerSSN;
    String? SignerEMail;
    String? SignMessage;

    SignContentV2({this.ClientKey,this.AuthorizationID,this.UserSSN,this.Content,this.SignerSSN,this.SignerEMail,this.SignMessage});
    SignContentV2.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClientKey = json['ClientKey'];
        AuthorizationID = json['AuthorizationID'];
        UserSSN = json['UserSSN'];
        Content = JsonConverters.fromJson(json['Content'],'Uint8List',context!);
        SignerSSN = json['SignerSSN'];
        SignerEMail = json['SignerEMail'];
        SignMessage = json['SignMessage'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClientKey': ClientKey,
        'AuthorizationID': AuthorizationID,
        'UserSSN': UserSSN,
        'Content': JsonConverters.toJson(Content,'Uint8List',context!),
        'SignerSSN': SignerSSN,
        'SignerEMail': SignerEMail,
        'SignMessage': SignMessage
    };

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

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

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

{"ClientKey":"String","AuthorizationID":"String","UserSSN":"String","Content":"AA==","SignerSSN":"String","SignerEMail":"String","SignMessage":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Result":false,"ServiceSuccessResult":false,"ErrorMesage":"String","Content":"AA=="}