|
@@ -94,7 +94,8 @@ class ConsultationService {
|
|
|
return parsed;
|
|
|
}
|
|
|
|
|
|
- Future<List<Consultation>> FindConsultationsByPageAsync(String id,int? selectedType) async {
|
|
|
+ Future<List<Consultation>> FindConsultationsByPageAsync(
|
|
|
+ String id, int? selectedType) async {
|
|
|
try {
|
|
|
var userService = GetIt.instance.get<UserService>();
|
|
|
var user = userService.getCurrentUser();
|
|
@@ -189,7 +190,7 @@ class ConsultationService {
|
|
|
var client = http.Client();
|
|
|
|
|
|
var body =
|
|
|
- '{"jsonrpc": "2.0", "method": "AcceptLiveConsultationAsync", "params": [{"Token": "$token", "RoomCode":"$consultationCode"}], "id": 1 }';
|
|
|
+ '{"jsonrpc": "2.0", "method": "AcceptLiveConsultationAsync", "params": [{"Token": "$token", "ConsultationCode":"$consultationCode"}], "id": 1 }';
|
|
|
print('AcceptLiveConsultationAsync http.Client()' + body);
|
|
|
final response = await client.post(
|
|
|
Uri.parse(AppSettings.host + '/ILiveConsultationService'),
|