Skip to content

Commit

Permalink
CON-77
Browse files Browse the repository at this point in the history
CON-77
adding capability in virtualq.Net for getting caller data on lineup
  • Loading branch information
zeeshanalikhan15 committed Apr 23, 2021
1 parent 5c0413e commit 029f4af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions VirtualQNet/Caller/CallersHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ public async Task<Result> LineUpCaller(LineUpCallerParameters attributes)
Properties = attributes.Properties
};
SingleApiMessage<CallerCreateMessage> message = CreateSingleMessage<CallerCreateMessageAttributes, CallerCreateMessage>(MESSAGE_TYPE, messageAttributes);
CallResult callResult = await _ApiClient.Post(WAITERS_PATH, message);
CallResult<SingleApiMessage<CallerMessage>> callResult = await _ApiClient.Post<SingleApiMessage<CallerCreateMessage>, SingleApiMessage<CallerMessage>>(WAITERS_PATH, message);

return new Result(callResult.RequestWasSuccessful, CreateErrorResult(callResult));
return new Result<CallerResult>(
callResult.RequestWasSuccessful,
CreateErrorResult(callResult),
new CallerResult(callResult.Value == null? null: callResult.Value.Data ?? null));
}

public async Task<Result> NotifyCallerConnected(CallerParameters attributes)
Expand Down

0 comments on commit 029f4af

Please sign in to comment.