Betting.WebApi

<back to all web services

CorrectLocationLocale

Requires Authentication
The following routes are available for this service:
POST/cmd/locations/correct/locale
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CorrectLocationLocale
    {
        public String id = null;
        public Locale locale = null;
        
        public String getId() { return id; }
        public CorrectLocationLocale setId(String value) { this.id = value; return this; }
        public Locale getLocale() { return locale; }
        public CorrectLocationLocale setLocale(Locale value) { this.locale = value; return this; }
    }

    public static class Locale
    {
        public Ref timeZone = null;
        public Ref currency = null;
        public Ref language = null;
        
        public Ref getTimeZone() { return timeZone; }
        public Locale setTimeZone(Ref value) { this.timeZone = value; return this; }
        public Ref getCurrency() { return currency; }
        public Locale setCurrency(Ref value) { this.currency = value; return this; }
        public Ref getLanguage() { return language; }
        public Locale setLanguage(Ref value) { this.language = value; return this; }
    }

    public static class Ref
    {
        public String id = null;
        public String val = null;
        
        public String getId() { return id; }
        public Ref setId(String value) { this.id = value; return this; }
        public String getVal() { return val; }
        public Ref setVal(String value) { this.val = value; return this; }
    }

}

Java CorrectLocationLocale 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 /cmd/locations/correct/locale HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	locale: 
	{
		timeZone: 
		{
			id: String,
			val: String
		},
		currency: 
		{
			id: String,
			val: String
		},
		language: 
		{
			id: String,
			val: String
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	errorCode: String,
	message: String,
	stackTrace: String,
	errors: 
	[
		{
			errorCode: String,
			fieldName: String,
			message: String,
			meta: 
			{
				String: String
			}
		}
	],
	meta: 
	{
		String: String
	}
}