TF-939 Inject Vacation's components depend on the session capability

This commit is contained in:
Dat PHAM HOANG
2022-09-14 17:35:21 +07:00
committed by Dat H. Pham
parent 2a65c30772
commit ccc63e4fc1
9 changed files with 121 additions and 69 deletions
@@ -18,10 +18,10 @@ class VacationAPI {
final getVacationMethod = GetVacationMethod(accountId);
final getVacationInvocation = requestBuilder.invocation(getVacationMethod);
final response = await (requestBuilder
..usings(getVacationMethod.requiredCapabilities))
.build()
.execute();
final response = await(requestBuilder
..usings(getVacationMethod.requiredCapabilities))
.build()
.execute();
final resultList = response.parse<GetVacationResponse>(
getVacationInvocation.methodCallId,
@@ -44,9 +44,9 @@ class VacationAPI {
final getVacationInvocation = requestBuilder.invocation(getVacationMethod);
final response = await (requestBuilder
..usings(setVacationMethod.requiredCapabilities))
.build()
.execute();
..usings(setVacationMethod.requiredCapabilities))
.build()
.execute();
final resultList = response.parse<GetVacationResponse>(
getVacationInvocation.methodCallId,