1
0
Fork 0
mirror of synced 2024-09-12 15:47:12 +12:00
appwrite/app/sdks/dart/lib/services/locale.dart

54 lines
1.5 KiB
Dart
Raw Normal View History

2019-09-20 18:35:36 +12:00
import "package:appwrite/service.dart";
import "package:appwrite/client.dart";
2019-09-20 18:33:11 +12:00
import 'package:dio/dio.dart';
class Locale extends Service {
Locale(Client client): super(client);
2019-10-09 17:16:38 +13:00
/// /docs/references/locale/get-locale.md
2019-09-20 18:33:11 +12:00
Future<Response> getLocale() async {
String path = '/locale';
Map<String, dynamic> params = {
};
return await this.client.call('get', path: path, params: params);
}
2019-10-09 17:16:38 +13:00
/// /docs/references/locale/get-countires.md
2019-09-20 18:33:11 +12:00
Future<Response> getCountries() async {
String path = '/locale/countries';
Map<String, dynamic> params = {
};
return await this.client.call('get', path: path, params: params);
}
2019-10-09 17:16:38 +13:00
/// /docs/references/locale/get-countries-eu.md
2019-09-20 18:33:11 +12:00
Future<Response> getCountriesEU() async {
String path = '/locale/countries/eu';
Map<String, dynamic> params = {
};
return await this.client.call('get', path: path, params: params);
}
2019-10-09 17:16:38 +13:00
/// /docs/references/locale/get-countries-phones.md
2019-09-20 18:33:11 +12:00
Future<Response> getCountriesPhones() async {
String path = '/locale/countries/phones';
Map<String, dynamic> params = {
};
return await this.client.call('get', path: path, params: params);
}
2019-10-09 17:16:38 +13:00
/// /docs/references/locale/get-currencies.md
2019-09-20 18:33:11 +12:00
Future<Response> getCurrencies() async {
String path = '/locale/currencies';
Map<String, dynamic> params = {
};
return await this.client.call('get', path: path, params: params);
}
}