85 lines
2.5 KiB
Dart
85 lines
2.5 KiB
Dart
import 'package:regroup/Common/api_urls.dart';
|
|
import 'package:regroup/Common/base_manager.dart';
|
|
import 'package:regroup/Common/controller/data/network/network_api.dart';
|
|
|
|
class Profilepostmethod {
|
|
Profilepostmethod();
|
|
|
|
Future<ResponseData<dynamic>> postContactus(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postcontactus,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> postReportandbug(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postreportbug,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> postBlockuser(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postblock,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> postunfollowuser(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postunfollow,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> postRemoveuser(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postremoveuser,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> postChangepassword(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postchangepassword,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
|
|
Future<ResponseData<dynamic>> postChangepassverifyotp(updata) async {
|
|
print("updata is $updata");
|
|
final response = await NetworkApiServices().postApi(
|
|
updata,
|
|
ApiUrls.postchangepassverify,
|
|
);
|
|
print("response is ${response.data}");
|
|
print("response message is ${response.message}");
|
|
return response;
|
|
}
|
|
}
|