efun.id.api

<back to all web services

ReceiveMtSms

The following routes are available for this service:
GET/api/v1/sms
import 'package:servicestack/servicestack.dart';

class ReceiveMtSms implements IConvertible
{
    String? user_ID;
    String? service_ID;
    String? command_Code;
    String? message;
    String? request_ID;

    ReceiveMtSms({this.user_ID,this.service_ID,this.command_Code,this.message,this.request_ID});
    ReceiveMtSms.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        user_ID = json['user_ID'];
        service_ID = json['service_ID'];
        command_Code = json['command_Code'];
        message = json['message'];
        request_ID = json['request_ID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'user_ID': user_ID,
        'service_ID': service_ID,
        'command_Code': command_Code,
        'message': message,
        'request_ID': request_ID
    };

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

class ReponseMtSms implements IConvertible
{
    int? status;
    String? message;

    ReponseMtSms({this.status,this.message});
    ReponseMtSms.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'efun_id_api_sandbox.efun.vn', types: <String, TypeInfo> {
    'ReceiveMtSms': TypeInfo(TypeOf.Class, create:() => ReceiveMtSms()),
    'ReponseMtSms': TypeInfo(TypeOf.Class, create:() => ReponseMtSms()),
});

Dart ReceiveMtSms 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.

GET /api/v1/sms HTTP/1.1 
Host: efun-id-api-sandbox.efun.vn 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"status":0,"message":"String"}