DaBRemService

<back to all web services

CreateRemMessage

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

class BaseResponse implements IConvertible
{
    bool? Result;
    int? ErrorCode;
    String? ErrorMessage;

    BaseResponse({this.Result,this.ErrorCode,this.ErrorMessage});
    BaseResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Result': Result,
        'ErrorCode': ErrorCode,
        'ErrorMessage': ErrorMessage
    };

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

class CreateRemMessageResponse extends BaseResponse implements IConvertible
{
    int? RemID;

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

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

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'RemID': RemID
    });

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

class RemAttributes implements IConvertible
{
    int? SubscriberId;
    String? Owner;
    String? FromAddress;
    String? ToAddresses;
    String? CcAddresses;
    String? Subject;
    String? BodyType;
    String? Body;
    bool? AutoSignerYn;
    String? TrMessageType;

    RemAttributes({this.SubscriberId,this.Owner,this.FromAddress,this.ToAddresses,this.CcAddresses,this.Subject,this.BodyType,this.Body,this.AutoSignerYn,this.TrMessageType});
    RemAttributes.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        SubscriberId = json['SubscriberId'];
        Owner = json['Owner'];
        FromAddress = json['FromAddress'];
        ToAddresses = json['ToAddresses'];
        CcAddresses = json['CcAddresses'];
        Subject = json['Subject'];
        BodyType = json['BodyType'];
        Body = json['Body'];
        AutoSignerYn = json['AutoSignerYn'];
        TrMessageType = json['TrMessageType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'SubscriberId': SubscriberId,
        'Owner': Owner,
        'FromAddress': FromAddress,
        'ToAddresses': ToAddresses,
        'CcAddresses': CcAddresses,
        'Subject': Subject,
        'BodyType': BodyType,
        'Body': Body,
        'AutoSignerYn': AutoSignerYn,
        'TrMessageType': TrMessageType
    };

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

class CreateRemMessage implements IConvertible
{
    String? ClientKey;
    String? AuthorizationID;
    int? RemAddressId;
    RemAttributes? RemAttributesValues;

    CreateRemMessage({this.ClientKey,this.AuthorizationID,this.RemAddressId,this.RemAttributesValues});
    CreateRemMessage.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClientKey = json['ClientKey'];
        AuthorizationID = json['AuthorizationID'];
        RemAddressId = json['RemAddressId'];
        RemAttributesValues = JsonConverters.fromJson(json['RemAttributesValues'],'RemAttributes',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClientKey': ClientKey,
        'AuthorizationID': AuthorizationID,
        'RemAddressId': RemAddressId,
        'RemAttributesValues': JsonConverters.toJson(RemAttributesValues,'RemAttributes',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'remservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
    'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()),
    'CreateRemMessageResponse': TypeInfo(TypeOf.Class, create:() => CreateRemMessageResponse()),
    'RemAttributes': TypeInfo(TypeOf.Class, create:() => RemAttributes()),
    'CreateRemMessage': TypeInfo(TypeOf.Class, create:() => CreateRemMessage()),
});

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

<CreateRemMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaBRemServices.ServiceModel">
  <AuthorizationID>String</AuthorizationID>
  <ClientKey>String</ClientKey>
  <RemAddressId>0</RemAddressId>
  <RemAttributesValues>
    <AutoSignerYn>false</AutoSignerYn>
    <Body>String</Body>
    <BodyType>String</BodyType>
    <CcAddresses>String</CcAddresses>
    <FromAddress>String</FromAddress>
    <Owner>String</Owner>
    <Subject>String</Subject>
    <SubscriberId>0</SubscriberId>
    <ToAddresses>String</ToAddresses>
    <TrMessageType>String</TrMessageType>
  </RemAttributesValues>
</CreateRemMessage>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateRemMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaBRemServices.ServiceModel">
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <Result>false</Result>
  <RemID>0</RemID>
</CreateRemMessageResponse>