diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ccd86c6c..edecb122 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -129,6 +129,8 @@ docs/Say.md docs/SayAllOf.md docs/SendDigits.md docs/SendDigitsAllOf.md +docs/SetDTMFPassThrough.md +docs/SetDTMFPassThroughAllOf.md docs/SetListen.md docs/SetListenAllOf.md docs/SetTalk.md @@ -149,27 +151,153 @@ docs/UpdateConferenceRequest.md docs/UpdateConferenceRequestStatus.md freeclimb.sln git_push.sh +src/freeclimb.Test/Model/AccountRequestTests.cs +src/freeclimb.Test/Model/AccountResultAllOfTests.cs +src/freeclimb.Test/Model/AccountResultTests.cs src/freeclimb.Test/Model/AccountStatusTests.cs src/freeclimb.Test/Model/AccountTypeTests.cs +src/freeclimb.Test/Model/AddToConferenceAllOfTests.cs +src/freeclimb.Test/Model/AddToConferenceTests.cs src/freeclimb.Test/Model/AnsweredByTests.cs +src/freeclimb.Test/Model/ApplicationListAllOfTests.cs +src/freeclimb.Test/Model/ApplicationListTests.cs +src/freeclimb.Test/Model/ApplicationRequestTests.cs +src/freeclimb.Test/Model/ApplicationResultAllOfTests.cs +src/freeclimb.Test/Model/ApplicationResultTests.cs +src/freeclimb.Test/Model/AvailableNumberListAllOfTests.cs +src/freeclimb.Test/Model/AvailableNumberListTests.cs +src/freeclimb.Test/Model/AvailableNumberTests.cs +src/freeclimb.Test/Model/BuyIncomingNumberRequestTests.cs src/freeclimb.Test/Model/CallDirectionTests.cs +src/freeclimb.Test/Model/CallListAllOfTests.cs +src/freeclimb.Test/Model/CallListTests.cs +src/freeclimb.Test/Model/CallResultAllOfTests.cs +src/freeclimb.Test/Model/CallResultTests.cs src/freeclimb.Test/Model/CallStatusTests.cs +src/freeclimb.Test/Model/CapabilitiesTests.cs +src/freeclimb.Test/Model/CompletionRequestTests.cs +src/freeclimb.Test/Model/CompletionResultTests.cs +src/freeclimb.Test/Model/ConferenceListAllOfTests.cs +src/freeclimb.Test/Model/ConferenceListTests.cs +src/freeclimb.Test/Model/ConferenceParticipantListAllOfTests.cs +src/freeclimb.Test/Model/ConferenceParticipantListTests.cs +src/freeclimb.Test/Model/ConferenceParticipantResultAllOfTests.cs +src/freeclimb.Test/Model/ConferenceParticipantResultTests.cs +src/freeclimb.Test/Model/ConferenceResultAllOfTests.cs +src/freeclimb.Test/Model/ConferenceResultTests.cs src/freeclimb.Test/Model/ConferenceStatusTests.cs +src/freeclimb.Test/Model/CreateConferenceAllOfTests.cs +src/freeclimb.Test/Model/CreateConferenceRequestTests.cs +src/freeclimb.Test/Model/CreateConferenceTests.cs +src/freeclimb.Test/Model/CreateWebRTCTokenTests.cs +src/freeclimb.Test/Model/DequeueTests.cs +src/freeclimb.Test/Model/EnqueueAllOfTests.cs +src/freeclimb.Test/Model/EnqueueTests.cs +src/freeclimb.Test/Model/FilterLogsRequestTests.cs +src/freeclimb.Test/Model/GetDigitsAllOfTests.cs +src/freeclimb.Test/Model/GetDigitsTests.cs +src/freeclimb.Test/Model/GetSpeechAllOfTests.cs src/freeclimb.Test/Model/GetSpeechReasonTests.cs +src/freeclimb.Test/Model/GetSpeechTests.cs src/freeclimb.Test/Model/GrammarFileBuiltInTests.cs src/freeclimb.Test/Model/GrammarTypeTests.cs +src/freeclimb.Test/Model/HangupAllOfTests.cs +src/freeclimb.Test/Model/HangupTests.cs src/freeclimb.Test/Model/IfMachineTests.cs +src/freeclimb.Test/Model/IncomingNumberListAllOfTests.cs +src/freeclimb.Test/Model/IncomingNumberListTests.cs +src/freeclimb.Test/Model/IncomingNumberRequestTests.cs +src/freeclimb.Test/Model/IncomingNumberResultAllOfTests.cs +src/freeclimb.Test/Model/IncomingNumberResultTests.cs src/freeclimb.Test/Model/LanguageTests.cs src/freeclimb.Test/Model/LogLevelTests.cs +src/freeclimb.Test/Model/LogListAllOfTests.cs +src/freeclimb.Test/Model/LogListTests.cs +src/freeclimb.Test/Model/LogResultTests.cs src/freeclimb.Test/Model/MachineTypeTests.cs +src/freeclimb.Test/Model/MakeCallRequestTests.cs src/freeclimb.Test/Model/MessageDirectionTests.cs +src/freeclimb.Test/Model/MessageRequestAllOfTests.cs +src/freeclimb.Test/Model/MessageRequestTests.cs +src/freeclimb.Test/Model/MessageResultAllOfTests.cs +src/freeclimb.Test/Model/MessageResultTests.cs src/freeclimb.Test/Model/MessageStatusTests.cs +src/freeclimb.Test/Model/MessagesListAllOfTests.cs +src/freeclimb.Test/Model/MessagesListTests.cs +src/freeclimb.Test/Model/MutableResourceModelTests.cs +src/freeclimb.Test/Model/OutDialAllOfTests.cs +src/freeclimb.Test/Model/OutDialTests.cs +src/freeclimb.Test/Model/PaginationModelTests.cs +src/freeclimb.Test/Model/ParkAllOfTests.cs +src/freeclimb.Test/Model/ParkTests.cs +src/freeclimb.Test/Model/PauseAllOfTests.cs +src/freeclimb.Test/Model/PauseTests.cs +src/freeclimb.Test/Model/PerclCommandTests.cs +src/freeclimb.Test/Model/PerclScriptTests.cs +src/freeclimb.Test/Model/PlayAllOfTests.cs src/freeclimb.Test/Model/PlayBeepTests.cs +src/freeclimb.Test/Model/PlayEarlyMediaAllOfTests.cs +src/freeclimb.Test/Model/PlayEarlyMediaTests.cs +src/freeclimb.Test/Model/PlayTests.cs +src/freeclimb.Test/Model/QueueListAllOfTests.cs +src/freeclimb.Test/Model/QueueListTests.cs +src/freeclimb.Test/Model/QueueMemberListAllOfTests.cs +src/freeclimb.Test/Model/QueueMemberListTests.cs +src/freeclimb.Test/Model/QueueMemberTests.cs +src/freeclimb.Test/Model/QueueRequestTests.cs +src/freeclimb.Test/Model/QueueResultAllOfTests.cs src/freeclimb.Test/Model/QueueResultStatusTests.cs +src/freeclimb.Test/Model/QueueResultTests.cs +src/freeclimb.Test/Model/RecordUtteranceAllOfTests.cs src/freeclimb.Test/Model/RecordUtteranceTermReasonTests.cs +src/freeclimb.Test/Model/RecordUtteranceTests.cs +src/freeclimb.Test/Model/RecordingListAllOfTests.cs +src/freeclimb.Test/Model/RecordingListTests.cs +src/freeclimb.Test/Model/RecordingResultAllOfTests.cs +src/freeclimb.Test/Model/RecordingResultTests.cs +src/freeclimb.Test/Model/RedirectAllOfTests.cs +src/freeclimb.Test/Model/RedirectTests.cs +src/freeclimb.Test/Model/RejectAllOfTests.cs +src/freeclimb.Test/Model/RejectTests.cs +src/freeclimb.Test/Model/RemoveFromConferenceTests.cs src/freeclimb.Test/Model/RequestTypeTests.cs +src/freeclimb.Test/Model/SMSTenDLCBrandTests.cs +src/freeclimb.Test/Model/SMSTenDLCBrandsListResultAllOfTests.cs +src/freeclimb.Test/Model/SMSTenDLCBrandsListResultTests.cs +src/freeclimb.Test/Model/SMSTenDLCCampaignTests.cs +src/freeclimb.Test/Model/SMSTenDLCCampaignsListResultAllOfTests.cs +src/freeclimb.Test/Model/SMSTenDLCCampaignsListResultTests.cs +src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignBrandTests.cs +src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignTests.cs +src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignsListResultAllOfTests.cs +src/freeclimb.Test/Model/SMSTenDLCPartnerCampaignsListResultTests.cs +src/freeclimb.Test/Model/SMSTollFreeCampaignTests.cs +src/freeclimb.Test/Model/SMSTollFreeCampaignsListResultAllOfTests.cs +src/freeclimb.Test/Model/SMSTollFreeCampaignsListResultTests.cs +src/freeclimb.Test/Model/SayAllOfTests.cs +src/freeclimb.Test/Model/SayTests.cs +src/freeclimb.Test/Model/SendDigitsAllOfTests.cs +src/freeclimb.Test/Model/SendDigitsTests.cs +src/freeclimb.Test/Model/SetDTMFPassThroughAllOfTests.cs +src/freeclimb.Test/Model/SetDTMFPassThroughTests.cs +src/freeclimb.Test/Model/SetListenAllOfTests.cs +src/freeclimb.Test/Model/SetListenTests.cs +src/freeclimb.Test/Model/SetTalkAllOfTests.cs +src/freeclimb.Test/Model/SetTalkTests.cs +src/freeclimb.Test/Model/SmsAllOfTests.cs +src/freeclimb.Test/Model/SmsTests.cs +src/freeclimb.Test/Model/StartRecordCallTests.cs +src/freeclimb.Test/Model/TFNTests.cs +src/freeclimb.Test/Model/TerminateConferenceTests.cs +src/freeclimb.Test/Model/TranscribeUtteranceAllOfRecordTests.cs +src/freeclimb.Test/Model/TranscribeUtteranceAllOfTests.cs +src/freeclimb.Test/Model/TranscribeUtteranceTests.cs +src/freeclimb.Test/Model/UnparkTests.cs src/freeclimb.Test/Model/UpdateCallRequestStatusTests.cs +src/freeclimb.Test/Model/UpdateCallRequestTests.cs +src/freeclimb.Test/Model/UpdateConferenceParticipantRequestTests.cs src/freeclimb.Test/Model/UpdateConferenceRequestStatusTests.cs +src/freeclimb.Test/Model/UpdateConferenceRequestTests.cs src/freeclimb.Test/freeclimb.Test.csproj src/freeclimb/Api/DefaultApi.cs src/freeclimb/Client/ApiClient.cs @@ -316,6 +444,8 @@ src/freeclimb/Model/Say.cs src/freeclimb/Model/SayAllOf.cs src/freeclimb/Model/SendDigits.cs src/freeclimb/Model/SendDigitsAllOf.cs +src/freeclimb/Model/SetDTMFPassThrough.cs +src/freeclimb/Model/SetDTMFPassThroughAllOf.cs src/freeclimb/Model/SetListen.cs src/freeclimb/Model/SetListenAllOf.cs src/freeclimb/Model/SetTalk.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index e66e77cd..b9f6bb26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,15 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm None + + +## [4.10.0] - 2024-12-16 + +### Added + +- Add DtmfPassThrough property to certain models +- Make mediaUrls property nullable + ## [4.9.0] - 2024-10-08 diff --git a/README.md b/README.md index 6a12bbbd..ae10d30a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- SDK version: 4.9.0 +- SDK version: 4.10.0 - Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/) @@ -289,6 +289,8 @@ Class | Method | HTTP request | Description - [Model.SayAllOf](docs/SayAllOf.md) - [Model.SendDigits](docs/SendDigits.md) - [Model.SendDigitsAllOf](docs/SendDigitsAllOf.md) + - [Model.SetDTMFPassThrough](docs/SetDTMFPassThrough.md) + - [Model.SetDTMFPassThroughAllOf](docs/SetDTMFPassThroughAllOf.md) - [Model.SetListen](docs/SetListen.md) - [Model.SetListenAllOf](docs/SetListenAllOf.md) - [Model.SetTalk](docs/SetTalk.md) diff --git a/docs/AddToConference.md b/docs/AddToConference.md index 8255fe49..e39d216a 100644 --- a/docs/AddToConference.md +++ b/docs/AddToConference.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **NotificationUrl** | **string** | When the Participant enters the Conference, this URL will be invoked using an HTTP POST request with the standard request parameters. | [optional] **StartConfOnEnter** | **bool** | Flag that indicates whether a Conference starts upon entry of this particular Participant. This is usually set to `true` for moderators and `false` for all other Participants. | [optional] **Talk** | **bool** | If `true`, the Participant joins the Conference with talk privileges. This may be modified later via the REST API or `SetTalk` PerCL command. | [optional] +**DtmfPassThrough** | **bool** | If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
[[Back to Enum list]](../README.md#documentation-for-enums)
diff --git a/docs/AddToConferenceAllOf.md b/docs/AddToConferenceAllOf.md index 8b2448ce..1928574e 100644 --- a/docs/AddToConferenceAllOf.md +++ b/docs/AddToConferenceAllOf.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **NotificationUrl** | **string** | When the Participant enters the Conference, this URL will be invoked using an HTTP POST request with the standard request parameters. | [optional] **StartConfOnEnter** | **bool** | Flag that indicates whether a Conference starts upon entry of this particular Participant. This is usually set to `true` for moderators and `false` for all other Participants. | [optional] **Talk** | **bool** | If `true`, the Participant joins the Conference with talk privileges. This may be modified later via the REST API or `SetTalk` PerCL command. | [optional] +**DtmfPassThrough** | **bool** | If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
[[Back to Enum list]](../README.md#documentation-for-enums)
diff --git a/docs/CallResult.md b/docs/CallResult.md index 2a483b38..5a605aed 100644 --- a/docs/CallResult.md +++ b/docs/CallResult.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **Direction** | **CallDirection** | | [optional] **AnsweredBy** | **AnsweredBy** | | [optional] **SubresourceUris** | **Object** | The list of subresources for this Call. These include things like logs and recordings associated with the Call. | [optional] +**ApplicationId** | **string** | ApplicationId associated with the Call. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
[[Back to Enum list]](../README.md#documentation-for-enums)
diff --git a/docs/CallResultAllOf.md b/docs/CallResultAllOf.md index c6801062..092fe12d 100644 --- a/docs/CallResultAllOf.md +++ b/docs/CallResultAllOf.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **Direction** | **CallDirection** | | [optional] **AnsweredBy** | **AnsweredBy** | | [optional] **SubresourceUris** | **Object** | The list of subresources for this Call. These include things like logs and recordings associated with the Call. | [optional] +**ApplicationId** | **string** | ApplicationId associated with the Call. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
[[Back to Enum list]](../README.md#documentation-for-enums)
diff --git a/docs/ConferenceParticipantResult.md b/docs/ConferenceParticipantResult.md index 32e3fb11..0cf61502 100644 --- a/docs/ConferenceParticipantResult.md +++ b/docs/ConferenceParticipantResult.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **CallId** | **string** | ID of the Call associated with this Participant. | [optional] **Talk** | **bool?** | True if this Participant has talk privileges in the Conference. False otherwise. | [optional] **Listen** | **bool?** | True if this Participant has listen privileges in the Conference. False otherwise. | [optional] +**DtmfPassThrough** | **bool?** | True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise. | [optional] **StartConfOnEnter** | **bool?** | True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
diff --git a/docs/ConferenceParticipantResultAllOf.md b/docs/ConferenceParticipantResultAllOf.md index c9510def..56aeee39 100644 --- a/docs/ConferenceParticipantResultAllOf.md +++ b/docs/ConferenceParticipantResultAllOf.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **CallId** | **string** | ID of the Call associated with this Participant. | [optional] **Talk** | **bool?** | True if this Participant has talk privileges in the Conference. False otherwise. | [optional] **Listen** | **bool?** | True if this Participant has listen privileges in the Conference. False otherwise. | [optional] +**DtmfPassThrough** | **bool?** | True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise. | [optional] **StartConfOnEnter** | **bool?** | True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 29b86f18..1d6fce62 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -3357,7 +3357,7 @@ Name | Type | Description | Notes # **ListParticipants** -> ConferenceParticipantList ListParticipants (string conferenceId, bool? talk = null, bool? listen = null) +> ConferenceParticipantList ListParticipants (string conferenceId, bool? talk = null, bool? listen = null, bool? dtmfPassThrough = null) List Participants @@ -3389,11 +3389,13 @@ namespace Example var listen = true; // bool? | Only show Participants with the listen privilege. (optional) + var dtmfPassThrough = true; // bool? | Only show Participants with the dtmfPassThrough privilege. (optional) + try { // List Participants - ConferenceParticipantList result = apiInstance.ListParticipants(conferenceId, talk, listen); + ConferenceParticipantList result = apiInstance.ListParticipants(conferenceId, talk, listen, dtmfPassThrough); Debug.WriteLine(result); } catch (ApiException e) @@ -3414,6 +3416,7 @@ Name | Type | Description | Notes **conferenceId** | **string**| ID of the conference this participant is in. | **talk** | **bool?**| Only show Participants with the talk privilege. | [optional] **listen** | **bool?**| Only show Participants with the listen privilege. | [optional] + **dtmfPassThrough** | **bool?**| Only show Participants with the dtmfPassThrough privilege. | [optional] ### Return type @@ -4187,7 +4190,7 @@ namespace Example var callId = "callId_example"; // string | ID of the Call associated with this participant. - var updateConferenceParticipantRequest = new UpdateConferenceParticipantRequest(Talk={ (Optional) Default is `true`. Setting to `false` mutes the Participant. FreeClimb returns an error and ignores any other value. }, Listen={ (Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value. }); // UpdateConferenceParticipantRequest | Conference participant details to update (optional) + var updateConferenceParticipantRequest = new UpdateConferenceParticipantRequest(Talk={ (Optional) Default is `true`. Setting to `false` mutes the Participant. FreeClimb returns an error and ignores any other value. }, Listen={ (Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value. }, DtmfPassThrough={ (Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value. }); // UpdateConferenceParticipantRequest | Conference participant details to update (optional) try { diff --git a/docs/SetDTMFPassThrough.md b/docs/SetDTMFPassThrough.md new file mode 100644 index 00000000..c6e9ecab --- /dev/null +++ b/docs/SetDTMFPassThrough.md @@ -0,0 +1,15 @@ +# freeclimb.Model.SetDTMFPassThrough + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | **string** | Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments) | [optional] +**DtmfPassThrough** | **bool** | Specifying `false` mutes the Participant's dtmf audio. | [optional] + +[[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
+[[Back to Enum list]](../README.md#documentation-for-enums)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/docs/SetDTMFPassThroughAllOf.md b/docs/SetDTMFPassThroughAllOf.md new file mode 100644 index 00000000..a0165dbc --- /dev/null +++ b/docs/SetDTMFPassThroughAllOf.md @@ -0,0 +1,14 @@ +# freeclimb.Model.SetDTMFPassThroughAllOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DtmfPassThrough** | **bool** | Specifying `false` mutes the Participant's dtmf audio. | [optional] + +[[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
+[[Back to Enum list]](../README.md#documentation-for-enums)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to README]](../README.md)
diff --git a/docs/UpdateConferenceParticipantRequest.md b/docs/UpdateConferenceParticipantRequest.md index 61328677..47169e97 100644 --- a/docs/UpdateConferenceParticipantRequest.md +++ b/docs/UpdateConferenceParticipantRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Talk** | **bool** | (Optional) Default is `true`. Setting to `false` mutes the Participant. FreeClimb returns an error and ignores any other value. | [optional] **Listen** | **bool** | (Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value. | [optional] +**DtmfPassThrough** | **bool** | (Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value. | [optional] [[Link to Serialization/Deserialization]](../README.md#documentation-for-serialization-deserialization)
[[Back to Enum list]](../README.md#documentation-for-enums)
diff --git a/freeclimb.sln b/freeclimb.sln index 99d133f2..8792e3b2 100644 --- a/freeclimb.sln +++ b/freeclimb.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb", "src\freeclimb\freeclimb.csproj", "{BA5E110B-18E0-4F5B-AB28-4D5247E6FACC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb", "src\freeclimb\freeclimb.csproj", "{D96E6496-DA7A-473C-AB39-4F3271DC1F08}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb.Test", "src\freeclimb.Test\freeclimb.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BA5E110B-18E0-4F5B-AB28-4D5247E6FACC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BA5E110B-18E0-4F5B-AB28-4D5247E6FACC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BA5E110B-18E0-4F5B-AB28-4D5247E6FACC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BA5E110B-18E0-4F5B-AB28-4D5247E6FACC}.Release|Any CPU.Build.0 = Release|Any CPU + {D96E6496-DA7A-473C-AB39-4F3271DC1F08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D96E6496-DA7A-473C-AB39-4F3271DC1F08}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D96E6496-DA7A-473C-AB39-4F3271DC1F08}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D96E6496-DA7A-473C-AB39-4F3271DC1F08}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/openapi.json b/openapi.json index 7314149f..554dc8cb 100644 --- a/openapi.json +++ b/openapi.json @@ -464,6 +464,7 @@ "SendDigits": "#/components/schemas/SendDigits", "SetListen": "#/components/schemas/SetListen", "SetTalk": "#/components/schemas/SetTalk", + "SetDTMFPassThrough": "#/components/schemas/SetDTMFPassThrough", "Sms": "#/components/schemas/Sms", "StartRecordCall": "#/components/schemas/StartRecordCall", "TerminateConference": "#/components/schemas/TerminateConference", @@ -536,6 +537,10 @@ "talk": { "description": "If `true`, the Participant joins the Conference with talk privileges. This may be modified later via the REST API or `SetTalk` PerCL command. ", "type": "boolean" + }, + "dtmfPassThrough": { + "description": "If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. ", + "type": "boolean" } } } @@ -1175,7 +1180,7 @@ ] }, "SetListen": { - "description": "The `SetListen` command enables or disables the listen privilege for a Conference Participant provided both calls are in the same conference. The Participant can hear what the other participants are saying only if this privilege is enabled.", + "description": "The `SetListen` command enables or disables the listen privilege for this Conference Participant. The Participant can hear what the other participants are saying only if this privilege is enabled.", "x-percl-command": true, "x-ref-properties": ["false"], "allOf": [ @@ -1195,7 +1200,7 @@ ] }, "SetTalk": { - "description": "The `SetTalk` command enables or disables the talk privilege for a Participant in a Conference provided both calls are in the same conference. If 'true', no audio from that Participant is shared with the other Participants of the Conference.", + "description": "The `SetTalk` command enables or disables the talk privilege for this Conference Participant. If 'true', no audio from that Participant is shared with the other Participants of the Conference.", "x-percl-command": true, "x-ref-properties": ["false"], "allOf": [ @@ -1214,6 +1219,26 @@ } ] }, + "SetDTMFPassThrough": { + "description": "The `SetDTMFPassThrough` command enables or disables the dtmfPassThrough privilege for this Conference Participant. If 'true', DTMFs will be passed through from this Participant to all other Participants in the Conference", + "x-percl-command": true, + "x-ref-properties": ["false"], + "allOf": [ + { + "$ref": "#/components/schemas/PerclCommand" + }, + { + "required": [], + "type": "object", + "properties": { + "dtmfPassThrough": { + "description": "Specifying `false` mutes the Participant's dtmf audio.", + "type": "boolean" + } + } + } + ] + }, "Sms": { "description": "The `Sms` command can be used to send an SMS message to a phone number during a phone call. International SMS is disabled by default.", "x-percl-command": true, @@ -1842,6 +1867,11 @@ "type": "object", "description": "The list of subresources for this Call. These include things like logs and recordings associated with the Call.", "nullable": true + }, + "applicationId": { + "type": "string", + "description": "ApplicationId associated with the Call.", + "nullable": true } } } @@ -2155,7 +2185,8 @@ "items": { "type": "string", "format": "uri" - } + }, + "nullable": true } } } @@ -2282,7 +2313,8 @@ "items": { "type": "string", "format": "uri" - } + }, + "nullable": true } } } @@ -2360,6 +2392,11 @@ "description": "True if this Participant has listen privileges in the Conference. False otherwise.", "nullable": true }, + "dtmfPassThrough": { + "type": "boolean", + "description": "True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise.", + "nullable": true + }, "startConfOnEnter": { "type": "boolean", "description": "True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise.", @@ -2379,6 +2416,10 @@ "listen": { "type": "boolean", "description": "(Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value." + }, + "dtmfPassThrough": { + "type": "boolean", + "description": "(Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value." } } }, @@ -4936,6 +4977,15 @@ "type": "boolean" } }, + { + "name": "dtmfPassThrough", + "in": "query", + "description": "Only show Participants with the dtmfPassThrough privilege.", + "required": false, + "schema": { + "type": "boolean" + } + }, { "$ref": "#/components/parameters/AccountId" }, diff --git a/src/freeclimb.Test/Api/DefaultApiTests.cs b/src/freeclimb.Test/Api/DefaultApiTests.cs index 8c4870e4..4d76513d 100644 --- a/src/freeclimb.Test/Api/DefaultApiTests.cs +++ b/src/freeclimb.Test/Api/DefaultApiTests.cs @@ -736,7 +736,9 @@ public void ListParticipantsTest() bool? listen = listenTestValue(); - var response = instance.ListParticipants(conferenceId, talk, listen); + bool? dtmfPassThrough = dtmfPassThroughTestValue(); + + var response = instance.ListParticipants(conferenceId, talk, listen, dtmfPassThrough); Assert.IsAssignableFrom(response); } @@ -1349,7 +1351,9 @@ public void ListParticipantsGetNextPageTest() bool? listen = listenTestValue(); - var response = instance.ListParticipants(conferenceId, talk, listen); + bool? dtmfPassThrough = dtmfPassThroughTestValue(); + + var response = instance.ListParticipants(conferenceId, talk, listen, dtmfPassThrough); //Assert.IsType(response); Assert.IsAssignableFrom(response); response.NextPageUri = "/Accounts/{accountId}/Conferences/{conferenceId}/Participants?cursor=1"; @@ -1845,5 +1849,10 @@ private string knowledgeBaseIdTestValue() { private CompletionRequest completionRequestTestValue() { return new CompletionRequest("QUERY"); } + + private bool dtmfPassThroughTestValue() + { + return true; + } } } diff --git a/src/freeclimb.Test/Model/AddToConferenceAllOfTests.cs b/src/freeclimb.Test/Model/AddToConferenceAllOfTests.cs index e058b47a..475cd48f 100644 --- a/src/freeclimb.Test/Model/AddToConferenceAllOfTests.cs +++ b/src/freeclimb.Test/Model/AddToConferenceAllOfTests.cs @@ -43,7 +43,7 @@ public class AddToConferenceAllOfTests public AddToConferenceAllOfTests() { - instance = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + instance = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); } @@ -147,6 +147,16 @@ public void TalkTest() Assert.Equal(false, instance.Talk); } + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + + } /// @@ -155,7 +165,7 @@ public void TalkTest() [Fact] public void equalsTrueTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -165,8 +175,9 @@ public void equalsTrueTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -176,6 +187,7 @@ public void equalsTrueTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; Assert.Equal(test1,test2); } @@ -186,7 +198,7 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -196,8 +208,9 @@ public void equalsFalseTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test2.AllowCallControl = false; test2.CallControlSequence = "ts"; test2.CallControlUrl = "ts"; @@ -207,6 +220,7 @@ public void equalsFalseTest() { test2.NotificationUrl = "ts"; test2.StartConfOnEnter = false; test2.Talk = false; + test2.DtmfPassThrough = false; Assert.NotEqual(test1,test2); } @@ -217,7 +231,7 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -227,6 +241,7 @@ public void hashCodeTypeTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; int hashCode1 = test1.GetHashCode(); Assert.True(hashCode1.GetType() == typeof(int)); @@ -239,7 +254,7 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -249,6 +264,7 @@ public void ToStringTypeTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; string toString1 = test1.ToString(); Assert.True(toString1.GetType() == typeof(string)); @@ -261,7 +277,7 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -271,8 +287,9 @@ public void ToStringEqualsTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -282,6 +299,7 @@ public void ToStringEqualsTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; string toString1 = test1.ToString(); string toString2 = test2.ToString(); @@ -295,7 +313,7 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -305,8 +323,9 @@ public void equalsTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -316,6 +335,7 @@ public void equalsTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; Assert.True(test1.Equals(test2)); } @@ -326,7 +346,7 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test1 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -336,12 +356,13 @@ public void ToJsonTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false); + AddToConferenceAllOf test2 = new AddToConferenceAllOf(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -351,6 +372,7 @@ public void ToJsonTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } diff --git a/src/freeclimb.Test/Model/AddToConferenceTests.cs b/src/freeclimb.Test/Model/AddToConferenceTests.cs index 7d15175d..5d273508 100644 --- a/src/freeclimb.Test/Model/AddToConferenceTests.cs +++ b/src/freeclimb.Test/Model/AddToConferenceTests.cs @@ -43,7 +43,7 @@ public class AddToConferenceTests public AddToConferenceTests() { - instance = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + instance = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); } @@ -147,6 +147,16 @@ public void TalkTest() Assert.Equal(false, instance.Talk); } + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + + } /// @@ -155,7 +165,7 @@ public void TalkTest() [Fact] public void equalsTrueTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -165,8 +175,9 @@ public void equalsTrueTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -176,6 +187,7 @@ public void equalsTrueTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; Assert.Equal(test1,test2); } @@ -186,7 +198,7 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -196,8 +208,9 @@ public void equalsFalseTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test2.AllowCallControl = false; test2.CallControlSequence = "ts"; test2.CallControlUrl = "ts"; @@ -207,6 +220,7 @@ public void equalsFalseTest() { test2.NotificationUrl = "ts"; test2.StartConfOnEnter = false; test2.Talk = false; + test2.DtmfPassThrough = false; Assert.NotEqual(test1,test2); } @@ -217,7 +231,7 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -227,6 +241,7 @@ public void hashCodeTypeTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; int hashCode1 = test1.GetHashCode(); Assert.True(hashCode1.GetType() == typeof(int)); @@ -239,7 +254,7 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -249,6 +264,7 @@ public void ToStringTypeTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; string toString1 = test1.ToString(); Assert.True(toString1.GetType() == typeof(string)); @@ -261,7 +277,7 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -271,8 +287,9 @@ public void ToStringEqualsTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -282,6 +299,7 @@ public void ToStringEqualsTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; string toString1 = test1.ToString(); string toString2 = test2.ToString(); @@ -295,7 +313,7 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -305,8 +323,9 @@ public void equalsTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; - AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -316,6 +335,7 @@ public void equalsTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; Assert.True(test1.Equals(test2)); } @@ -326,7 +346,7 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test1 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test1.AllowCallControl = true; test1.CallControlSequence = "TS"; test1.CallControlUrl = "TS"; @@ -336,12 +356,13 @@ public void ToJsonTest() { test1.NotificationUrl = "TS"; test1.StartConfOnEnter = true; test1.Talk = true; + test1.DtmfPassThrough = true; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, "TEST_STRING"); + AddToConference test2 = new AddToConference(false, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", false, "TEST_STRING", false, false, false, "TEST_STRING"); test2.AllowCallControl = true; test2.CallControlSequence = "TS"; test2.CallControlUrl = "TS"; @@ -351,6 +372,7 @@ public void ToJsonTest() { test2.NotificationUrl = "TS"; test2.StartConfOnEnter = true; test2.Talk = true; + test2.DtmfPassThrough = true; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } diff --git a/src/freeclimb.Test/Model/CallResultAllOfTests.cs b/src/freeclimb.Test/Model/CallResultAllOfTests.cs index f4679a82..667dd345 100644 --- a/src/freeclimb.Test/Model/CallResultAllOfTests.cs +++ b/src/freeclimb.Test/Model/CallResultAllOfTests.cs @@ -43,7 +43,7 @@ public class CallResultAllOfTests public CallResultAllOfTests() { - instance = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + instance = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); } @@ -228,6 +228,16 @@ public void SubresourceUrisTest() Assert.Equal(testObject, instance.SubresourceUris); } + /// + /// Test the property 'ApplicationId' + /// + [Fact] + public void ApplicationIdTest() + { + instance.ApplicationId = "TEST_STRING"; + Assert.Equal("TEST_STRING", instance.ApplicationId); + + } /// @@ -236,7 +246,7 @@ public void SubresourceUrisTest() [Fact] public void equalsTrueTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -253,8 +263,9 @@ public void equalsTrueTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.CallId = "TS"; test2.ParentCallId = "TS"; test2.AccountId = "TS"; @@ -271,6 +282,7 @@ public void equalsTrueTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = testObject; test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; Assert.Equal(test1,test2); } @@ -281,7 +293,7 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -298,8 +310,9 @@ public void equalsFalseTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.CallId = "ts"; test2.ParentCallId = "ts"; test2.AccountId = "ts"; @@ -316,6 +329,7 @@ public void equalsFalseTest() { test2.AnsweredBy = AnsweredBy.MACHINE; object testObject2 = new object(); test2.SubresourceUris = testObject2; + test2.ApplicationId = "ts"; Assert.NotEqual(test1,test2); } @@ -326,7 +340,7 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -343,6 +357,7 @@ public void hashCodeTypeTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; int hashCode1 = test1.GetHashCode(); Assert.True(hashCode1.GetType() == typeof(int)); @@ -355,7 +370,7 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -372,6 +387,7 @@ public void ToStringTypeTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; string toString1 = test1.ToString(); Assert.True(toString1.GetType() == typeof(string)); @@ -384,7 +400,7 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -401,8 +417,9 @@ public void ToStringEqualsTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.CallId = "TS"; test2.ParentCallId = "TS"; test2.AccountId = "TS"; @@ -419,6 +436,7 @@ public void ToStringEqualsTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = new object(); test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; string toString1 = test1.ToString(); string toString2 = test2.ToString(); @@ -432,7 +450,7 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -449,8 +467,9 @@ public void equalsTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.CallId = "TS"; test2.ParentCallId = "TS"; test2.AccountId = "TS"; @@ -467,6 +486,7 @@ public void equalsTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = testObject; test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; Assert.True(test1.Equals(test2)); } @@ -477,7 +497,7 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test1 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.CallId = "TS"; test1.ParentCallId = "TS"; test1.AccountId = "TS"; @@ -494,12 +514,13 @@ public void ToJsonTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResultAllOf test2 = new CallResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.CallId = "TS"; test2.ParentCallId = "TS"; test2.AccountId = "TS"; @@ -516,6 +537,7 @@ public void ToJsonTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = testObject; test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } diff --git a/src/freeclimb.Test/Model/CallResultTests.cs b/src/freeclimb.Test/Model/CallResultTests.cs index 52a6cee2..abff1a9e 100644 --- a/src/freeclimb.Test/Model/CallResultTests.cs +++ b/src/freeclimb.Test/Model/CallResultTests.cs @@ -43,7 +43,7 @@ public class CallResultTests public CallResultTests() { - instance = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + instance = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); } @@ -268,6 +268,16 @@ public void SubresourceUrisTest() Assert.Equal(testObject, instance.SubresourceUris); } + /// + /// Test the property 'ApplicationId' + /// + [Fact] + public void ApplicationIdTest() + { + instance.ApplicationId = "TEST_STRING"; + Assert.Equal("TEST_STRING", instance.ApplicationId); + + } /// @@ -276,7 +286,7 @@ public void SubresourceUrisTest() [Fact] public void equalsTrueTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -297,8 +307,9 @@ public void equalsTrueTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -319,6 +330,7 @@ public void equalsTrueTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = testObject; test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; Assert.Equal(test1,test2); } @@ -329,7 +341,7 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -350,8 +362,9 @@ public void equalsFalseTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.Uri = "ts"; test2.DateCreated = "ts"; test2.DateUpdated = "ts"; @@ -372,6 +385,7 @@ public void equalsFalseTest() { test2.AnsweredBy = AnsweredBy.MACHINE; object testObject2 = new object(); test2.SubresourceUris = testObject2; + test2.ApplicationId = "ts"; Assert.NotEqual(test1,test2); } @@ -382,7 +396,7 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -403,6 +417,7 @@ public void hashCodeTypeTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; int hashCode1 = test1.GetHashCode(); Assert.True(hashCode1.GetType() == typeof(int)); @@ -415,7 +430,7 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -436,6 +451,7 @@ public void ToStringTypeTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; string toString1 = test1.ToString(); Assert.True(toString1.GetType() == typeof(string)); @@ -448,7 +464,7 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -469,8 +485,9 @@ public void ToStringEqualsTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -491,6 +508,7 @@ public void ToStringEqualsTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = new object(); test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; string toString1 = test1.ToString(); string toString2 = test2.ToString(); @@ -504,7 +522,7 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -525,8 +543,9 @@ public void equalsTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; - CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -547,6 +566,7 @@ public void equalsTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = testObject; test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; Assert.True(test1.Equals(test2)); } @@ -557,7 +577,7 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test1 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -578,12 +598,13 @@ public void ToJsonTest() { test1.AnsweredBy = AnsweredBy.HUMAN; object testObject = new object(); test1.SubresourceUris = testObject; + test1.ApplicationId = "TS"; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object()); + CallResult test2 = new CallResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", "TEST_STRING", CallStatus.QUEUED, "TEST_STRING", "TEST_STRING", "TEST_STRING", 1, 1, CallDirection.INBOUND, AnsweredBy.HUMAN, new object(), "TEST_STRING"); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -604,6 +625,7 @@ public void ToJsonTest() { test2.AnsweredBy = AnsweredBy.HUMAN; object testObject2 = testObject; test2.SubresourceUris = testObject2; + test2.ApplicationId = "TS"; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } diff --git a/src/freeclimb.Test/Model/CompletionRequestTests.cs b/src/freeclimb.Test/Model/CompletionRequestTests.cs index 808ab276..d9c8286e 100644 --- a/src/freeclimb.Test/Model/CompletionRequestTests.cs +++ b/src/freeclimb.Test/Model/CompletionRequestTests.cs @@ -178,6 +178,5 @@ public void ToJsonTest() { Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } - } } diff --git a/src/freeclimb.Test/Model/CompletionResultTests.cs b/src/freeclimb.Test/Model/CompletionResultTests.cs index f46fec4a..52e87560 100644 --- a/src/freeclimb.Test/Model/CompletionResultTests.cs +++ b/src/freeclimb.Test/Model/CompletionResultTests.cs @@ -192,6 +192,5 @@ public void ToJsonTest() { Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } - } } diff --git a/src/freeclimb.Test/Model/ConferenceParticipantResultAllOfTests.cs b/src/freeclimb.Test/Model/ConferenceParticipantResultAllOfTests.cs index 42bf3b5e..44eeaf86 100644 --- a/src/freeclimb.Test/Model/ConferenceParticipantResultAllOfTests.cs +++ b/src/freeclimb.Test/Model/ConferenceParticipantResultAllOfTests.cs @@ -43,7 +43,7 @@ public class ConferenceParticipantResultAllOfTests public ConferenceParticipantResultAllOfTests() { - instance = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + instance = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); } @@ -106,6 +106,16 @@ public void ListenTest() instance.Listen = false; Assert.Equal(false, instance.Listen); + } + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + } /// /// Test the property 'StartConfOnEnter' @@ -125,20 +135,22 @@ public void StartConfOnEnterTest() [Fact] public void equalsTrueTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.AccountId = "TS"; test2.ConferenceId = "TS"; test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; Assert.Equal(test1,test2); @@ -150,20 +162,22 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.AccountId = "ts"; test2.ConferenceId = "ts"; test2.CallId = "ts"; test2.Talk = false; test2.Listen = false; + test2.DtmfPassThrough = false; test2.StartConfOnEnter = false; Assert.NotEqual(test1,test2); @@ -175,12 +189,13 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; int hashCode1 = test1.GetHashCode(); @@ -194,12 +209,13 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; string toString1 = test1.ToString(); @@ -213,20 +229,22 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.AccountId = "TS"; test2.ConferenceId = "TS"; test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; string toString1 = test1.ToString(); @@ -241,20 +259,22 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.AccountId = "TS"; test2.ConferenceId = "TS"; test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; Assert.True(test1.Equals(test2)); @@ -266,24 +286,26 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test1 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.AccountId = "TS"; test1.ConferenceId = "TS"; test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResultAllOf test2 = new ConferenceParticipantResultAllOf("TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.AccountId = "TS"; test2.ConferenceId = "TS"; test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); diff --git a/src/freeclimb.Test/Model/ConferenceParticipantResultTests.cs b/src/freeclimb.Test/Model/ConferenceParticipantResultTests.cs index e7a66444..eee3949c 100644 --- a/src/freeclimb.Test/Model/ConferenceParticipantResultTests.cs +++ b/src/freeclimb.Test/Model/ConferenceParticipantResultTests.cs @@ -43,7 +43,7 @@ public class ConferenceParticipantResultTests public ConferenceParticipantResultTests() { - instance = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + instance = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); } @@ -146,6 +146,16 @@ public void ListenTest() instance.Listen = false; Assert.Equal(false, instance.Listen); + } + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + } /// /// Test the property 'StartConfOnEnter' @@ -165,7 +175,7 @@ public void StartConfOnEnterTest() [Fact] public void equalsTrueTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -175,9 +185,10 @@ public void equalsTrueTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -187,6 +198,7 @@ public void equalsTrueTest() { test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; Assert.Equal(test1,test2); @@ -198,7 +210,7 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -208,9 +220,10 @@ public void equalsFalseTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.Uri = "ts"; test2.DateCreated = "ts"; test2.DateUpdated = "ts"; @@ -220,6 +233,7 @@ public void equalsFalseTest() { test2.CallId = "ts"; test2.Talk = false; test2.Listen = false; + test2.DtmfPassThrough = false; test2.StartConfOnEnter = false; Assert.NotEqual(test1,test2); @@ -231,7 +245,7 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -241,6 +255,7 @@ public void hashCodeTypeTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; int hashCode1 = test1.GetHashCode(); @@ -254,7 +269,7 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -264,6 +279,7 @@ public void ToStringTypeTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; string toString1 = test1.ToString(); @@ -277,7 +293,7 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -287,9 +303,10 @@ public void ToStringEqualsTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -299,6 +316,7 @@ public void ToStringEqualsTest() { test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; string toString1 = test1.ToString(); @@ -313,7 +331,7 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -323,9 +341,10 @@ public void equalsTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; - ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -335,6 +354,7 @@ public void equalsTest() { test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; Assert.True(test1.Equals(test2)); @@ -346,7 +366,7 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test1 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test1.Uri = "TS"; test1.DateCreated = "TS"; test1.DateUpdated = "TS"; @@ -356,13 +376,14 @@ public void ToJsonTest() { test1.CallId = "TS"; test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; test1.StartConfOnEnter = true; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false); + ConferenceParticipantResult test2 = new ConferenceParticipantResult("TEST_STRING", "TEST_STRING", "TEST_STRING", 1, "TEST_STRING", "TEST_STRING", "TEST_STRING", false, false, false, false); test2.Uri = "TS"; test2.DateCreated = "TS"; test2.DateUpdated = "TS"; @@ -372,6 +393,7 @@ public void ToJsonTest() { test2.CallId = "TS"; test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; test2.StartConfOnEnter = true; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); diff --git a/src/freeclimb.Test/Model/PerclCommandTests.cs b/src/freeclimb.Test/Model/PerclCommandTests.cs index 97ad44a7..77c61682 100644 --- a/src/freeclimb.Test/Model/PerclCommandTests.cs +++ b/src/freeclimb.Test/Model/PerclCommandTests.cs @@ -81,6 +81,14 @@ public void RemoveFromConferenceDeserializeFromPerclCommandTest() Assert.IsType(JsonConvert.DeserializeObject(new RemoveFromConference().ToJson())); } /// + /// Test deserialize a SetDTMFPassThrough from type PerclCommand + /// + [Fact] + public void SetDTMFPassThroughDeserializeFromPerclCommandTest() + { + Assert.IsType(JsonConvert.DeserializeObject(new SetDTMFPassThrough(false).ToJson())); + } + /// /// Test deserialize a TerminateConference from type PerclCommand /// [Fact] diff --git a/src/freeclimb.Test/Model/SetDTMFPassThroughAllOfTests.cs b/src/freeclimb.Test/Model/SetDTMFPassThroughAllOfTests.cs new file mode 100644 index 00000000..a7008fab --- /dev/null +++ b/src/freeclimb.Test/Model/SetDTMFPassThroughAllOfTests.cs @@ -0,0 +1,182 @@ +/* + * FreeClimb API + * + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using System.Text; +using freeclimb.Api; +using freeclimb.Model; +using freeclimb.Client; +using System.Reflection; +using Newtonsoft.Json; +using System.Globalization; +using freeclimb.Enums; + + +namespace freeclimb.Test.Model +{ + /// + /// Class for testing SetDTMFPassThroughAllOf + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SetDTMFPassThroughAllOfTests + { + private SetDTMFPassThroughAllOf instance; + + public SetDTMFPassThroughAllOfTests() + { + + instance = new SetDTMFPassThroughAllOf(false); + + } + + /// + /// Test an instance of SetDTMFPassThroughAllOf + /// + [Fact] + public void SetDTMFPassThroughAllOfInstanceTest() + { + Assert.IsType(instance); + } + + + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + + } + + + /// + /// Test the method 'equalsTrue' + /// + + [Fact] + public void equalsTrueTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + + SetDTMFPassThroughAllOf test2 = new SetDTMFPassThroughAllOf(false); + test2.DtmfPassThrough = true; + + Assert.Equal(test1,test2); + } + + /// + /// Test the method 'equalsFalse' + /// + + [Fact] + public void equalsFalseTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + + SetDTMFPassThroughAllOf test2 = new SetDTMFPassThroughAllOf(false); + test2.DtmfPassThrough = false; + + Assert.NotEqual(test1,test2); + } + + /// + /// Test the method 'hashCodeType' + /// + + [Fact] + public void hashCodeTypeTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + + int hashCode1 = test1.GetHashCode(); + Assert.True(hashCode1.GetType() == typeof(int)); + + } + + /// + /// Test the method 'ToStringType' + /// + + [Fact] + public void ToStringTypeTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + + string toString1 = test1.ToString(); + Assert.True(toString1.GetType() == typeof(string)); + + } + + /// + /// Test the method 'ToStringEquals' + /// + + [Fact] + public void ToStringEqualsTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + + SetDTMFPassThroughAllOf test2 = new SetDTMFPassThroughAllOf(false); + test2.DtmfPassThrough = true; + + string toString1 = test1.ToString(); + string toString2 = test2.ToString(); + Assert.Equal(toString1, toString2); + + } + + /// + /// Test the method 'equals' + /// + + [Fact] + public void equalsTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + + SetDTMFPassThroughAllOf test2 = new SetDTMFPassThroughAllOf(false); + test2.DtmfPassThrough = true; + + Assert.True(test1.Equals(test2)); + } + + /// + /// Test the method 'ToJson' + /// + + [Fact] + public void ToJsonTest() { + SetDTMFPassThroughAllOf test1 = new SetDTMFPassThroughAllOf(false); + test1.DtmfPassThrough = true; + JsonSerializer jsonSerializer = JsonSerializer.Create(); + jsonSerializer.NullValueHandling = NullValueHandling.Ignore; + StringBuilder strb = new StringBuilder(); + jsonSerializer.Serialize(new StringWriter(strb), test1); + + SetDTMFPassThroughAllOf test2 = new SetDTMFPassThroughAllOf(false); + test2.DtmfPassThrough = true; + + Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); + } + } +} diff --git a/src/freeclimb.Test/Model/SetDTMFPassThroughTests.cs b/src/freeclimb.Test/Model/SetDTMFPassThroughTests.cs new file mode 100644 index 00000000..336526c2 --- /dev/null +++ b/src/freeclimb.Test/Model/SetDTMFPassThroughTests.cs @@ -0,0 +1,182 @@ +/* + * FreeClimb API + * + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using System.Text; +using freeclimb.Api; +using freeclimb.Model; +using freeclimb.Client; +using System.Reflection; +using Newtonsoft.Json; +using System.Globalization; +using freeclimb.Enums; + + +namespace freeclimb.Test.Model +{ + /// + /// Class for testing SetDTMFPassThrough + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class SetDTMFPassThroughTests + { + private SetDTMFPassThrough instance; + + public SetDTMFPassThroughTests() + { + + instance = new SetDTMFPassThrough(false, "TEST_STRING"); + + } + + /// + /// Test an instance of SetDTMFPassThrough + /// + [Fact] + public void SetDTMFPassThroughInstanceTest() + { + Assert.IsType(instance); + } + + + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + + } + + + /// + /// Test the method 'equalsTrue' + /// + + [Fact] + public void equalsTrueTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + + SetDTMFPassThrough test2 = new SetDTMFPassThrough(false, "TEST_STRING"); + test2.DtmfPassThrough = true; + + Assert.Equal(test1,test2); + } + + /// + /// Test the method 'equalsFalse' + /// + + [Fact] + public void equalsFalseTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + + SetDTMFPassThrough test2 = new SetDTMFPassThrough(false, "TEST_STRING"); + test2.DtmfPassThrough = false; + + Assert.NotEqual(test1,test2); + } + + /// + /// Test the method 'hashCodeType' + /// + + [Fact] + public void hashCodeTypeTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + + int hashCode1 = test1.GetHashCode(); + Assert.True(hashCode1.GetType() == typeof(int)); + + } + + /// + /// Test the method 'ToStringType' + /// + + [Fact] + public void ToStringTypeTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + + string toString1 = test1.ToString(); + Assert.True(toString1.GetType() == typeof(string)); + + } + + /// + /// Test the method 'ToStringEquals' + /// + + [Fact] + public void ToStringEqualsTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + + SetDTMFPassThrough test2 = new SetDTMFPassThrough(false, "TEST_STRING"); + test2.DtmfPassThrough = true; + + string toString1 = test1.ToString(); + string toString2 = test2.ToString(); + Assert.Equal(toString1, toString2); + + } + + /// + /// Test the method 'equals' + /// + + [Fact] + public void equalsTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + + SetDTMFPassThrough test2 = new SetDTMFPassThrough(false, "TEST_STRING"); + test2.DtmfPassThrough = true; + + Assert.True(test1.Equals(test2)); + } + + /// + /// Test the method 'ToJson' + /// + + [Fact] + public void ToJsonTest() { + SetDTMFPassThrough test1 = new SetDTMFPassThrough(false, "TEST_STRING"); + test1.DtmfPassThrough = true; + JsonSerializer jsonSerializer = JsonSerializer.Create(); + jsonSerializer.NullValueHandling = NullValueHandling.Ignore; + StringBuilder strb = new StringBuilder(); + jsonSerializer.Serialize(new StringWriter(strb), test1); + + SetDTMFPassThrough test2 = new SetDTMFPassThrough(false, "TEST_STRING"); + test2.DtmfPassThrough = true; + + Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); + } + } +} diff --git a/src/freeclimb.Test/Model/UpdateConferenceParticipantRequestTests.cs b/src/freeclimb.Test/Model/UpdateConferenceParticipantRequestTests.cs index c2099ae3..60a86b79 100644 --- a/src/freeclimb.Test/Model/UpdateConferenceParticipantRequestTests.cs +++ b/src/freeclimb.Test/Model/UpdateConferenceParticipantRequestTests.cs @@ -43,7 +43,7 @@ public class UpdateConferenceParticipantRequestTests public UpdateConferenceParticipantRequestTests() { - instance = new UpdateConferenceParticipantRequest(false, false); + instance = new UpdateConferenceParticipantRequest(false, false, false); } @@ -77,6 +77,16 @@ public void ListenTest() Assert.Equal(false, instance.Listen); } + /// + /// Test the property 'DtmfPassThrough' + /// + [Fact] + public void DtmfPassThroughTest() + { + instance.DtmfPassThrough = false; + Assert.Equal(false, instance.DtmfPassThrough); + + } /// @@ -85,13 +95,15 @@ public void ListenTest() [Fact] public void equalsTrueTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; - UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false, false); test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; Assert.Equal(test1,test2); } @@ -102,13 +114,15 @@ public void equalsTrueTest() { [Fact] public void equalsFalseTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; - UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false, false); test2.Talk = false; test2.Listen = false; + test2.DtmfPassThrough = false; Assert.NotEqual(test1,test2); } @@ -119,9 +133,10 @@ public void equalsFalseTest() { [Fact] public void hashCodeTypeTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; int hashCode1 = test1.GetHashCode(); Assert.True(hashCode1.GetType() == typeof(int)); @@ -134,9 +149,10 @@ public void hashCodeTypeTest() { [Fact] public void ToStringTypeTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; string toString1 = test1.ToString(); Assert.True(toString1.GetType() == typeof(string)); @@ -149,13 +165,15 @@ public void ToStringTypeTest() { [Fact] public void ToStringEqualsTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; - UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false, false); test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; string toString1 = test1.ToString(); string toString2 = test2.ToString(); @@ -169,13 +187,15 @@ public void ToStringEqualsTest() { [Fact] public void equalsTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; - UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false, false); test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; Assert.True(test1.Equals(test2)); } @@ -186,17 +206,19 @@ public void equalsTest() { [Fact] public void ToJsonTest() { - UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test1 = new UpdateConferenceParticipantRequest(false, false, false); test1.Talk = true; test1.Listen = true; + test1.DtmfPassThrough = true; JsonSerializer jsonSerializer = JsonSerializer.Create(); jsonSerializer.NullValueHandling = NullValueHandling.Ignore; StringBuilder strb = new StringBuilder(); jsonSerializer.Serialize(new StringWriter(strb), test1); - UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false); + UpdateConferenceParticipantRequest test2 = new UpdateConferenceParticipantRequest(false, false, false); test2.Talk = true; test2.Listen = true; + test2.DtmfPassThrough = true; Assert.True(strb.Equals(JsonConvert.SerializeObject(test2))); } diff --git a/src/freeclimb/Api/DefaultApi.cs b/src/freeclimb/Api/DefaultApi.cs index e4cecdaf..9672252c 100644 --- a/src/freeclimb/Api/DefaultApi.cs +++ b/src/freeclimb/Api/DefaultApi.cs @@ -866,8 +866,9 @@ public interface IDefaultApiSync : IApiAccessor /// ID of the conference this participant is in. /// Only show Participants with the talk privilege. (optional) /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) /// ConferenceParticipantList - ConferenceParticipantList ListParticipants(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?)); + ConferenceParticipantList ListParticipants(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?)); /// /// List Participants @@ -879,8 +880,9 @@ public interface IDefaultApiSync : IApiAccessor /// ID of the conference this participant is in. /// Only show Participants with the talk privilege. (optional) /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) /// ApiResponse of ConferenceParticipantList - ApiResponse ListParticipantsWithHttpInfo(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?)); + ApiResponse ListParticipantsWithHttpInfo(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?)); /// /// List Recordings /// @@ -2472,9 +2474,11 @@ public interface IDefaultApiAsync : IApiAccessor /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) + /// Cancellation Token to cancel the request. /// Task of ConferenceParticipantList - System.Threading.Tasks.Task ListParticipantsAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListParticipantsAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Participants @@ -2490,9 +2494,11 @@ public interface IDefaultApiAsync : IApiAccessor /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) + /// Cancellation Token to cancel the request. /// Task of ApiResponse (ConferenceParticipantList) - System.Threading.Tasks.Task> ListParticipantsWithHttpInfoAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListParticipantsWithHttpInfoAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Recordings /// @@ -10115,10 +10121,11 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str /// ID of the conference this participant is in. /// Only show Participants with the talk privilege. (optional) /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) /// ConferenceParticipantList - public ConferenceParticipantList ListParticipants(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?)) + public ConferenceParticipantList ListParticipants(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?)) { - freeclimb.Client.ApiResponse localVarResponse = ListParticipantsWithHttpInfo(conferenceId , talk , listen ); + freeclimb.Client.ApiResponse localVarResponse = ListParticipantsWithHttpInfo(conferenceId , talk , listen , dtmfPassThrough ); return localVarResponse.Data; } @@ -10129,8 +10136,9 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str /// ID of the conference this participant is in. /// Only show Participants with the talk privilege. (optional) /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) /// ApiResponse of ConferenceParticipantList - public freeclimb.Client.ApiResponse ListParticipantsWithHttpInfo(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?)) + public freeclimb.Client.ApiResponse ListParticipantsWithHttpInfo(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?)) { // verify the required parameter 'conferenceId' is set @@ -10142,6 +10150,7 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str + freeclimb.Client.RequestOptions localVarRequestOptions = new freeclimb.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -10174,6 +10183,10 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str { localVarRequestOptions.QueryParameters.Add(freeclimb.Client.ClientUtils.ParameterToMultiMap("", "listen", listen)); } + if (dtmfPassThrough != null) + { + localVarRequestOptions.QueryParameters.Add(freeclimb.Client.ClientUtils.ParameterToMultiMap("", "dtmfPassThrough", dtmfPassThrough)); + } // authentication (fc) required // http basic authentication required @@ -10207,11 +10220,13 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) + /// Cancellation Token to cancel the request. /// Task of ConferenceParticipantList - public async System.Threading.Tasks.Task ListParticipantsAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListParticipantsAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - freeclimb.Client.ApiResponse localVarResponse = await ListParticipantsWithHttpInfoAsync(conferenceId, talk, listen, cancellationToken).ConfigureAwait(false); + freeclimb.Client.ApiResponse localVarResponse = await ListParticipantsWithHttpInfoAsync(conferenceId, talk, listen, dtmfPassThrough, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -10226,9 +10241,11 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str /// Only show Participants with the listen privilege. (optional) + /// Only show Participants with the dtmfPassThrough privilege. (optional) + /// Cancellation Token to cancel the request. /// Task of ApiResponse (ConferenceParticipantList) - public async System.Threading.Tasks.Task> ListParticipantsWithHttpInfoAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListParticipantsWithHttpInfoAsync(string conferenceId, bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'conferenceId' is set @@ -10240,6 +10257,7 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str + freeclimb.Client.RequestOptions localVarRequestOptions = new freeclimb.Client.RequestOptions(); @@ -10273,6 +10291,10 @@ public freeclimb.Client.ApiResponse ListMembersWithHttpInfo(str { localVarRequestOptions.QueryParameters.Add(freeclimb.Client.ClientUtils.ParameterToMultiMap("", "listen", listen)); } + if (dtmfPassThrough != null) + { + localVarRequestOptions.QueryParameters.Add(freeclimb.Client.ClientUtils.ParameterToMultiMap("", "dtmfPassThrough", dtmfPassThrough)); + } // authentication (fc) required // http basic authentication required diff --git a/src/freeclimb/Client/Configuration.cs b/src/freeclimb/Client/Configuration.cs index caa056da..c3194e5a 100644 --- a/src/freeclimb/Client/Configuration.cs +++ b/src/freeclimb/Client/Configuration.cs @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "4.9.0"; + public const string Version = "4.10.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -107,7 +107,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = "OpenAPI-Generator/4.9.0/csharp"; + UserAgent = "OpenAPI-Generator/4.10.0/csharp"; BasePath = "https://www.freeclimb.com/apiserver"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -452,7 +452,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 1.0.0\n"; - report += " SDK Package Version: 4.9.0\n"; + report += " SDK Package Version: 4.10.0\n"; return report; } diff --git a/src/freeclimb/Model/AddToConference.cs b/src/freeclimb/Model/AddToConference.cs index c63d69d5..bd7a097a 100644 --- a/src/freeclimb/Model/AddToConference.cs +++ b/src/freeclimb/Model/AddToConference.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] @@ -77,8 +78,9 @@ protected AddToConference() { } /// When the Participant enters the Conference, this URL will be invoked using an HTTP POST request with the standard request parameters.. /// Flag that indicates whether a Conference starts upon entry of this particular Participant. This is usually set to `true` for moderators and `false` for all other Participants.. /// If `true`, the Participant joins the Conference with talk privileges. This may be modified later via the REST API or `SetTalk` PerCL command. . + /// If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. . /// Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments) (default to "AddToConference"). - public AddToConference(bool allowCallControl = default(bool), string callControlSequence = default(string), string callControlUrl = default(string), string conferenceId = default(string), string leaveConferenceUrl = default(string), bool listen = default(bool), string notificationUrl = default(string), bool startConfOnEnter = default(bool), bool talk = default(bool), string command = "AddToConference") : base(command) + public AddToConference(bool allowCallControl = default(bool), string callControlSequence = default(string), string callControlUrl = default(string), string conferenceId = default(string), string leaveConferenceUrl = default(string), bool listen = default(bool), string notificationUrl = default(string), bool startConfOnEnter = default(bool), bool talk = default(bool), bool dtmfPassThrough = default(bool), string command = "AddToConference") : base(command) { // to ensure "conferenceId" is required (not null) if (conferenceId == null) { @@ -93,6 +95,7 @@ protected AddToConference() { } this.NotificationUrl = notificationUrl; this.StartConfOnEnter = startConfOnEnter; this.Talk = talk; + this.DtmfPassThrough = dtmfPassThrough; } /// @@ -158,6 +161,13 @@ protected AddToConference() { } [DataMember(Name = "talk", EmitDefaultValue = true)] public bool Talk { get; set; } + /// + /// If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. + /// + /// If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool DtmfPassThrough { get; set; } + /// /// Returns the string presentation of the object /// @@ -176,6 +186,7 @@ public override string ToString() sb.Append(" NotificationUrl: ").Append(NotificationUrl).Append("\n"); sb.Append(" StartConfOnEnter: ").Append(StartConfOnEnter).Append("\n"); sb.Append(" Talk: ").Append(Talk).Append("\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -211,6 +222,7 @@ public override IDictionary ToKvp() props.Add("notificationUrl", NotificationUrl); props.Add("startConfOnEnter", StartConfOnEnter); props.Add("talk", Talk); + props.Add("dtmfPassThrough", DtmfPassThrough); IDictionary command = new Dictionary(); command.Add("AddToConference",props); return command; @@ -278,6 +290,10 @@ public bool Equals(AddToConference input) ( this.Talk == input.Talk || this.Talk.Equals(input.Talk) + ) && base.Equals(input) && + ( + this.DtmfPassThrough == input.DtmfPassThrough || + this.DtmfPassThrough.Equals(input.DtmfPassThrough) ); } @@ -314,6 +330,7 @@ public override int GetHashCode() } hashCode = (hashCode * 59) + this.StartConfOnEnter.GetHashCode(); hashCode = (hashCode * 59) + this.Talk.GetHashCode(); + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); return hashCode; } } diff --git a/src/freeclimb/Model/AddToConferenceAllOf.cs b/src/freeclimb/Model/AddToConferenceAllOf.cs index 3ce33358..c9c96460 100644 --- a/src/freeclimb/Model/AddToConferenceAllOf.cs +++ b/src/freeclimb/Model/AddToConferenceAllOf.cs @@ -50,7 +50,8 @@ protected AddToConferenceAllOf() { } /// When the Participant enters the Conference, this URL will be invoked using an HTTP POST request with the standard request parameters.. /// Flag that indicates whether a Conference starts upon entry of this particular Participant. This is usually set to `true` for moderators and `false` for all other Participants.. /// If `true`, the Participant joins the Conference with talk privileges. This may be modified later via the REST API or `SetTalk` PerCL command. . - public AddToConferenceAllOf(bool allowCallControl = default(bool), string callControlSequence = default(string), string callControlUrl = default(string), string conferenceId = default(string), string leaveConferenceUrl = default(string), bool listen = default(bool), string notificationUrl = default(string), bool startConfOnEnter = default(bool), bool talk = default(bool)) + /// If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. . + public AddToConferenceAllOf(bool allowCallControl = default(bool), string callControlSequence = default(string), string callControlUrl = default(string), string conferenceId = default(string), string leaveConferenceUrl = default(string), bool listen = default(bool), string notificationUrl = default(string), bool startConfOnEnter = default(bool), bool talk = default(bool), bool dtmfPassThrough = default(bool)) { // to ensure "conferenceId" is required (not null) if (conferenceId == null) { @@ -65,6 +66,7 @@ protected AddToConferenceAllOf() { } this.NotificationUrl = notificationUrl; this.StartConfOnEnter = startConfOnEnter; this.Talk = talk; + this.DtmfPassThrough = dtmfPassThrough; } /// @@ -130,6 +132,13 @@ protected AddToConferenceAllOf() { } [DataMember(Name = "talk", EmitDefaultValue = true)] public bool Talk { get; set; } + /// + /// If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. + /// + /// If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool DtmfPassThrough { get; set; } + /// /// Returns the string presentation of the object /// @@ -147,6 +156,7 @@ public override string ToString() sb.Append(" NotificationUrl: ").Append(NotificationUrl).Append("\n"); sb.Append(" StartConfOnEnter: ").Append(StartConfOnEnter).Append("\n"); sb.Append(" Talk: ").Append(Talk).Append("\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -176,6 +186,7 @@ public virtual IDictionary ToKvp() props.Add("notificationUrl", NotificationUrl); props.Add("startConfOnEnter", StartConfOnEnter); props.Add("talk", Talk); + props.Add("dtmfPassThrough", DtmfPassThrough); return props; } @@ -241,6 +252,10 @@ public bool Equals(AddToConferenceAllOf input) ( this.Talk == input.Talk || this.Talk.Equals(input.Talk) + ) && + ( + this.DtmfPassThrough == input.DtmfPassThrough || + this.DtmfPassThrough.Equals(input.DtmfPassThrough) ); } @@ -277,6 +292,7 @@ public override int GetHashCode() } hashCode = (hashCode * 59) + this.StartConfOnEnter.GetHashCode(); hashCode = (hashCode * 59) + this.Talk.GetHashCode(); + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); return hashCode; } } diff --git a/src/freeclimb/Model/CallResult.cs b/src/freeclimb/Model/CallResult.cs index 936518ac..4ac90ef1 100644 --- a/src/freeclimb/Model/CallResult.cs +++ b/src/freeclimb/Model/CallResult.cs @@ -73,7 +73,8 @@ public partial class CallResult : IEquatable, IValidatableObject /// direction. /// answeredBy. /// The list of subresources for this Call. These include things like logs and recordings associated with the Call.. - public CallResult(string uri = default(string), string dateCreated = default(string), string dateUpdated = default(string), int revision = default(int), string callId = default(string), string parentCallId = default(string), string accountId = default(string), string from = default(string), string to = default(string), string phoneNumberId = default(string), CallStatus? callStatus = default(CallStatus?), string startTime = default(string), string connectTime = default(string), string endTime = default(string), int? duration = default(int?), int? connectDuration = default(int?), CallDirection? direction = default(CallDirection?), AnsweredBy? answeredBy = default(AnsweredBy?), Object subresourceUris = default(Object)) + /// ApplicationId associated with the Call.. + public CallResult(string uri = default(string), string dateCreated = default(string), string dateUpdated = default(string), int revision = default(int), string callId = default(string), string parentCallId = default(string), string accountId = default(string), string from = default(string), string to = default(string), string phoneNumberId = default(string), CallStatus? callStatus = default(CallStatus?), string startTime = default(string), string connectTime = default(string), string endTime = default(string), int? duration = default(int?), int? connectDuration = default(int?), CallDirection? direction = default(CallDirection?), AnsweredBy? answeredBy = default(AnsweredBy?), Object subresourceUris = default(Object), string applicationId = default(string)) { this.Uri = uri; this.DateCreated = dateCreated; @@ -94,6 +95,7 @@ public partial class CallResult : IEquatable, IValidatableObject this.Direction = direction; this.AnsweredBy = answeredBy; this.SubresourceUris = subresourceUris; + this.ApplicationId = applicationId; } /// @@ -208,6 +210,13 @@ public partial class CallResult : IEquatable, IValidatableObject [DataMember(Name = "subresourceUris", EmitDefaultValue = true)] public Object SubresourceUris { get; set; } + /// + /// ApplicationId associated with the Call. + /// + /// ApplicationId associated with the Call. + [DataMember(Name = "applicationId", EmitDefaultValue = true)] + public string ApplicationId { get; set; } + /// /// Returns the string presentation of the object /// @@ -235,6 +244,7 @@ public override string ToString() sb.Append(" Direction: ").Append(Direction).Append("\n"); sb.Append(" AnsweredBy: ").Append(AnsweredBy).Append("\n"); sb.Append(" SubresourceUris: ").Append(SubresourceUris).Append("\n"); + sb.Append(" ApplicationId: ").Append(ApplicationId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -274,6 +284,7 @@ public virtual IDictionary ToKvp() props.Add("direction", Direction); props.Add("answeredBy", AnsweredBy); props.Add("subresourceUris", SubresourceUris); + props.Add("applicationId", ApplicationId); return props; } @@ -389,6 +400,11 @@ public bool Equals(CallResult input) this.SubresourceUris == input.SubresourceUris || (this.SubresourceUris != null && this.SubresourceUris.Equals(input.SubresourceUris)) + ) && + ( + this.ApplicationId == input.ApplicationId || + (this.ApplicationId != null && + this.ApplicationId.Equals(input.ApplicationId)) ); } @@ -465,6 +481,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SubresourceUris.GetHashCode(); } + if (this.ApplicationId != null) + { + hashCode = (hashCode * 59) + this.ApplicationId.GetHashCode(); + } return hashCode; } } diff --git a/src/freeclimb/Model/CallResultAllOf.cs b/src/freeclimb/Model/CallResultAllOf.cs index 3056a994..a6e7e1c4 100644 --- a/src/freeclimb/Model/CallResultAllOf.cs +++ b/src/freeclimb/Model/CallResultAllOf.cs @@ -69,7 +69,8 @@ public partial class CallResultAllOf : IEquatable, IValidatable /// direction. /// answeredBy. /// The list of subresources for this Call. These include things like logs and recordings associated with the Call.. - public CallResultAllOf(string callId = default(string), string parentCallId = default(string), string accountId = default(string), string from = default(string), string to = default(string), string phoneNumberId = default(string), CallStatus? callStatus = default(CallStatus?), string startTime = default(string), string connectTime = default(string), string endTime = default(string), int? duration = default(int?), int? connectDuration = default(int?), CallDirection? direction = default(CallDirection?), AnsweredBy? answeredBy = default(AnsweredBy?), Object subresourceUris = default(Object)) + /// ApplicationId associated with the Call.. + public CallResultAllOf(string callId = default(string), string parentCallId = default(string), string accountId = default(string), string from = default(string), string to = default(string), string phoneNumberId = default(string), CallStatus? callStatus = default(CallStatus?), string startTime = default(string), string connectTime = default(string), string endTime = default(string), int? duration = default(int?), int? connectDuration = default(int?), CallDirection? direction = default(CallDirection?), AnsweredBy? answeredBy = default(AnsweredBy?), Object subresourceUris = default(Object), string applicationId = default(string)) { this.CallId = callId; this.ParentCallId = parentCallId; @@ -86,6 +87,7 @@ public partial class CallResultAllOf : IEquatable, IValidatable this.Direction = direction; this.AnsweredBy = answeredBy; this.SubresourceUris = subresourceUris; + this.ApplicationId = applicationId; } /// @@ -172,6 +174,13 @@ public partial class CallResultAllOf : IEquatable, IValidatable [DataMember(Name = "subresourceUris", EmitDefaultValue = true)] public Object SubresourceUris { get; set; } + /// + /// ApplicationId associated with the Call. + /// + /// ApplicationId associated with the Call. + [DataMember(Name = "applicationId", EmitDefaultValue = true)] + public string ApplicationId { get; set; } + /// /// Returns the string presentation of the object /// @@ -195,6 +204,7 @@ public override string ToString() sb.Append(" Direction: ").Append(Direction).Append("\n"); sb.Append(" AnsweredBy: ").Append(AnsweredBy).Append("\n"); sb.Append(" SubresourceUris: ").Append(SubresourceUris).Append("\n"); + sb.Append(" ApplicationId: ").Append(ApplicationId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -230,6 +240,7 @@ public virtual IDictionary ToKvp() props.Add("direction", Direction); props.Add("answeredBy", AnsweredBy); props.Add("subresourceUris", SubresourceUris); + props.Add("applicationId", ApplicationId); return props; } @@ -326,6 +337,11 @@ public bool Equals(CallResultAllOf input) this.SubresourceUris == input.SubresourceUris || (this.SubresourceUris != null && this.SubresourceUris.Equals(input.SubresourceUris)) + ) && + ( + this.ApplicationId == input.ApplicationId || + (this.ApplicationId != null && + this.ApplicationId.Equals(input.ApplicationId)) ); } @@ -389,6 +405,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SubresourceUris.GetHashCode(); } + if (this.ApplicationId != null) + { + hashCode = (hashCode * 59) + this.ApplicationId.GetHashCode(); + } return hashCode; } } diff --git a/src/freeclimb/Model/ConferenceParticipantResult.cs b/src/freeclimb/Model/ConferenceParticipantResult.cs index 565efa9f..293ca0c7 100644 --- a/src/freeclimb/Model/ConferenceParticipantResult.cs +++ b/src/freeclimb/Model/ConferenceParticipantResult.cs @@ -45,8 +45,9 @@ public partial class ConferenceParticipantResult : IEquatableID of the Call associated with this Participant.. /// True if this Participant has talk privileges in the Conference. False otherwise.. /// True if this Participant has listen privileges in the Conference. False otherwise.. + /// True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise.. /// True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise.. - public ConferenceParticipantResult(string uri = default(string), string dateCreated = default(string), string dateUpdated = default(string), int revision = default(int), string accountId = default(string), string conferenceId = default(string), string callId = default(string), bool? talk = default(bool?), bool? listen = default(bool?), bool? startConfOnEnter = default(bool?)) + public ConferenceParticipantResult(string uri = default(string), string dateCreated = default(string), string dateUpdated = default(string), int revision = default(int), string accountId = default(string), string conferenceId = default(string), string callId = default(string), bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?), bool? startConfOnEnter = default(bool?)) { this.Uri = uri; this.DateCreated = dateCreated; @@ -57,6 +58,7 @@ public partial class ConferenceParticipantResult : IEquatable + /// True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise. + /// + /// True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool? DtmfPassThrough { get; set; } + /// /// True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise. /// @@ -147,6 +156,7 @@ public override string ToString() sb.Append(" CallId: ").Append(CallId).Append("\n"); sb.Append(" Talk: ").Append(Talk).Append("\n"); sb.Append(" Listen: ").Append(Listen).Append("\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); sb.Append(" StartConfOnEnter: ").Append(StartConfOnEnter).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -177,6 +187,7 @@ public virtual IDictionary ToKvp() props.Add("callId", CallId); props.Add("talk", Talk); props.Add("listen", Listen); + props.Add("dtmfPassThrough", DtmfPassThrough); props.Add("startConfOnEnter", StartConfOnEnter); return props; } @@ -247,6 +258,11 @@ public bool Equals(ConferenceParticipantResult input) (this.Listen != null && this.Listen.Equals(input.Listen)) ) && + ( + this.DtmfPassThrough == input.DtmfPassThrough || + (this.DtmfPassThrough != null && + this.DtmfPassThrough.Equals(input.DtmfPassThrough)) + ) && ( this.StartConfOnEnter == input.StartConfOnEnter || (this.StartConfOnEnter != null && @@ -296,6 +312,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Listen.GetHashCode(); } + if (this.DtmfPassThrough != null) + { + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); + } if (this.StartConfOnEnter != null) { hashCode = (hashCode * 59) + this.StartConfOnEnter.GetHashCode(); diff --git a/src/freeclimb/Model/ConferenceParticipantResultAllOf.cs b/src/freeclimb/Model/ConferenceParticipantResultAllOf.cs index 7dbb3354..db76a18c 100644 --- a/src/freeclimb/Model/ConferenceParticipantResultAllOf.cs +++ b/src/freeclimb/Model/ConferenceParticipantResultAllOf.cs @@ -41,14 +41,16 @@ public partial class ConferenceParticipantResultAllOf : IEquatableID of the Call associated with this Participant.. /// True if this Participant has talk privileges in the Conference. False otherwise.. /// True if this Participant has listen privileges in the Conference. False otherwise.. + /// True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise.. /// True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise.. - public ConferenceParticipantResultAllOf(string accountId = default(string), string conferenceId = default(string), string callId = default(string), bool? talk = default(bool?), bool? listen = default(bool?), bool? startConfOnEnter = default(bool?)) + public ConferenceParticipantResultAllOf(string accountId = default(string), string conferenceId = default(string), string callId = default(string), bool? talk = default(bool?), bool? listen = default(bool?), bool? dtmfPassThrough = default(bool?), bool? startConfOnEnter = default(bool?)) { this.AccountId = accountId; this.ConferenceId = conferenceId; this.CallId = callId; this.Talk = talk; this.Listen = listen; + this.DtmfPassThrough = dtmfPassThrough; this.StartConfOnEnter = startConfOnEnter; } @@ -87,6 +89,13 @@ public partial class ConferenceParticipantResultAllOf : IEquatable + /// True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise. + /// + /// True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool? DtmfPassThrough { get; set; } + /// /// True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise. /// @@ -107,6 +116,7 @@ public override string ToString() sb.Append(" CallId: ").Append(CallId).Append("\n"); sb.Append(" Talk: ").Append(Talk).Append("\n"); sb.Append(" Listen: ").Append(Listen).Append("\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); sb.Append(" StartConfOnEnter: ").Append(StartConfOnEnter).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -133,6 +143,7 @@ public virtual IDictionary ToKvp() props.Add("callId", CallId); props.Add("talk", Talk); props.Add("listen", Listen); + props.Add("dtmfPassThrough", DtmfPassThrough); props.Add("startConfOnEnter", StartConfOnEnter); return props; } @@ -184,6 +195,11 @@ public bool Equals(ConferenceParticipantResultAllOf input) (this.Listen != null && this.Listen.Equals(input.Listen)) ) && + ( + this.DtmfPassThrough == input.DtmfPassThrough || + (this.DtmfPassThrough != null && + this.DtmfPassThrough.Equals(input.DtmfPassThrough)) + ) && ( this.StartConfOnEnter == input.StartConfOnEnter || (this.StartConfOnEnter != null && @@ -220,6 +236,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Listen.GetHashCode(); } + if (this.DtmfPassThrough != null) + { + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); + } if (this.StartConfOnEnter != null) { hashCode = (hashCode * 59) + this.StartConfOnEnter.GetHashCode(); diff --git a/src/freeclimb/Model/CreateConference.cs b/src/freeclimb/Model/CreateConference.cs index 2ba7ae71..08a81330 100644 --- a/src/freeclimb/Model/CreateConference.cs +++ b/src/freeclimb/Model/CreateConference.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Dequeue.cs b/src/freeclimb/Model/Dequeue.cs index 52fe861c..4f992b13 100644 --- a/src/freeclimb/Model/Dequeue.cs +++ b/src/freeclimb/Model/Dequeue.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Enqueue.cs b/src/freeclimb/Model/Enqueue.cs index fe9f1026..1b4a9a57 100644 --- a/src/freeclimb/Model/Enqueue.cs +++ b/src/freeclimb/Model/Enqueue.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/GetDigits.cs b/src/freeclimb/Model/GetDigits.cs index 731238d7..9d8f40d7 100644 --- a/src/freeclimb/Model/GetDigits.cs +++ b/src/freeclimb/Model/GetDigits.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/GetSpeech.cs b/src/freeclimb/Model/GetSpeech.cs index 2815549e..f86b4160 100644 --- a/src/freeclimb/Model/GetSpeech.cs +++ b/src/freeclimb/Model/GetSpeech.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Hangup.cs b/src/freeclimb/Model/Hangup.cs index 74d07ef0..1ed177f4 100644 --- a/src/freeclimb/Model/Hangup.cs +++ b/src/freeclimb/Model/Hangup.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/MessageRequest.cs b/src/freeclimb/Model/MessageRequest.cs index e192c2b0..b4cd383d 100644 --- a/src/freeclimb/Model/MessageRequest.cs +++ b/src/freeclimb/Model/MessageRequest.cs @@ -135,7 +135,7 @@ protected MessageRequest() { } /// an array of HTTP URLs which are to be used as attachments to the message. This will force the message into being an MMS message and must be done using a from number which is MMS capabile. /// /// an array of HTTP URLs which are to be used as attachments to the message. This will force the message into being an MMS message and must be done using a from number which is MMS capabile. - [DataMember(Name = "mediaUrls", EmitDefaultValue = false)] + [DataMember(Name = "mediaUrls", EmitDefaultValue = true)] public List MediaUrls { get; set; } /// diff --git a/src/freeclimb/Model/MessageRequestAllOf.cs b/src/freeclimb/Model/MessageRequestAllOf.cs index 7f757e6b..d5924c81 100644 --- a/src/freeclimb/Model/MessageRequestAllOf.cs +++ b/src/freeclimb/Model/MessageRequestAllOf.cs @@ -99,7 +99,7 @@ protected MessageRequestAllOf() { } /// an array of HTTP URLs which are to be used as attachments to the message. This will force the message into being an MMS message and must be done using a from number which is MMS capabile. /// /// an array of HTTP URLs which are to be used as attachments to the message. This will force the message into being an MMS message and must be done using a from number which is MMS capabile. - [DataMember(Name = "mediaUrls", EmitDefaultValue = false)] + [DataMember(Name = "mediaUrls", EmitDefaultValue = true)] public List MediaUrls { get; set; } /// diff --git a/src/freeclimb/Model/MessageResult.cs b/src/freeclimb/Model/MessageResult.cs index be77cb8c..d4d598be 100644 --- a/src/freeclimb/Model/MessageResult.cs +++ b/src/freeclimb/Model/MessageResult.cs @@ -180,7 +180,7 @@ public partial class MessageResult : IEquatable, IValidatableObje /// an array of HTTP URLs which were attached this this message /// /// an array of HTTP URLs which were attached this this message - [DataMember(Name = "mediaUrls", EmitDefaultValue = false)] + [DataMember(Name = "mediaUrls", EmitDefaultValue = true)] public List MediaUrls { get; set; } /// diff --git a/src/freeclimb/Model/MessageResultAllOf.cs b/src/freeclimb/Model/MessageResultAllOf.cs index 5b2769e7..a5a6ed62 100644 --- a/src/freeclimb/Model/MessageResultAllOf.cs +++ b/src/freeclimb/Model/MessageResultAllOf.cs @@ -144,7 +144,7 @@ public partial class MessageResultAllOf : IEquatable, IValid /// an array of HTTP URLs which were attached this this message /// /// an array of HTTP URLs which were attached this this message - [DataMember(Name = "mediaUrls", EmitDefaultValue = false)] + [DataMember(Name = "mediaUrls", EmitDefaultValue = true)] public List MediaUrls { get; set; } /// diff --git a/src/freeclimb/Model/OutDial.cs b/src/freeclimb/Model/OutDial.cs index 6a9d9275..83d85ebb 100644 --- a/src/freeclimb/Model/OutDial.cs +++ b/src/freeclimb/Model/OutDial.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Park.cs b/src/freeclimb/Model/Park.cs index 4ca1ff2c..5de69575 100644 --- a/src/freeclimb/Model/Park.cs +++ b/src/freeclimb/Model/Park.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Pause.cs b/src/freeclimb/Model/Pause.cs index 68d142a1..f4fcf83c 100644 --- a/src/freeclimb/Model/Pause.cs +++ b/src/freeclimb/Model/Pause.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/PerclCommand.cs b/src/freeclimb/Model/PerclCommand.cs index 2fe3d9df..1bf395b9 100644 --- a/src/freeclimb/Model/PerclCommand.cs +++ b/src/freeclimb/Model/PerclCommand.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Play.cs b/src/freeclimb/Model/Play.cs index dfae11f2..500e9327 100644 --- a/src/freeclimb/Model/Play.cs +++ b/src/freeclimb/Model/Play.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/PlayEarlyMedia.cs b/src/freeclimb/Model/PlayEarlyMedia.cs index 8f6544d2..7dbaf2a3 100644 --- a/src/freeclimb/Model/PlayEarlyMedia.cs +++ b/src/freeclimb/Model/PlayEarlyMedia.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/RecordUtterance.cs b/src/freeclimb/Model/RecordUtterance.cs index fa6d09dc..48dcf2d1 100644 --- a/src/freeclimb/Model/RecordUtterance.cs +++ b/src/freeclimb/Model/RecordUtterance.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Redirect.cs b/src/freeclimb/Model/Redirect.cs index b900408c..1ed4e4f0 100644 --- a/src/freeclimb/Model/Redirect.cs +++ b/src/freeclimb/Model/Redirect.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Reject.cs b/src/freeclimb/Model/Reject.cs index a596c7a3..716336cb 100644 --- a/src/freeclimb/Model/Reject.cs +++ b/src/freeclimb/Model/Reject.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/RemoveFromConference.cs b/src/freeclimb/Model/RemoveFromConference.cs index 523520fa..0a242733 100644 --- a/src/freeclimb/Model/RemoveFromConference.cs +++ b/src/freeclimb/Model/RemoveFromConference.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Say.cs b/src/freeclimb/Model/Say.cs index faf8436a..0ccb0a2f 100644 --- a/src/freeclimb/Model/Say.cs +++ b/src/freeclimb/Model/Say.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/SendDigits.cs b/src/freeclimb/Model/SendDigits.cs index 9e3c0890..91907243 100644 --- a/src/freeclimb/Model/SendDigits.cs +++ b/src/freeclimb/Model/SendDigits.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/SetDTMFPassThrough.cs b/src/freeclimb/Model/SetDTMFPassThrough.cs new file mode 100644 index 00000000..2e16d0aa --- /dev/null +++ b/src/freeclimb/Model/SetDTMFPassThrough.cs @@ -0,0 +1,190 @@ +/* + * FreeClimb API + * + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = freeclimb.Client.OpenAPIDateConverter; +using freeclimb.Enums; + +namespace freeclimb.Model +{ + /// + /// The `SetDTMFPassThrough` command enables or disables the dtmfPassThrough privilege for this Conference Participant. If 'true', DTMFs will be passed through from this Participant to all other Participants in the Conference + /// + [DataContract(Name = "SetDTMFPassThrough")] + [JsonConverter(typeof(JsonSubtypes), "Command")] + [JsonSubtypes.KnownSubType(typeof(AddToConference), "AddToConference")] + [JsonSubtypes.KnownSubType(typeof(CreateConference), "CreateConference")] + [JsonSubtypes.KnownSubType(typeof(Dequeue), "Dequeue")] + [JsonSubtypes.KnownSubType(typeof(Enqueue), "Enqueue")] + [JsonSubtypes.KnownSubType(typeof(GetDigits), "GetDigits")] + [JsonSubtypes.KnownSubType(typeof(GetSpeech), "GetSpeech")] + [JsonSubtypes.KnownSubType(typeof(Hangup), "Hangup")] + [JsonSubtypes.KnownSubType(typeof(OutDial), "OutDial")] + [JsonSubtypes.KnownSubType(typeof(Park), "Park")] + [JsonSubtypes.KnownSubType(typeof(Pause), "Pause")] + [JsonSubtypes.KnownSubType(typeof(Play), "Play")] + [JsonSubtypes.KnownSubType(typeof(PlayEarlyMedia), "PlayEarlyMedia")] + [JsonSubtypes.KnownSubType(typeof(RecordUtterance), "RecordUtterance")] + [JsonSubtypes.KnownSubType(typeof(Redirect), "Redirect")] + [JsonSubtypes.KnownSubType(typeof(Reject), "Reject")] + [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] + [JsonSubtypes.KnownSubType(typeof(Say), "Say")] + [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] + [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] + [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] + [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] + [JsonSubtypes.KnownSubType(typeof(StartRecordCall), "StartRecordCall")] + [JsonSubtypes.KnownSubType(typeof(TerminateConference), "TerminateConference")] + [JsonSubtypes.KnownSubType(typeof(TranscribeUtterance), "TranscribeUtterance")] + [JsonSubtypes.KnownSubType(typeof(Unpark), "Unpark")] + public partial class SetDTMFPassThrough : PerclCommand, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specifying `false` mutes the Participant's dtmf audio.. + /// Name of PerCL Command (this is automatically derived from mapping configuration and should not be manually supplied in any arguments) (default to "SetDTMFPassThrough"). + public SetDTMFPassThrough(bool dtmfPassThrough = default(bool), string command = "SetDTMFPassThrough") : base(command) + { + this.DtmfPassThrough = dtmfPassThrough; + } + + /// + /// Specifying `false` mutes the Participant's dtmf audio. + /// + /// Specifying `false` mutes the Participant's dtmf audio. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool DtmfPassThrough { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SetDTMFPassThrough {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + JsonSerializer jsonSerializer = JsonSerializer.Create(); + jsonSerializer.NullValueHandling = NullValueHandling.Ignore; + + StringBuilder strb = new StringBuilder(); + jsonSerializer.Serialize(new StringWriter(strb), ToKvp()); + + return strb.ToString(); + } + + /// + /// Retrieve the KVP Dictionary for the SetDTMFPassThrough instance. + /// + /// KVP Dictionary + public override IDictionary ToKvp() + { + IDictionary props = new Dictionary(); + props.Add("dtmfPassThrough", DtmfPassThrough); + IDictionary command = new Dictionary(); + command.Add("SetDTMFPassThrough",props); + return command; + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetDTMFPassThrough); + } + + /// + /// Returns true if SetDTMFPassThrough instances are equal + /// + /// Instance of SetDTMFPassThrough to be compared + /// Boolean + public bool Equals(SetDTMFPassThrough input) + { + if (input == null) + { + return false; + } + return base.Equals(input) && + ( + this.DtmfPassThrough == input.DtmfPassThrough || + this.DtmfPassThrough.Equals(input.DtmfPassThrough) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public override IEnumerable Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected override IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } + } + +} diff --git a/src/freeclimb/Model/SetDTMFPassThroughAllOf.cs b/src/freeclimb/Model/SetDTMFPassThroughAllOf.cs new file mode 100644 index 00000000..6fdd6d58 --- /dev/null +++ b/src/freeclimb/Model/SetDTMFPassThroughAllOf.cs @@ -0,0 +1,138 @@ +/* + * FreeClimb API + * + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = freeclimb.Client.OpenAPIDateConverter; +using freeclimb.Enums; + +namespace freeclimb.Model +{ + /// + /// SetDTMFPassThroughAllOf + /// + [DataContract(Name = "SetDTMFPassThrough_allOf")] + public partial class SetDTMFPassThroughAllOf : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specifying `false` mutes the Participant's dtmf audio.. + public SetDTMFPassThroughAllOf(bool dtmfPassThrough = default(bool)) + { + this.DtmfPassThrough = dtmfPassThrough; + } + + /// + /// Specifying `false` mutes the Participant's dtmf audio. + /// + /// Specifying `false` mutes the Participant's dtmf audio. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool DtmfPassThrough { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SetDTMFPassThroughAllOf {\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Retrieve the KVP Dictionary for the SetDTMFPassThroughAllOf instance. + /// + /// KVP Dictionary + public virtual IDictionary ToKvp() + { + IDictionary props = new Dictionary(); + props.Add("dtmfPassThrough", DtmfPassThrough); + return props; + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SetDTMFPassThroughAllOf); + } + + /// + /// Returns true if SetDTMFPassThroughAllOf instances are equal + /// + /// Instance of SetDTMFPassThroughAllOf to be compared + /// Boolean + public bool Equals(SetDTMFPassThroughAllOf input) + { + if (input == null) + { + return false; + } + return + ( + this.DtmfPassThrough == input.DtmfPassThrough || + this.DtmfPassThrough.Equals(input.DtmfPassThrough) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/freeclimb/Model/SetListen.cs b/src/freeclimb/Model/SetListen.cs index aa4e8d93..9e64b62a 100644 --- a/src/freeclimb/Model/SetListen.cs +++ b/src/freeclimb/Model/SetListen.cs @@ -29,7 +29,7 @@ namespace freeclimb.Model { /// - /// The `SetListen` command enables or disables the listen privilege for a Conference Participant provided both calls are in the same conference. The Participant can hear what the other participants are saying only if this privilege is enabled. + /// The `SetListen` command enables or disables the listen privilege for this Conference Participant. The Participant can hear what the other participants are saying only if this privilege is enabled. /// [DataContract(Name = "SetListen")] [JsonConverter(typeof(JsonSubtypes), "Command")] @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/SetTalk.cs b/src/freeclimb/Model/SetTalk.cs index bb3daf7d..2999b884 100644 --- a/src/freeclimb/Model/SetTalk.cs +++ b/src/freeclimb/Model/SetTalk.cs @@ -29,7 +29,7 @@ namespace freeclimb.Model { /// - /// The `SetTalk` command enables or disables the talk privilege for a Participant in a Conference provided both calls are in the same conference. If 'true', no audio from that Participant is shared with the other Participants of the Conference. + /// The `SetTalk` command enables or disables the talk privilege for this Conference Participant. If 'true', no audio from that Participant is shared with the other Participants of the Conference. /// [DataContract(Name = "SetTalk")] [JsonConverter(typeof(JsonSubtypes), "Command")] @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Sms.cs b/src/freeclimb/Model/Sms.cs index b5fa4f39..444d96da 100644 --- a/src/freeclimb/Model/Sms.cs +++ b/src/freeclimb/Model/Sms.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/StartRecordCall.cs b/src/freeclimb/Model/StartRecordCall.cs index 615d3171..30d1e9b0 100644 --- a/src/freeclimb/Model/StartRecordCall.cs +++ b/src/freeclimb/Model/StartRecordCall.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/TerminateConference.cs b/src/freeclimb/Model/TerminateConference.cs index 311ca48b..1846ff8b 100644 --- a/src/freeclimb/Model/TerminateConference.cs +++ b/src/freeclimb/Model/TerminateConference.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/TranscribeUtterance.cs b/src/freeclimb/Model/TranscribeUtterance.cs index 8bfa83d2..9a992efe 100644 --- a/src/freeclimb/Model/TranscribeUtterance.cs +++ b/src/freeclimb/Model/TranscribeUtterance.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/Unpark.cs b/src/freeclimb/Model/Unpark.cs index c67a7a8f..21501d78 100644 --- a/src/freeclimb/Model/Unpark.cs +++ b/src/freeclimb/Model/Unpark.cs @@ -51,6 +51,7 @@ namespace freeclimb.Model [JsonSubtypes.KnownSubType(typeof(RemoveFromConference), "RemoveFromConference")] [JsonSubtypes.KnownSubType(typeof(Say), "Say")] [JsonSubtypes.KnownSubType(typeof(SendDigits), "SendDigits")] + [JsonSubtypes.KnownSubType(typeof(SetDTMFPassThrough), "SetDTMFPassThrough")] [JsonSubtypes.KnownSubType(typeof(SetListen), "SetListen")] [JsonSubtypes.KnownSubType(typeof(SetTalk), "SetTalk")] [JsonSubtypes.KnownSubType(typeof(Sms), "Sms")] diff --git a/src/freeclimb/Model/UpdateConferenceParticipantRequest.cs b/src/freeclimb/Model/UpdateConferenceParticipantRequest.cs index b9ca37bb..99e5489c 100644 --- a/src/freeclimb/Model/UpdateConferenceParticipantRequest.cs +++ b/src/freeclimb/Model/UpdateConferenceParticipantRequest.cs @@ -38,10 +38,12 @@ public partial class UpdateConferenceParticipantRequest : IEquatable /// (Optional) Default is `true`. Setting to `false` mutes the Participant. FreeClimb returns an error and ignores any other value.. /// (Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value.. - public UpdateConferenceParticipantRequest(bool talk = default(bool), bool listen = default(bool)) + /// (Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value.. + public UpdateConferenceParticipantRequest(bool talk = default(bool), bool listen = default(bool), bool dtmfPassThrough = default(bool)) { this.Talk = talk; this.Listen = listen; + this.DtmfPassThrough = dtmfPassThrough; } /// @@ -58,6 +60,13 @@ public partial class UpdateConferenceParticipantRequest : IEquatable + /// (Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value. + /// + /// (Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value. + [DataMember(Name = "dtmfPassThrough", EmitDefaultValue = true)] + public bool DtmfPassThrough { get; set; } + /// /// Returns the string presentation of the object /// @@ -68,6 +77,7 @@ public override string ToString() sb.Append("class UpdateConferenceParticipantRequest {\n"); sb.Append(" Talk: ").Append(Talk).Append("\n"); sb.Append(" Listen: ").Append(Listen).Append("\n"); + sb.Append(" DtmfPassThrough: ").Append(DtmfPassThrough).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -90,6 +100,7 @@ public virtual IDictionary ToKvp() IDictionary props = new Dictionary(); props.Add("talk", Talk); props.Add("listen", Listen); + props.Add("dtmfPassThrough", DtmfPassThrough); return props; } @@ -122,6 +133,10 @@ public bool Equals(UpdateConferenceParticipantRequest input) ( this.Listen == input.Listen || this.Listen.Equals(input.Listen) + ) && + ( + this.DtmfPassThrough == input.DtmfPassThrough || + this.DtmfPassThrough.Equals(input.DtmfPassThrough) ); } @@ -136,6 +151,7 @@ public override int GetHashCode() int hashCode = 41; hashCode = (hashCode * 59) + this.Talk.GetHashCode(); hashCode = (hashCode * 59) + this.Listen.GetHashCode(); + hashCode = (hashCode * 59) + this.DtmfPassThrough.GetHashCode(); return hashCode; } } diff --git a/src/freeclimb/freeclimb.csproj b/src/freeclimb/freeclimb.csproj index dc906c1e..8f23fe22 100644 --- a/src/freeclimb/freeclimb.csproj +++ b/src/freeclimb/freeclimb.csproj @@ -12,7 +12,7 @@ A library generated from a OpenAPI doc No Copyright freeclimb - 4.9.0 + 4.10.0 bin\$(Configuration)\$(TargetFramework)\freeclimb.xml https://github.com/freeclimbapi/csharp-sdk.git git