|
@@ -11,138 +11,14 @@ export 'api_manager.dart' show ApiCallResponse;
|
|
|
|
|
|
|
|
const _kPrivateApiFunctionName = 'ffPrivateApiCall';
|
|
const _kPrivateApiFunctionName = 'ffPrivateApiCall';
|
|
|
|
|
|
|
|
-class LoginCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- String? username = '',
|
|
|
|
|
- String? password = '',
|
|
|
|
|
- }) async {
|
|
|
|
|
- final ffApiRequestBody = '''
|
|
|
|
|
-{
|
|
|
|
|
- "username": "${escapeStringForJson(username)}",
|
|
|
|
|
- "password": "${escapeStringForJson(password)}"
|
|
|
|
|
-}''';
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'login',
|
|
|
|
|
- apiUrl: 'https://uitgaanskrant.com/en/flutterdrup/user/login.json',
|
|
|
|
|
- callType: ApiCallType.POST,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Content-Type': 'application/json',
|
|
|
|
|
- },
|
|
|
|
|
- params: {},
|
|
|
|
|
- body: ffApiRequestBody,
|
|
|
|
|
- bodyType: BodyType.JSON,
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
|
|
+/// Start kanweg Group Code
|
|
|
|
|
|
|
|
- static String? loginSessionid(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.sessid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? loginSessionsname(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.session_name''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? loginToken(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.token''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? loginUseruid(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.user.uid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? loginUsername(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.user.name''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? loginEmail(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.user.mail''',
|
|
|
|
|
- ));
|
|
|
|
|
|
|
+class KanwegGroup {
|
|
|
|
|
+ static String getBaseUrl() => 'https://uitgaanskrant.com';
|
|
|
|
|
+ static Map<String, String> headers = {};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class ZZUserEstablishmentsTESTCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- String? sessionname = '',
|
|
|
|
|
- String? sessionid = '',
|
|
|
|
|
- String? token = '',
|
|
|
|
|
- }) async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'ZZ userEstablishments TEST',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://uitgaanskrant.com/en/flutterdrup/views/flutterflow_user_establishment.json?display_id=services_1',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Content-Type': 'application/json',
|
|
|
|
|
- 'Cookie': '${sessionname}=${sessionid}',
|
|
|
|
|
- },
|
|
|
|
|
- params: {},
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? sessionid(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.sessid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? sessionname(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.session_name''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? token(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.token''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? drupaluserid(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.user.uid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static List<String>? establishmentTitle(dynamic response) => (getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].node_title''',
|
|
|
|
|
- true,
|
|
|
|
|
- ) as List?)
|
|
|
|
|
- ?.withoutNulls
|
|
|
|
|
- .map((x) => castToType<String>(x))
|
|
|
|
|
- .withoutNulls
|
|
|
|
|
- .toList();
|
|
|
|
|
- static List<String>? establishmentLogo(dynamic response) => (getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].logohoreca''',
|
|
|
|
|
- true,
|
|
|
|
|
- ) as List?)
|
|
|
|
|
- ?.withoutNulls
|
|
|
|
|
- .map((x) => castToType<String>(x))
|
|
|
|
|
- .withoutNulls
|
|
|
|
|
- .toList();
|
|
|
|
|
- static List<String>? establishmentNid(dynamic response) => (getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].nid''',
|
|
|
|
|
- true,
|
|
|
|
|
- ) as List?)
|
|
|
|
|
- ?.withoutNulls
|
|
|
|
|
- .map((x) => castToType<String>(x))
|
|
|
|
|
- .withoutNulls
|
|
|
|
|
- .toList();
|
|
|
|
|
-}
|
|
|
|
|
|
|
+/// End kanweg Group Code
|
|
|
|
|
|
|
|
class FavorietenAgendaCall {
|
|
class FavorietenAgendaCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
@@ -266,184 +142,6 @@ class FavorietenAgendaTESTKANWEGCall {
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class GetcsrfCall {
|
|
|
|
|
- static Future<ApiCallResponse> call() async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'getcsrf',
|
|
|
|
|
- apiUrl: 'https://uitgaanskrant.com/en/flutterdrup/user/token.json',
|
|
|
|
|
- callType: ApiCallType.POST,
|
|
|
|
|
- headers: {},
|
|
|
|
|
- params: {},
|
|
|
|
|
- bodyType: BodyType.JSON,
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? getCsrfToken(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$.token''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-class ZZZhomeSliderCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- String? displayId = 'services_1',
|
|
|
|
|
- }) async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'ZZZhomeSlider',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://uitgaanskrant.com/nl/flutterdrup/views/flutterflowmobiel1.json',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Authorization': 'Basic Ym9iOnNlcmhpaQ==',
|
|
|
|
|
- },
|
|
|
|
|
- params: {
|
|
|
|
|
- 'display_id': displayId,
|
|
|
|
|
- },
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? homesNid(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].nid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesAdres(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].adres''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesHoreca(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].horecagelegenheid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesTown(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].plaats''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesDatum(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].datum''',
|
|
|
|
|
- ));
|
|
|
|
|
- static List<String>? homesCategorie(dynamic response) => (getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].categorie''',
|
|
|
|
|
- true,
|
|
|
|
|
- ) as List?)
|
|
|
|
|
- ?.withoutNulls
|
|
|
|
|
- .map((x) => castToType<String>(x))
|
|
|
|
|
- .withoutNulls
|
|
|
|
|
- .toList();
|
|
|
|
|
- static String? homesTitel(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].titel''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesLogo(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].logo''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesInhoud(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].inhoud''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesUrl(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].url''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesHorecaID(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].horecagelegenheidid''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-class HomeSlidershortDateCall {
|
|
|
|
|
- static Future<ApiCallResponse> call() async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'homeSlidershortDate',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://uitgaanskrant.com/nl/flutterdrup/views/flutterflowmobiel1.json?display_id=services_1',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Authorization': 'Basic Ym9iOnNlcmhpaQ==',
|
|
|
|
|
- },
|
|
|
|
|
- params: {},
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? homesNid(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].nid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesAdres(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].adres''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesEstablishment(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].horecagelegenheid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesTown(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].plaats''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesDatum(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].datum''',
|
|
|
|
|
- ));
|
|
|
|
|
- static List<String>? homesCategorie(dynamic response) => (getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].categorie''',
|
|
|
|
|
- true,
|
|
|
|
|
- ) as List?)
|
|
|
|
|
- ?.withoutNulls
|
|
|
|
|
- .map((x) => castToType<String>(x))
|
|
|
|
|
- .withoutNulls
|
|
|
|
|
- .toList();
|
|
|
|
|
- static String? homesTitel(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].titel''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesLogo(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].logo''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesInhoud(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].inhoud''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homesUrl(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].url''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
class HomeTabelCall {
|
|
class HomeTabelCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
|
int? page = 0,
|
|
int? page = 0,
|
|
@@ -461,8 +159,8 @@ class HomeTabelCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
|
|
+ cache: true,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
|
);
|
|
);
|
|
@@ -523,76 +221,6 @@ class HomeTabelCall {
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class ZZhomeUitgaanCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- int? page = 0,
|
|
|
|
|
- }) async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'ZZhome uitgaan',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://uitgaanskrant.com/nl/flutterdrup/views/flutterflowmobiel1.json?display_id=services_3',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Authorization': 'Basic Ym9iOnNlcmhpaQ==',
|
|
|
|
|
- },
|
|
|
|
|
- params: {
|
|
|
|
|
- 'page': page,
|
|
|
|
|
- },
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? homeNid(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].nid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeAdres(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].adres''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeEstablishment(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].horecagelegenheid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeDatum(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].datum''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homePlaats(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].plaats''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeCategorie(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].categorie''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeTitel(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].titel''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homoLogo(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].logo''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeInhoud(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].inhoud''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? homeUrl(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].url''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
class HomeSliderCall {
|
|
class HomeSliderCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
|
String? displayId = 'services_1',
|
|
String? displayId = 'services_1',
|
|
@@ -610,7 +238,7 @@ class HomeSliderCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: false,
|
|
cache: false,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -695,7 +323,7 @@ class UitgaanstabelCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: false,
|
|
cache: false,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -780,7 +408,7 @@ class UitgaanSliderCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: false,
|
|
cache: false,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -842,62 +470,6 @@ class UitgaanSliderCall {
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class EstablishmentsNewCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- int? townid = 28695,
|
|
|
|
|
- }) async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'EstablishmentsNew',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://uitgaanskrant.com/en/flutterdrup/views/_flutterflowmobiel_establishment_new.json?display_id=services_1&townid=28695',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Authorization': 'Basic Ym9iOnNlcmhpaQ==',
|
|
|
|
|
- },
|
|
|
|
|
- params: {
|
|
|
|
|
- 'townid': townid,
|
|
|
|
|
- },
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? establishmentNid(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].nid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? establishmentAddress(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].adres''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? establishmentTitel(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].titel''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? establishmentPlaats(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].plaats''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? establishmentLogo(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].logo''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? establishmentCategorie(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].categorie''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
class EstablishmentInfoCall {
|
|
class EstablishmentInfoCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
|
String? nid = '',
|
|
String? nid = '',
|
|
@@ -915,7 +487,7 @@ class EstablishmentInfoCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: true,
|
|
cache: true,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -1116,7 +688,7 @@ class HorecagelegenheidEventsCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: false,
|
|
cache: false,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -1164,95 +736,6 @@ class HorecagelegenheidEventsCall {
|
|
|
.toList();
|
|
.toList();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class ZzEstablishmentEventsCopyCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- int? horecanid = 75411,
|
|
|
|
|
- }) async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'zzEstablishmentEvents Copy',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://devbob.uitgaanskrant.com/en/flutterdrup/views/flutterflowmobiel_establishment_events.json?display_id=services_1',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Authorization': 'Basic Ym9iOnNlcmhpaQ==',
|
|
|
|
|
- },
|
|
|
|
|
- params: {
|
|
|
|
|
- 'horecanid': horecanid,
|
|
|
|
|
- },
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? estEventNid(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].nid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventTitle(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].title''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventAdres(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].adres''',
|
|
|
|
|
- ));
|
|
|
|
|
- static dynamic estEventEntreeselect(dynamic response) => getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].entreeselect''',
|
|
|
|
|
- );
|
|
|
|
|
- static String? estEventBody(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].body''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventEntreeToelichting(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].entreetoelichting''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventTickets(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].tickets''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventWebsite(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].website''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventLogo(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].logo''',
|
|
|
|
|
- ));
|
|
|
|
|
- static List<String>? estEventFotoos(dynamic response) => (getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].fotoos''',
|
|
|
|
|
- true,
|
|
|
|
|
- ) as List?)
|
|
|
|
|
- ?.withoutNulls
|
|
|
|
|
- .map((x) => castToType<String>(x))
|
|
|
|
|
- .withoutNulls
|
|
|
|
|
- .toList();
|
|
|
|
|
- static String? estEventCategory(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].category''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? estEventDatum(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].datum''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
class GemeentenCall {
|
|
class GemeentenCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
|
String? provincieid = '',
|
|
String? provincieid = '',
|
|
@@ -1270,8 +753,8 @@ class GemeentenCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
|
|
+ cache: true,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
|
);
|
|
);
|
|
@@ -1302,8 +785,8 @@ class ProvinciesCall {
|
|
|
params: {},
|
|
params: {},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
|
|
+ cache: true,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
|
);
|
|
);
|
|
@@ -1347,7 +830,7 @@ class EvenementCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: false,
|
|
cache: false,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -1431,7 +914,7 @@ class EvenementCall {
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class EstablishmentsCall {
|
|
|
|
|
|
|
+class HorecagelegenheidoverzichtCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
|
String? horcat,
|
|
String? horcat,
|
|
|
String? townid = '',
|
|
String? townid = '',
|
|
@@ -1440,7 +923,7 @@ class EstablishmentsCall {
|
|
|
horcat ??= null!;
|
|
horcat ??= null!;
|
|
|
|
|
|
|
|
return ApiManager.instance.makeApiCall(
|
|
return ApiManager.instance.makeApiCall(
|
|
|
- callName: 'Establishments',
|
|
|
|
|
|
|
+ callName: 'Horecagelegenheidoverzicht',
|
|
|
apiUrl:
|
|
apiUrl:
|
|
|
'https://uitgaanskrant.com/nl/flutterdrup/views/flutterflowmobiel_establishments.json',
|
|
'https://uitgaanskrant.com/nl/flutterdrup/views/flutterflowmobiel_establishments.json',
|
|
|
callType: ApiCallType.GET,
|
|
callType: ApiCallType.GET,
|
|
@@ -1454,7 +937,7 @@ class EstablishmentsCall {
|
|
|
},
|
|
},
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: true,
|
|
cache: true,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|
|
@@ -1493,48 +976,6 @@ class EstablishmentsCall {
|
|
|
) as List?;
|
|
) as List?;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class QueryCityIdCall {
|
|
|
|
|
- static Future<ApiCallResponse> call({
|
|
|
|
|
- String? townid = '',
|
|
|
|
|
- }) async {
|
|
|
|
|
- return ApiManager.instance.makeApiCall(
|
|
|
|
|
- callName: 'QueryCityId',
|
|
|
|
|
- apiUrl:
|
|
|
|
|
- 'https://uitgaanskrant.com/nl/flutterdrup/views/flutterflow_querytownid.json?display_id=services_1',
|
|
|
|
|
- callType: ApiCallType.GET,
|
|
|
|
|
- headers: {},
|
|
|
|
|
- params: {
|
|
|
|
|
- 'townid': townid,
|
|
|
|
|
- },
|
|
|
|
|
- returnBody: true,
|
|
|
|
|
- encodeBodyUtf8: false,
|
|
|
|
|
- decodeUtf8: false,
|
|
|
|
|
- cache: true,
|
|
|
|
|
- isStreamingApi: false,
|
|
|
|
|
- alwaysAllowBody: false,
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- static String? stadId(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].id''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? stadNaam(dynamic response) => castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].name''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? provincieId(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].parentid''',
|
|
|
|
|
- ));
|
|
|
|
|
- static String? provincieNaam(dynamic response) =>
|
|
|
|
|
- castToType<String>(getJsonField(
|
|
|
|
|
- response,
|
|
|
|
|
- r'''$[:].parentname''',
|
|
|
|
|
- ));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
class RequestNewPasswordCall {
|
|
class RequestNewPasswordCall {
|
|
|
static Future<ApiCallResponse> call({
|
|
static Future<ApiCallResponse> call({
|
|
|
String? name = '',
|
|
String? name = '',
|
|
@@ -1552,7 +993,7 @@ class RequestNewPasswordCall {
|
|
|
bodyType: BodyType.JSON,
|
|
bodyType: BodyType.JSON,
|
|
|
returnBody: true,
|
|
returnBody: true,
|
|
|
encodeBodyUtf8: false,
|
|
encodeBodyUtf8: false,
|
|
|
- decodeUtf8: false,
|
|
|
|
|
|
|
+ decodeUtf8: true,
|
|
|
cache: false,
|
|
cache: false,
|
|
|
isStreamingApi: false,
|
|
isStreamingApi: false,
|
|
|
alwaysAllowBody: false,
|
|
alwaysAllowBody: false,
|