diff --git a/VirtualQNet/Caller/CallersHandler.cs b/VirtualQNet/Caller/CallersHandler.cs index 9e65f8c..627d29c 100644 --- a/VirtualQNet/Caller/CallersHandler.cs +++ b/VirtualQNet/Caller/CallersHandler.cs @@ -37,9 +37,12 @@ public async Task LineUpCaller(LineUpCallerParameters attributes) Properties = attributes.Properties }; SingleApiMessage message = CreateSingleMessage(MESSAGE_TYPE, messageAttributes); - CallResult callResult = await _ApiClient.Post(WAITERS_PATH, message); + CallResult> callResult = await _ApiClient.Post, SingleApiMessage>(WAITERS_PATH, message); - return new Result(callResult.RequestWasSuccessful, CreateErrorResult(callResult)); + return new Result( + callResult.RequestWasSuccessful, + CreateErrorResult(callResult), + new CallerResult(callResult.Value == null? null: callResult.Value.Data ?? null)); } public async Task NotifyCallerConnected(CallerParameters attributes)