Skip to content

Commit

Permalink
Merge pull request #68 from plivo/parent_call_uuid
Browse files Browse the repository at this point in the history
parent call uuid filter for list calls
  • Loading branch information
Sachin Kulshrestha authored Sep 12, 2018
2 parents d44494a + 8d76735 commit c1edd54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/Plivo/Resource/Application/ApplicationInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ApplicationInterface(HttpClient client) : base(client)
/// <param name="defaultEndpointApp">Default endpoint app.</param>
/// <param name="subaccount">Subaccount.</param>
/// <param name="logIncomingMessages">Log incoming messages.</param>

public ApplicationCreateResponse Create(
string appName, string answerUrl = null, string answerMethod = null,
string hangupUrl = null, string hangupMethod = null,
Expand Down Expand Up @@ -134,13 +134,14 @@ public DeleteResponse<Application> Delete(string appId)
/// <param name="defaultNumberApp">Default number app.</param>
/// <param name="defaultEndpointApp">Default endpoint app.</param>
/// <param name="subaccount">Subaccount.</param>
/// <param name="logIncomingMessages">Log incoming messages.</param>
public UpdateResponse<Application> Update(
string appId, string answerUrl = null, string answerMethod = null,
string hangupUrl = null, string hangupMethod = null,
string fallbackAnswerUrl = null, string fallbackMethod = null,
string messageUrl = null, string messageMethod = null,
bool? defaultNumberApp = null, bool? defaultEndpointApp = null,
string subaccount = null)
string subaccount = null, bool? logIncomingMessages = null)
{
var mandatoryParams = new List<string> {""};
var data = CreateData(
Expand All @@ -157,7 +158,8 @@ public UpdateResponse<Application> Update(
messageMethod,
defaultNumberApp,
defaultEndpointApp,
subaccount
subaccount,
logIncomingMessages
});
return Client.Update<UpdateResponse<Application>>(Uri + appId + "/", data).Object;
}
Expand Down
6 changes: 4 additions & 2 deletions src/Plivo/Resource/Call/CallInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ public CallCreateResponse Create(
/// <summary>
/// List Call with the specified subaccount, callDirection, fromNumber, toNumber, billDuration, billDuration_Gt,
/// billDuration_Gte, billDuration_Lt, billDuration_Lte, endTime, endTime_Gt, endTime_Gte, endTime_Lt,
/// endTime_Lte, limit and offset.
/// endTime_Lte, parentCallUuid, limit and offset.
/// </summary>
/// <returns>The list.</returns>
/// <param name="subaccount">Subaccount.</param>
/// <param name="callDirection">Call direction.</param>
/// <param name="fromNumber">From number.</param>
/// <param name="parentCallUuid">Parent call UUID.</param>
/// <param name="toNumber">To number.</param>
/// <param name="billDuration">Bill duration.</param>
/// <param name="billDuration_Gt">Bill duration gt.</param>
Expand All @@ -122,7 +123,7 @@ public CallCreateResponse Create(
/// <param name="offset">Offset.</param>
public ListResponse<Call> List(
string subaccount = null, string callDirection = null,
string fromNumber = null, string toNumber = null,
string fromNumber = null, string toNumber = null, string parentCallUuid = null,
DateTime? billDuration = null, DateTime? billDuration_Gt = null,
DateTime? billDuration_Gte = null, DateTime? billDuration_Lt = null,
DateTime? billDuration_Lte = null, DateTime? endTime = null,
Expand Down Expand Up @@ -151,6 +152,7 @@ public ListResponse<Call> List(
callDirection,
fromNumber,
toNumber,
parentCallUuid,
_billDuration,
_billDuration_Gt,
_billDuration_Gte,
Expand Down

0 comments on commit c1edd54

Please sign in to comment.