Skip to content

Commit ec5f5ac

Browse files
Merge pull request #44 from virtualq/zak_dev
CON-112
2 parents 4667f16 + 4fc8bf6 commit ec5f5ac

File tree

7 files changed

+19
-17
lines changed

7 files changed

+19
-17
lines changed

VirtualQNet.Tests/App.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<appSettings>
4-
<add key="ApiUrl" value="https://api.virtualq.io" />
5-
<add key="ApiKey" value="TfjGWuF63ecAStv9GcnbafbrTc6JkW5fJm3cPgzy" />
4+
<add key="ApiUrl" value="https://api.virtualq.de" />
5+
<add key="ApiKey" value="x5xceimG8JKvizMHr9wn7UrjaQeeNPq49nmbfB4F" />
66
<add key="Timeout" value="" />
77
</appSettings>
88
</configuration>

VirtualQNet.Tests/CallCenterHandlerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public void UpdateCallCenter()
2626
var attributes = new UpdateCallCenterParameters
2727
{
2828
Id = 1,
29-
//ConnectorVersion = "Testing Version zak 132",
30-
ConnectorConnectionStatus = "Its down",
29+
ConnectorVersion = "Testing Version zak 7777",
30+
ConnectorConnectionStatus = "Its UP o up",
3131
ConnectorLastRestartTime = DateTime.Now
3232
};
3333

VirtualQNet.Tests/CallersHandlerTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,9 @@ public void NotifyCallerConnected_ValidLineIdAndPhone_ExpectSuccess()
154154
{
155155
var attributes = new CallerParameters
156156
{
157-
LineId = 2600,
157+
LineId = 3534,
158158
Phone = "+17343305027"
159159
};
160-
161160
Result result = client.Callers.NotifyCallerConnected(attributes).Result;
162161

163162
Assert.IsTrue(result.RequestWasSuccessful);
@@ -177,7 +176,7 @@ public void NotifyCallerTransferred_ValidLineIdAndPhone_ExpectSuccess()
177176
{
178177
var attributes = new NotifyCallerTransferredParameters
179178
{
180-
LineId = 2600,
179+
LineId = 3534,
181180
Phone = "+17343305027",
182181
AgentId = "B"
183182
};

VirtualQNet/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public async Task<CallResult<U>> Put<T, U>(string path, T model)
216216
{
217217
try
218218
{
219-
return await HandleResponse<U>(await _Client.PutAsJsonAsync(BuildApiPath(path), CreateContent(model)));
219+
return await HandleResponse<U>(await _Client.PutAsync(BuildApiPath(path), CreateContent(model)));
220220
}
221221
catch (Exception exception)
222222
{

VirtualQNet/Caller/CallersHandler.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ public async Task<Result> NotifyCallerConnected(CallerParameters attributes)
6060
var path = $"{WAITERS_PATH}/0";
6161

6262
SingleApiMessage<CallerUpdateMessage> message = CreateSingleMessage<CallerUpdateMessageAttributes, CallerUpdateMessage>(MESSAGE_TYPE, messageAttributes);
63-
CallResult callResult = await _ApiClient.Put(path, message);
63+
CallResult<SingleApiMessage<CallerMessage>> callResult = await _ApiClient.Put<SingleApiMessage<CallerUpdateMessage>, SingleApiMessage<CallerMessage>>(path, message);
6464

65-
return new Result(callResult.RequestWasSuccessful, CreateErrorResult(callResult));
65+
return new Result<CallerResult>(
66+
callResult.RequestWasSuccessful,
67+
CreateErrorResult(callResult),
68+
new CallerResult(callResult.Value == null ? null : callResult.Value.Data ?? null));
6669
}
6770

6871
public async Task<Result> NotifyCallerTransferred(NotifyCallerTransferredParameters attributes)

VirtualQNet/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.2.0.0")]
36-
[assembly: AssemblyFileVersion("1.2.0.0")]
35+
[assembly: AssemblyVersion("1.2.1.0")]
36+
[assembly: AssemblyFileVersion("1.2.1.0")]

VirtualQNet/VirtualQNet.nuspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package >
33
<metadata>
44
<id>virtualQ.API.virtualQNetClient</id>
5-
<version>1.2.0</version>
5+
<version>1.2.1</version>
66
<title>virtualQ .NET client</title>
77
<authors>Niels Liebisch and Zeeshan Ali Khan</authors>
88
<owners>virtualQ</owners>
99
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10-
<description>- update connector status, connector last restart time, connector.
11-
- get remote configuration from connector settings tab.
12-
- get caller data on lineup request.</description>
13-
<releaseNotes>Added support for connector settting page. https://github.com/virtualq/virtualQ.NET/wiki/6.-CallCenter</releaseNotes>
10+
<description>
11+
update return type of NotifyCallerConnected. Now it will return waiter attribute values recieved in response instead of bool
12+
</description>
13+
<releaseNotes>documentation: https://github.com/virtualq/virtualQ.NET/wiki/5.-Callers#notify-that-a-caller-has-connected</releaseNotes>
1414
<copyright>Copyright 2021</copyright>
1515
<tags>api client application</tags>
1616
<dependencies>

0 commit comments

Comments
 (0)