|
|
@@ -1511,6 +1511,73 @@ class _AtmobApi implements AtmobApi {
|
|
|
return _value;
|
|
|
}
|
|
|
|
|
|
+ @override
|
|
|
+ Future<BaseResponse<ZodiacLoveIntimacyResponse>> getZodiacLoveIntimacyToday(
|
|
|
+ AppBaseRequest request,
|
|
|
+ ) async {
|
|
|
+ final _extra = <String, dynamic>{};
|
|
|
+ final queryParameters = <String, dynamic>{};
|
|
|
+ final _headers = <String, dynamic>{};
|
|
|
+ final _data = <String, dynamic>{};
|
|
|
+ _data.addAll(request.toJson());
|
|
|
+ final _options = _setStreamType<BaseResponse<ZodiacLoveIntimacyResponse>>(
|
|
|
+ Options(method: 'POST', headers: _headers, extra: _extra)
|
|
|
+ .compose(
|
|
|
+ _dio.options,
|
|
|
+ '/project/keyboard/v1/intimacy/today/index',
|
|
|
+ queryParameters: queryParameters,
|
|
|
+ data: _data,
|
|
|
+ )
|
|
|
+ .copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)),
|
|
|
+ );
|
|
|
+ final _result = await _dio.fetch<Map<String, dynamic>>(_options);
|
|
|
+ late BaseResponse<ZodiacLoveIntimacyResponse> _value;
|
|
|
+ try {
|
|
|
+ _value = BaseResponse<ZodiacLoveIntimacyResponse>.fromJson(
|
|
|
+ _result.data!,
|
|
|
+ (json) =>
|
|
|
+ ZodiacLoveIntimacyResponse.fromJson(json as Map<String, dynamic>),
|
|
|
+ );
|
|
|
+ } on Object catch (e, s) {
|
|
|
+ errorLogger?.logError(e, s, _options);
|
|
|
+ rethrow;
|
|
|
+ }
|
|
|
+ return _value;
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ Future<BaseResponse<ZodiacLoveIntimacyResponse>>
|
|
|
+ getZodiacLoveIntimacyFutureWeek(AppBaseRequest request) async {
|
|
|
+ final _extra = <String, dynamic>{};
|
|
|
+ final queryParameters = <String, dynamic>{};
|
|
|
+ final _headers = <String, dynamic>{};
|
|
|
+ final _data = <String, dynamic>{};
|
|
|
+ _data.addAll(request.toJson());
|
|
|
+ final _options = _setStreamType<BaseResponse<ZodiacLoveIntimacyResponse>>(
|
|
|
+ Options(method: 'POST', headers: _headers, extra: _extra)
|
|
|
+ .compose(
|
|
|
+ _dio.options,
|
|
|
+ '/project/keyboard/v1/intimacy/future/week',
|
|
|
+ queryParameters: queryParameters,
|
|
|
+ data: _data,
|
|
|
+ )
|
|
|
+ .copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)),
|
|
|
+ );
|
|
|
+ final _result = await _dio.fetch<Map<String, dynamic>>(_options);
|
|
|
+ late BaseResponse<ZodiacLoveIntimacyResponse> _value;
|
|
|
+ try {
|
|
|
+ _value = BaseResponse<ZodiacLoveIntimacyResponse>.fromJson(
|
|
|
+ _result.data!,
|
|
|
+ (json) =>
|
|
|
+ ZodiacLoveIntimacyResponse.fromJson(json as Map<String, dynamic>),
|
|
|
+ );
|
|
|
+ } on Object catch (e, s) {
|
|
|
+ errorLogger?.logError(e, s, _options);
|
|
|
+ rethrow;
|
|
|
+ }
|
|
|
+ return _value;
|
|
|
+ }
|
|
|
+
|
|
|
RequestOptions _setStreamType<T>(RequestOptions requestOptions) {
|
|
|
if (T != dynamic &&
|
|
|
!(requestOptions.responseType == ResponseType.bytes ||
|