Evo Voice

<back to all web services

GetSystemInfo

import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class SystemInfo implements IConvertible
{
    String? version;
    String? twilioFallbackBaseUrl;
    String? twilioCallbackUrl;
    String? twilioCallbackBaseUrl;
    String? sipOriginationUrl;
    bool? isDevEnvironment;

    SystemInfo({this.version,this.twilioFallbackBaseUrl,this.twilioCallbackUrl,this.twilioCallbackBaseUrl,this.sipOriginationUrl,this.isDevEnvironment});
    SystemInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        version = json['version'];
        twilioFallbackBaseUrl = json['twilioFallbackBaseUrl'];
        twilioCallbackUrl = json['twilioCallbackUrl'];
        twilioCallbackBaseUrl = json['twilioCallbackBaseUrl'];
        sipOriginationUrl = json['sipOriginationUrl'];
        isDevEnvironment = json['isDevEnvironment'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'version': version,
        'twilioFallbackBaseUrl': twilioFallbackBaseUrl,
        'twilioCallbackUrl': twilioCallbackUrl,
        'twilioCallbackBaseUrl': twilioCallbackBaseUrl,
        'sipOriginationUrl': sipOriginationUrl,
        'isDevEnvironment': isDevEnvironment
    };

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

class GetSystemInfo implements IConvertible
{
    GetSystemInfo();
    GetSystemInfo.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetSystemInfo";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'evovoice.io', types: <String, TypeInfo> {
    'SystemInfo': TypeInfo(TypeOf.Class, create:() => SystemInfo()),
    'GetSystemInfo': TypeInfo(TypeOf.Class, create:() => GetSystemInfo()),
});

Dart GetSystemInfo 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 /jsv/reply/GetSystemInfo HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	version: String,
	twilioFallbackBaseUrl: String,
	twilioCallbackUrl: String,
	twilioCallbackBaseUrl: String,
	sipOriginationUrl: String,
	isDevEnvironment: False
}