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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<AddRemAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaBRemServices.ServiceModel">
  <AttacmentName>String</AttacmentName>
  <AuthorizationID>String</AuthorizationID>
  <ClientKey>String</ClientKey>
  <Content>AA==</Content>
  <RemID>0</RemID>
  <SubscriberID>String</SubscriberID>
</AddRemAttachment>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AddRemAttachmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaBRemServices.ServiceModel">
  <AttachmentID>0</AttachmentID>
</AddRemAttachmentResponse>