-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from plivo/feature-queued-call
Feature queued call
- Loading branch information
Showing
10 changed files
with
232 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace Plivo.Resource.Call | ||
{ | ||
/// <summary> | ||
/// Queued call. | ||
/// </summary> | ||
public class QueuedCall : Resource | ||
{ | ||
public string Direction { get; set; } | ||
public string From { get; set; } | ||
public string CallStatus { get; set; } | ||
public string To { get; set; } | ||
public string CallerName { get; set; } | ||
public string CallUuid { get; set; } | ||
public string RequestUuid { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return base.ToString() + | ||
"Direction: " + Direction + "\n" + | ||
"From: " + From + "\n" + | ||
"CallStatus: " + CallStatus + "\n" + | ||
"To: " + To + "\n" + | ||
"CallerName: " + CallerName + "\n" + | ||
"CallUuid: " + CallUuid + "\n" + | ||
"ApiId: " + ApiId + "\n" + | ||
"RequestUuid: " + RequestUuid + "\n"; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Plivo.Resource.Call | ||
{ | ||
public class QueuedCallListResponse | ||
{ | ||
public string ApiId { get; set; } | ||
public List<string> Calls { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return base.ToString() + | ||
"ApiId: \n" + ApiId + "\n" + | ||
"Calls: \n" + string.Join(",\n", Calls ) + "\n"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"api_id": "18f3bbb0-3ef1-11e7-a68e-02d2f90c026e", | ||
"call_status": "queued", | ||
"call_uuid": "d0a87a1a-b0e9-4ab2-ac07-c22ee87cd04a", | ||
"caller_name": "", | ||
"direction": "outbound", | ||
"from": "+918687888990", | ||
"to": "919798990001" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests_netcore/Plivo.NetCore.Test/Mocks/queuedCallGetResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"api_id": "18f3bbb0-3ef1-11e7-a68e-02d2f90c026e", | ||
"call_status": "queued", | ||
"call_uuid": "d0a87a1a-b0e9-4ab2-ac07-c22ee87cd04a", | ||
"caller_name": "", | ||
"direction": "outbound", | ||
"from": "+918687888990", | ||
"to": "919798990001" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters