@@ -15,16 +15,17 @@ public MaskingSessionInterface(HttpClient client) : base(client)
15
15
16
16
#region Create
17
17
public MaskingSessionCreateResponse Create (
18
- string firstParty , string secondParty , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
18
+ string firstParty = null , string secondParty = null , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
19
19
bool ? record = null , string recordFileFormat = null , string recordingCallbackUrl = null , bool ? initiateCallToFirstParty = null ,
20
20
string callbackUrl = null , string callbackMethod = null , uint ? ringTimeout = null , string firstPartyPlayUrl = null ,
21
21
string secondPartyPlayUrl = null , string recordingCallbackMethod = null , bool ? isPinAuthenticationRequired = null ,
22
22
bool ? generatePin = null , uint ? generatePinLength = null , string firstPartyPin = null , string secondPartyPin = null ,
23
23
string pinPromptPlay = null , uint ? pinRetry = null , uint ? pinRetryWait = null , string incorrectPinPlay = null ,
24
- string unknownCallerPlay = null , string subaccount = null , bool ? geomatch = null
24
+ string unknownCallerPlay = null , string subaccount = null , bool ? geomatch = null , bool ? forcePinAuthentication = null ,
25
+ bool ? createSessionWithSingleParty = null , uint ? virtualNumberCooloffPeriod = 0
25
26
)
26
27
{
27
- var mandatoryParams = new List < string > { "firstParty" , "secondParty" } ;
28
+ var mandatoryParams = new List < string > { } ;
28
29
bool isVoiceRequest = true ;
29
30
var data = CreateData (
30
31
mandatoryParams ,
@@ -56,7 +57,10 @@ public MaskingSessionCreateResponse Create(
56
57
unknownCallerPlay ,
57
58
subaccount ,
58
59
geomatch ,
59
- isVoiceRequest
60
+ isVoiceRequest ,
61
+ forcePinAuthentication ,
62
+ createSessionWithSingleParty ,
63
+ virtualNumberCooloffPeriod
60
64
} ) ;
61
65
62
66
return ExecuteWithExceptionUnwrap ( ( ) =>
@@ -68,16 +72,17 @@ public MaskingSessionCreateResponse Create(
68
72
}
69
73
70
74
public async Task < AsyncResponse > CreateAsync (
71
- string firstParty , string secondParty , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
75
+ string firstParty = null , string secondParty = null , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
72
76
bool ? record = null , string recordFileFormat = null , string recordingCallbackUrl = null , bool ? initiateCallToFirstParty = null ,
73
77
string callbackUrl = null , string callbackMethod = null , uint ? ringTimeout = null , string firstPartyPlayUrl = null ,
74
78
string secondPartyPlayUrl = null , string recordingCallbackMethod = null , bool ? isPinAuthenticationRequired = null ,
75
79
bool ? generatePin = null , uint ? generatePinLength = null , string firstPartyPin = null , string secondPartyPin = null ,
76
80
string pinPromptPlay = null , uint ? pinRetry = null , uint ? pinRetryWait = null , string incorrectPinPlay = null ,
77
- string unknownCallerPlay = null , string subaccount = null , bool ? geomatch = null
81
+ string unknownCallerPlay = null , string subaccount = null , bool ? geomatch = null , bool ? forcePinAuthentication = null ,
82
+ bool ? createSessionWithSingleParty = null , uint ? virtualNumberCooloffPeriod = 0
78
83
)
79
84
{
80
- var mandatoryParams = new List < string > { "firstParty" , "secondParty" } ;
85
+ var mandatoryParams = new List < string > { } ;
81
86
bool isVoiceRequest = true ;
82
87
var data = CreateData (
83
88
mandatoryParams ,
@@ -109,7 +114,10 @@ public async Task<AsyncResponse> CreateAsync(
109
114
unknownCallerPlay ,
110
115
subaccount ,
111
116
geomatch ,
112
- isVoiceRequest
117
+ isVoiceRequest ,
118
+ forcePinAuthentication ,
119
+ createSessionWithSingleParty ,
120
+ virtualNumberCooloffPeriod
113
121
} ) ;
114
122
115
123
var result = Task . Run ( async ( ) => await Client . Update < AsyncResponse > ( Uri , data ) . ConfigureAwait ( false ) ) . Result ;
@@ -278,7 +286,7 @@ public async Task<AsyncResponse> DeleteAsync(string sessionUuid)
278
286
279
287
280
288
#region Update
281
- public MaskingSessionUpdateResponse < MaskingSession > Update ( string sessionUuid , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
289
+ public MaskingSessionUpdateResponse < MaskingSession > Update ( string sessionUuid , string firstParty = null , string secondParty = null , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
282
290
bool ? record = null , string recordFileFormat = null , string recordingCallbackUrl = null , string callbackUrl = null ,
283
291
string callbackMethod = null , uint ? ringTimeout = null , string firstPartyPlayUrl = null , string secondPartyPlayUrl = null ,
284
292
string recordingCallbackMethod = null , string subaccount = null , bool ? geomatch = null
@@ -289,7 +297,8 @@ public MaskingSessionUpdateResponse<MaskingSession> Update(string sessionUuid, u
289
297
var data = CreateData (
290
298
mandatoryParams ,
291
299
new
292
- {
300
+ { firstParty ,
301
+ secondParty ,
293
302
sessionExpiry ,
294
303
callTimeLimit ,
295
304
record ,
@@ -316,7 +325,7 @@ public MaskingSessionUpdateResponse<MaskingSession> Update(string sessionUuid, u
316
325
} ) ;
317
326
}
318
327
319
- public async Task < AsyncResponse > UpdateAsync ( string sessionUuid , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
328
+ public async Task < AsyncResponse > UpdateAsync ( string sessionUuid , string firstParty = null , string secondParty = null , uint ? sessionExpiry = null , uint ? callTimeLimit = null ,
320
329
bool ? record = null , string recordFileFormat = null , string recordingCallbackUrl = null , string callbackUrl = null ,
321
330
string callbackMethod = null , uint ? ringTimeout = null , string firstPartyPlayUrl = null , string secondPartyPlayUrl = null ,
322
331
string recordingCallbackMethod = null , string subaccount = null , bool ? geomatch = null
@@ -327,7 +336,8 @@ public async Task<AsyncResponse> UpdateAsync(string sessionUuid, uint? sessionEx
327
336
var data = CreateData (
328
337
mandatoryParams ,
329
338
new
330
- {
339
+ { firstParty ,
340
+ secondParty ,
331
341
sessionExpiry ,
332
342
callTimeLimit ,
333
343
record ,
0 commit comments