DaBRemService

<back to all web services

AddRemAttachment

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

class AddRemAttachmentResponse implements IConvertible
{
    int? AttachmentID;

    AddRemAttachmentResponse({this.AttachmentID});
    AddRemAttachmentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class AddRemAttachment implements IConvertible
{
    String? ClientKey;
    String? AuthorizationID;
    int? RemID;
    String? AttacmentName;
    Uint8List? Content;
    String? SubscriberID;

    AddRemAttachment({this.ClientKey,this.AuthorizationID,this.RemID,this.AttacmentName,this.Content,this.SubscriberID});
    AddRemAttachment.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ClientKey': ClientKey,
        'AuthorizationID': AuthorizationID,
        'RemID': RemID,
        'AttacmentName': AttacmentName,
        'Content': JsonConverters.toJson(Content,'Uint8List',context!),
        'SubscriberID': SubscriberID
    };

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

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

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

{
	ClientKey: String,
	AuthorizationID: String,
	RemID: 0,
	AttacmentName: String,
	Content: AA==,
	SubscriberID: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	AttachmentID: 0
}