mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 10:14:54 +00:00
Merged with dev
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import 'dart:async';
|
||||
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
|
||||
import 'package:syncrow_app/features/auth/model/user_model.dart';
|
||||
import 'package:syncrow_app/features/menu/bloc/profile_bloc/region_model.dart';
|
||||
import 'package:syncrow_app/features/menu/bloc/profile_bloc/time_zone_model.dart';
|
||||
import 'package:syncrow_app/features/menu/model/region_model.dart';
|
||||
import 'package:syncrow_app/features/menu/model/time_zone_model.dart';
|
||||
import 'package:syncrow_app/services/api/api_links_endpoints.dart';
|
||||
import 'package:syncrow_app/services/api/http_service.dart';
|
||||
|
||||
@ -43,6 +43,7 @@ class ProfileApi {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
static Future saveTimeZone({String? regionUuid,}) async {
|
||||
try {
|
||||
final response = await _httpService.put(
|
||||
@ -99,7 +100,6 @@ class ProfileApi {
|
||||
return response as List<RegionModel>;
|
||||
}
|
||||
|
||||
|
||||
static Future<List<TimeZone>> fetchTimeZone() async {
|
||||
final response = await _httpService.get(
|
||||
path: ApiEndpoints.getTimezone,
|
||||
@ -111,5 +111,4 @@ class ProfileApi {
|
||||
return response as List<TimeZone>;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user