From f04f189b8a781420e187b9ab25b98ad1815e45b1 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 13:31:26 +0200 Subject: [PATCH 01/11] feat(ci): add formatting check --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 08e34858..eef86121 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -73,6 +73,9 @@ jobs: - name: Install dependencies run: dotnet restore + - name: Check Formatting + run: dotnet format --verify-no-changes + - name: Build run: dotnet build -p:Version=${{ steps.gitversion.outputs.semVer }} --configuration Release --no-restore From 2a33d855c9f7d40aca68b5504056054bc0402c52 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 13:38:48 +0200 Subject: [PATCH 02/11] chore(.editorconfig): use utf-8 --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 8f7ff3a8..6006b22c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,7 @@ [*] end_of_line = crlf insert_final_newline = true -charset = utf-8-bom +charset = utf-8 trim_trailing_whitespace = false indent_style = space indent_size = 4 From 647e35a6ad21e5828f29640e52aee9c6dbce3521 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 13:39:58 +0200 Subject: [PATCH 03/11] refactor(examples): autoformat --- examples/Console/Program.cs | 2 +- examples/Console/RentAndConfigureNumbers.cs | 2 +- examples/Console/UseOnlyVoiceOrVerification.cs | 2 +- examples/Console/UseServicePlanIdForSms.cs | 2 +- examples/WebApi/Controllers/InboundSmsController.cs | 12 ++++++------ examples/WebApi/Controllers/Numbers.cs | 2 +- .../ReceiveConversationCallbackController.cs | 2 +- .../WebApi/Controllers/ReplyToInboundController.cs | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/Console/Program.cs b/examples/Console/Program.cs index a79ad1f2..1c92a896 100644 --- a/examples/Console/Program.cs +++ b/examples/Console/Program.cs @@ -1,4 +1,4 @@ -using DotNetEnv; +using DotNetEnv; using Sinch; using Sinch.Auth; diff --git a/examples/Console/RentAndConfigureNumbers.cs b/examples/Console/RentAndConfigureNumbers.cs index c7a410e6..7ead139f 100644 --- a/examples/Console/RentAndConfigureNumbers.cs +++ b/examples/Console/RentAndConfigureNumbers.cs @@ -1,4 +1,4 @@ -using System.Text.Json; +using System.Text.Json; using Sinch; using Sinch.Numbers; using Sinch.Numbers.Available.Rent; diff --git a/examples/Console/UseOnlyVoiceOrVerification.cs b/examples/Console/UseOnlyVoiceOrVerification.cs index ae080771..bed9f0dc 100644 --- a/examples/Console/UseOnlyVoiceOrVerification.cs +++ b/examples/Console/UseOnlyVoiceOrVerification.cs @@ -1,4 +1,4 @@ -using Sinch; +using Sinch; namespace Examples { diff --git a/examples/Console/UseServicePlanIdForSms.cs b/examples/Console/UseServicePlanIdForSms.cs index 0a7cbee5..a4ed1934 100644 --- a/examples/Console/UseServicePlanIdForSms.cs +++ b/examples/Console/UseServicePlanIdForSms.cs @@ -1,4 +1,4 @@ -using Sinch; +using Sinch; using Sinch.SMS; using Sinch.SMS.Batches.Send; diff --git a/examples/WebApi/Controllers/InboundSmsController.cs b/examples/WebApi/Controllers/InboundSmsController.cs index f54c9097..e4a28502 100644 --- a/examples/WebApi/Controllers/InboundSmsController.cs +++ b/examples/WebApi/Controllers/InboundSmsController.cs @@ -1,4 +1,4 @@ -using System.Text.Json; +using System.Text.Json; using Microsoft.AspNetCore.Mvc; using Sinch; using Sinch.SMS.Batches; @@ -38,14 +38,14 @@ public async Task Subscribe([FromBody] IncomingTextSms incomingSms) { case (false, "SUBSCRIBE"): await _sinchClient.Sms.Groups.Update(new UpdateGroupRequest - { - GroupId = group.Id, - Name = "group 1", - Add = new List() + { + GroupId = group.Id, + Name = "group 1", + Add = new List() { fromNumber, } - } + } ); autoReply = $"Congratulations! You are now subscribed to {group.Name}. Text STOP to leave this group."; break; diff --git a/examples/WebApi/Controllers/Numbers.cs b/examples/WebApi/Controllers/Numbers.cs index 70eb747d..931b7270 100644 --- a/examples/WebApi/Controllers/Numbers.cs +++ b/examples/WebApi/Controllers/Numbers.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Sinch; using Sinch.Numbers.Regions; diff --git a/examples/WebApi/Controllers/ReceiveConversationCallbackController.cs b/examples/WebApi/Controllers/ReceiveConversationCallbackController.cs index 8af81961..166eeec6 100644 --- a/examples/WebApi/Controllers/ReceiveConversationCallbackController.cs +++ b/examples/WebApi/Controllers/ReceiveConversationCallbackController.cs @@ -1,4 +1,4 @@ -using System.Text.Json; +using System.Text.Json; using System.Text.Json.Nodes; using Microsoft.AspNetCore.Mvc; using Sinch; diff --git a/examples/WebApi/Controllers/ReplyToInboundController.cs b/examples/WebApi/Controllers/ReplyToInboundController.cs index f838d83b..5074540d 100644 --- a/examples/WebApi/Controllers/ReplyToInboundController.cs +++ b/examples/WebApi/Controllers/ReplyToInboundController.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Sinch; using Sinch.SMS.Batches.Send; using Sinch.SMS.Hooks; From 61c5a7022dc73daf289e64be22aceee0fea27e8b Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 13:40:57 +0200 Subject: [PATCH 04/11] refactor: apply dotnet format --- src/Sinch/ApiError.cs | 2 +- src/Sinch/Auth/ApplicationSignedAuth.cs | 2 +- src/Sinch/Auth/AuthApiError.cs | 2 +- src/Sinch/Auth/AuthSchemes.cs | 2 +- src/Sinch/Auth/AuthStrategy.cs | 4 ++-- src/Sinch/Auth/BasicAuth.cs | 2 +- src/Sinch/Auth/BearerAuth.cs | 2 +- src/Sinch/Auth/ISinchAuth.cs | 2 +- src/Sinch/Auth/OAuth.cs | 2 +- src/Sinch/Auth/SinchAuthException.cs | 2 +- src/Sinch/Conversation/Apps/App.cs | 2 +- src/Sinch/Conversation/Apps/Apps.cs | 2 +- .../Apps/ConversationChannelCredential.cs | 2 +- .../Apps/ConversationMetadataReportView.cs | 2 +- .../Apps/Create/CreateAppRequest.cs | 2 +- .../Apps/Credentials/BasicAuthCredentials.cs | 2 +- .../Apps/Credentials/KakaoTalkCredentials.cs | 2 +- .../Apps/Credentials/LineCredentials.cs | 2 +- .../Apps/Credentials/MMSCredentials.cs | 2 +- .../Credentials/StaticBearerCredential.cs | 2 +- .../Apps/Credentials/StaticTokenCredential.cs | 2 +- .../Apps/Credentials/TelegramCredentials.cs | 2 +- .../Apps/Credentials/WeChatCredentials.cs | 2 +- .../Apps/DispatchRetentionPolicy.cs | 4 ++-- .../Apps/DispatchRetentionPolicyType.cs | 2 +- src/Sinch/Conversation/Apps/QueueStats.cs | 2 +- src/Sinch/Conversation/Apps/RateLimits.cs | 2 +- .../Conversation/Apps/RetentionPolicy.cs | 6 ++--- src/Sinch/Conversation/Apps/RetentionType.cs | 2 +- .../Conversation/Apps/SmartConversation.cs | 2 +- .../Apps/Update/UpdateAppRequest.cs | 2 +- .../Conversation/Capability/Capabilities.cs | 2 +- .../Capability/LookupCapabilityRequest.cs | 2 +- .../Capability/LookupCapabilityResponse.cs | 2 +- src/Sinch/Conversation/Common/Agent.cs | 2 +- src/Sinch/Conversation/Common/AgentType.cs | 2 +- .../Conversation/Common/ChannelIdentity.cs | 2 +- src/Sinch/Conversation/Common/ContactId.cs | 2 +- .../Conversation/Common/ProcessingMode.cs | 2 +- src/Sinch/Conversation/Contacts/Contact.cs | 2 +- src/Sinch/Conversation/Contacts/Contacts.cs | 12 +++++----- .../Contacts/Create/CreateContactRequest.cs | 2 +- .../GetChannelProfile/ChannelProfile.cs | 2 +- .../ChannelProfileConversationChannel.cs | 2 +- .../GetChannelProfileRequest.cs | 4 ++-- .../Contacts/List/ListContactsResponse.cs | 2 +- .../Contacts/List/ListContractsRequest.cs | 2 +- src/Sinch/Conversation/ConversationChannel.cs | 2 +- .../Conversation/ConversationLanguage.cs | 2 +- src/Sinch/Conversation/ConversationRegion.cs | 2 +- .../Conversations/Conversation.cs | 2 +- .../Conversations/Conversations.cs | 2 +- .../Create/CreateConversationRequest.cs | 2 +- .../InjectEvent/InjectEventRequest.cs | 4 ++-- .../InjectEvent/InjectEventResponse.cs | 2 +- .../InjectMessage/InjectMessageRequest.cs | 2 +- .../List/ListConversationsRequest.cs | 2 +- .../List/ListConversationsResponse.cs | 2 +- .../Conversations/MetadataUpdateStrategy.cs | 2 +- src/Sinch/Conversation/Events/AppEvent.cs | 2 +- .../Events/AppEvents/AgentJoinedEvent.cs | 2 +- .../Events/AppEvents/AgentLeftEvent.cs | 2 +- .../Events/AppEvents/CommentReplyEvent.cs | 2 +- src/Sinch/Conversation/Events/ContactEvent.cs | 2 +- .../Events/ContactEvents/CommentEvent.cs | 2 +- .../ContactEvents/ConversationDeletedEvent.cs | 4 ++-- .../Events/ContactMessageEvent.cs | 2 +- .../Conversation/Events/ConversationEvent.cs | 2 +- .../Events/EventTypes/ComposingEndEvent.cs | 2 +- .../Events/EventTypes/ComposingEvent.cs | 2 +- .../Events/EventTypes/GenericEvent.cs | 2 +- src/Sinch/Conversation/Events/Events.cs | 2 +- .../Conversation/Events/ListEventsRequest.cs | 2 +- .../Conversation/Events/ListEventsResponse.cs | 2 +- .../Events/Send/SendEventRequest.cs | 2 +- .../Events/Send/SendEventResponse.cs | 2 +- .../Conversation/Hooks/CallbackEventBase.cs | 2 +- .../Conversation/Hooks/CapabilityEvent.cs | 2 +- src/Sinch/Conversation/Hooks/ChannelEvent.cs | 4 ++-- .../Conversation/Hooks/ContactCreateEvent.cs | 2 +- .../Conversation/Hooks/ContactDeleteEvent.cs | 4 ++-- .../ContactIdentitiesDuplicationEvent.cs | 6 ++--- .../Conversation/Hooks/ContactMergeEvent.cs | 2 +- .../Conversation/Hooks/ContactUpdateEvent.cs | 4 ++-- .../Hooks/ConversationDeleteEvent.cs | 2 +- .../Hooks/ConversationStartEvent.cs | 2 +- .../Hooks/ConversationStopEvent.cs | 2 +- src/Sinch/Conversation/Hooks/DeliveryEvent.cs | 2 +- .../Conversation/Hooks/ICallbackEvent.cs | 2 +- src/Sinch/Conversation/Hooks/InboundEvent.cs | 2 +- .../Hooks/MessageDeliveryReceiptEvent.cs | 2 +- .../Conversation/Hooks/MessageInboundEvent.cs | 2 +- ...eInboundSmartConversationRedactionEvent.cs | 2 +- .../Conversation/Hooks/MessageSubmitEvent.cs | 2 +- .../Hooks/Models/AnalysisResult.cs | 12 +++++----- .../Hooks/Models/CapabilityNotification.cs | 2 +- .../Hooks/Models/CapabilityStatus.cs | 4 ++-- .../Conversation/Hooks/Models/CommentEvent.cs | 2 +- .../Conversation/Hooks/Models/ContactEvent.cs | 6 ++--- .../Hooks/Models/ContactMergeNotification.cs | 2 +- .../Hooks/Models/ContactMessageEvent.cs | 2 +- .../Hooks/Models/ContactNotification.cs | 4 ++-- .../Hooks/Models/ConversationNotification.cs | 4 ++-- .../Hooks/Models/DeliveryStatus.cs | 2 +- .../Models/DocumentFieldClassification.cs | 4 ++-- .../Models/DocumentImageClassification.cs | 6 ++--- .../Hooks/Models/DuplicatedIdentitiesEvent.cs | 4 ++-- ...dentitiesEventDuplicatedIdentitiesInner.cs | 4 ++-- .../Conversation/Hooks/Models/Evaluation.cs | 2 +- .../EventDeliveryAllOfEventDeliveryReport.cs | 2 +- .../Hooks/Models/EventInboundAllOfEvent.cs | 2 +- .../Hooks/Models/EventNotification.cs | 2 +- .../Conversation/Hooks/Models/IntentResult.cs | 6 ++--- .../MachineLearningImageRecognitionResult.cs | 10 ++++---- .../Hooks/Models/MachineLearningNLUResult.cs | 10 ++++---- .../Hooks/Models/MachineLearningPIIResult.cs | 6 ++--- .../Models/MachineLearningSentimentResult.cs | 8 +++---- .../Hooks/Models/MessageDeliveryReport.cs | 2 +- .../Hooks/Models/MessageInboundEventItem.cs | 2 +- .../Hooks/Models/MessageSubmitNotification.cs | 2 +- .../Hooks/Models/OffensiveAnalysis.cs | 8 +++---- .../OptInEventAllOfOptInNotification.cs | 12 +++++----- .../Models/OptInNotificationErrorDetails.cs | 4 ++-- .../Conversation/Hooks/Models/OptInStatus.cs | 2 +- .../Hooks/Models/OptOutNotification.cs | 8 +++---- .../Models/OptOutNotificationErrorDetails.cs | 2 +- .../Conversation/Hooks/Models/OptOutStatus.cs | 2 +- .../Models/OpticalCharacterRecognition.cs | 4 ++-- .../Models/OpticalCharacterRecognitionData.cs | 4 ++-- .../Hooks/Models/PaymentStatus.cs | 2 +- .../Hooks/Models/PaymentStatusUpdateEvent.cs | 2 +- .../Hooks/Models/PaymentTransactionStatus.cs | 4 ++-- .../Conversation/Hooks/Models/Sentiment.cs | 2 +- .../Hooks/Models/SentimentResult.cs | 2 +- .../Models/SmartConversationNotification.cs | 2 +- .../Hooks/Models/UnsupportedCallback.cs | 2 +- src/Sinch/Conversation/Hooks/OptInEvent.cs | 6 ++--- src/Sinch/Conversation/Hooks/OptOutEvent.cs | 2 +- .../Hooks/SmartConversationsEvent.cs | 4 ++-- .../Hooks/UnsupportedCallbackEvent.cs | 2 +- src/Sinch/Conversation/MessageSource.cs | 2 +- .../Messages/List/ListMessagesRequest.cs | 2 +- .../Messages/List/ListMessagesResponse.cs | 4 ++-- .../Messages/Message/AppMessage.cs | 4 ++-- .../Messages/Message/CardHeight.cs | 2 +- .../Messages/Message/CardMessage.cs | 4 ++-- .../Messages/Message/CarouselMessage.cs | 2 +- .../Conversation/Messages/Message/Choice.cs | 2 +- .../Messages/Message/ChoiceMessage.cs | 4 ++-- .../Messages/Message/ChoiceResponseMessage.cs | 2 +- .../Messages/Message/ContactInfoMessage.cs | 2 +- .../Messages/Message/ContactMessage.cs | 2 +- .../Messages/Message/ConversationDirection.cs | 2 +- .../Messages/Message/ConversationMessage.cs | 2 +- .../Messages/Message/FallbackMessage.cs | 2 +- .../Messages/Message/ListItemChoice.cs | 2 +- .../Messages/Message/ListItemProduct.cs | 2 +- .../Messages/Message/ListMessage.cs | 4 ++-- .../Messages/Message/LocationMessage.cs | 6 ++--- .../Messages/Message/MediaMessage.cs | 2 +- .../Conversation/Messages/Message/ReplyTo.cs | 2 +- .../Messages/Message/TemplateMessage.cs | 4 ++-- .../Messages/Message/TextMessage.cs | 4 ++-- .../Conversation/Messages/MessageQueue.cs | 2 +- src/Sinch/Conversation/Messages/Messages.cs | 4 ++-- .../Messages/Send/SendMessageRequest.cs | 2 +- .../Messages/Send/SendMessageResponse.cs | 6 ++--- src/Sinch/Conversation/ProcessingStrategy.cs | 4 ++-- .../Conversation/SinchConversationClient.cs | 2 +- .../TemplatesV2/ChannelTemplateOverride.cs | 6 ++--- .../TemplatesV2/CreateTemplateRequest.cs | 2 +- .../TemplatesV2/OverrideTemplateReference.cs | 6 ++--- .../Conversation/TemplatesV2/Template.cs | 2 +- .../TemplateReferenceParameterMappings.cs | 2 +- .../TemplatesV2/TemplateTranslation.cs | 2 +- .../Conversation/TemplatesV2/TemplatesV2.cs | 2 +- .../TemplatesV2/TypeTemplateVariable.cs | 6 ++--- .../TemplatesV2/UpdateTemplateRequest.cs | 2 +- .../Transcoding/TranscodeRequest.cs | 6 ++--- .../Transcoding/TranscodeResponse.cs | 2 +- .../Conversation/Transcoding/Transcoding.cs | 2 +- .../Webhooks/ClientCredentials.cs | 2 +- src/Sinch/Conversation/Webhooks/Webhook.cs | 2 +- .../Webhooks/WebhookTargetType.cs | 2 +- .../Conversation/Webhooks/WebhookTrigger.cs | 2 +- src/Sinch/Conversation/Webhooks/Webhooks.cs | 2 +- src/Sinch/Core/EnumRecord.cs | 2 +- src/Sinch/Core/Extensions.cs | 2 +- src/Sinch/Core/Http.cs | 2 +- src/Sinch/Core/JsonExtensions.cs | 2 +- src/Sinch/Core/JsonInterfaceConverter.cs | 2 +- src/Sinch/Core/PropertyMaskQuery.cs | 2 +- src/Sinch/Core/SnakeCaseNamingPolicy.cs | 2 +- src/Sinch/Core/StringUtils.cs | 2 +- src/Sinch/Core/Utils.cs | 2 +- src/Sinch/Logger/LoggerAdapter.cs | 4 ++-- src/Sinch/Logger/LoggerFactory.cs | 2 +- src/Sinch/Numbers/Active.cs | 2 +- src/Sinch/Numbers/Active/ActiveNumber.cs | 2 +- .../Active/List/ListActiveNumbersRequest.cs | 2 +- .../Active/List/ListActiveNumbersResponse.cs | 2 +- src/Sinch/Numbers/Active/OrderBy.cs | 2 +- .../Update/UpdateActiveNumberRequest.cs | 2 +- src/Sinch/Numbers/Available.cs | 2 +- .../Numbers/Available/AvailableNumber.cs | 2 +- .../List/ListAvailableNumbersRequest.cs | 2 +- .../List/ListAvailableNumbersResponse.cs | 2 +- .../Available/Rent/RentActiveNumberRequest.cs | 4 ++-- .../Available/RentAny/RentAnyNumberRequest.cs | 4 ++-- src/Sinch/Numbers/Hooks/Event.cs | 14 +++++------ src/Sinch/Numbers/Hooks/EventStatus.cs | 2 +- src/Sinch/Numbers/Hooks/EventType.cs | 2 +- src/Sinch/Numbers/Hooks/FailureCode.cs | 2 +- src/Sinch/Numbers/Hooks/ResourceType.cs | 2 +- src/Sinch/Numbers/Money.cs | 2 +- src/Sinch/Numbers/NumberPattern.cs | 2 +- src/Sinch/Numbers/Numbers.cs | 2 +- src/Sinch/Numbers/Product.cs | 2 +- src/Sinch/Numbers/ProvisioningStatus.cs | 2 +- src/Sinch/Numbers/Regions.cs | 2 +- .../Numbers/Regions/ListRegionsResponse.cs | 2 +- src/Sinch/Numbers/Regions/Region.cs | 2 +- src/Sinch/Numbers/ScheduledProvisioning.cs | 2 +- .../Numbers/ScheduledVoiceProvisioning.cs | 6 ++--- src/Sinch/Numbers/SmsConfiguration.cs | 2 +- src/Sinch/Numbers/Types.cs | 2 +- src/Sinch/Numbers/VoiceConfiguration.cs | 2 +- src/Sinch/SMS/Batches/Batch.cs | 2 +- src/Sinch/SMS/Batches/Batches.cs | 2 +- src/Sinch/SMS/Batches/DryRun/DryRunRequest.cs | 4 ++-- .../SMS/Batches/DryRun/DryRunResponse.cs | 6 ++--- .../SMS/Batches/List/ListBatchesRequest.cs | 8 +++---- .../SMS/Batches/List/ListBatchesResponse.cs | 2 +- src/Sinch/SMS/Batches/Send/BatchBase.cs | 2 +- .../Batches/Send/SendBinaryBatchRequest.cs | 2 +- .../SMS/Batches/Send/SendMediaBatchRequest.cs | 8 +++---- .../SMS/Batches/Send/SendTextBatchRequest.cs | 2 +- .../Batches/Update/UpdateBatchBaseRequest.cs | 2 +- .../Update/UpdateBinaryBatchRequest.cs | 2 +- .../Batches/Update/UpdateMediaBatchRequest.cs | 8 +++---- .../Batches/Update/UpdateTextBatchRequest.cs | 6 ++--- src/Sinch/SMS/DeliveryReport.cs | 2 +- .../SMS/DeliveryReports/DeliveryReport.cs | 2 +- .../DeliveryReports/DeliveryReportStatus.cs | 2 +- .../DeliveryReportStatusVerbose.cs | 2 +- .../SMS/DeliveryReports/DeliveryReportType.cs | 2 +- .../SMS/DeliveryReports/DeliveryReports.cs | 2 +- .../Get/GetDeliveryReportRequest.cs | 4 ++-- .../Get/GetDeliveryReportResponse.cs | 6 ++--- .../List/ListDeliveryReportsRequest.cs | 2 +- .../List/ListDeliveryReportsResponse.cs | 2 +- src/Sinch/SMS/Groups/AutoUpdateEdit.cs | 2 +- src/Sinch/SMS/Groups/Create/Request.c.cs | 2 +- src/Sinch/SMS/Groups/Group.cs | 2 +- src/Sinch/SMS/Groups/Groups.cs | 2 +- .../SMS/Groups/List/ListGroupsResponse.cs | 2 +- src/Sinch/SMS/Groups/List/Request.c.cs | 4 ++-- .../SMS/Groups/Replace/ReplaceGroupRequest.cs | 4 ++-- .../SMS/Groups/Update/UpdateGroupRequest.cs | 2 +- src/Sinch/SMS/Hooks/DeliveryReport.cs | 6 ++--- src/Sinch/SMS/Hooks/IIncomingSms.cs | 2 +- src/Sinch/SMS/Hooks/IncomingBinarySms.cs | 2 +- src/Sinch/SMS/Hooks/IncomingTextSms.cs | 2 +- .../SMS/Hooks/RecipientDeliveryReport.cs | 10 ++++---- src/Sinch/SMS/Inbounds/Inbound.cs | 2 +- src/Sinch/SMS/Inbounds/Inbounds.cs | 2 +- .../SMS/Inbounds/List/ListInboundsRequest.cs | 2 +- .../SMS/Inbounds/List/ListInboundsResponse.cs | 2 +- src/Sinch/SMS/Inbounds/SmsType.cs | 2 +- src/Sinch/SMS/SmsClient.cs | 4 ++-- src/Sinch/SMS/SmsHostingRegion.cs | 2 +- .../SMS/SmsServicePlanIdHostingRegion.cs | 8 +++---- src/Sinch/SMS/SmsType.cs | 2 +- src/Sinch/SinchApiException.cs | 2 +- src/Sinch/SinchClient.cs | 2 +- src/Sinch/SinchOptions.cs | 2 +- src/Sinch/Verification/Common/Identity.cs | 2 +- src/Sinch/Verification/Common/PriceDetail.cs | 2 +- src/Sinch/Verification/Common/Reason.cs | 2 +- src/Sinch/Verification/Common/Source.cs | 2 +- .../Verification/Common/VerificationMethod.cs | 4 ++-- .../Verification/Common/VerificationStatus.cs | 2 +- src/Sinch/Verification/Hooks/Action.cs | 2 +- .../Hooks/CalloutRequestEventResponse.cs | 4 ++-- .../Hooks/FlashCallRequestEventResponse.cs | 2 +- .../Hooks/RequestEventResponseBase.cs | 2 +- .../Hooks/SmsRequestEventResponse.cs | 2 +- .../Hooks/VerificationRequestEvent.cs | 2 +- .../Hooks/VerificationResultEvent.cs | 6 ++--- .../ReportCalloutVerificationRequest.cs | 6 ++--- .../ReportFlashCallVerificationRequest.cs | 6 ++--- .../Request/ReportSmsVerificationRequest.cs | 6 ++--- .../Report/Request/VerifyReportRequest.cs | 2 +- .../Verification/Report/Response/PriceBase.cs | 2 +- .../ReportCalloutVerificationResponse.cs | 2 +- .../ReportFlashCallVerificationResponse.cs | 2 +- .../Response/ReportSmsVerificationResponse.cs | 2 +- .../VerificationReportResponseBase.cs | 2 +- src/Sinch/Verification/SinchVerification.cs | 2 +- .../Verification/SinchVerificationClient.cs | 2 +- .../Verification/SinchVerificationStatus.cs | 2 +- .../StartCalloutVerificationRequest.cs | 2 +- .../Request/StartDataVerificationRequest.cs | 2 +- .../StartFlashCallVerificationRequest.cs | 4 ++-- .../Request/StartSmsVerificationRequest.cs | 2 +- .../Start/Request/StartVerificationRequest.cs | 10 ++++---- .../Request/StartVerificationRequestBase.cs | 2 +- .../Verification/Start/Response/Links.cs | 6 ++--- .../StartCalloutVerificationResponse.cs | 4 ++-- .../Response/StartDataVerificationResponse.cs | 2 +- .../StartFlashCallVerificationResponse.cs | 12 +++++----- .../Response/StartSmsVerificationResponse.cs | 6 ++--- .../Response/VerificationStartResponseBase.cs | 2 +- src/Sinch/Voice/Applications/Applications.cs | 8 +++---- src/Sinch/Voice/Applications/CallbackUrls.cs | 2 +- .../GetNumbers/GetNumbersResponse.cs | 2 +- .../Applications/QueryNumber/NumberItem.cs | 2 +- .../Applications/QueryNumber/NumberType.cs | 2 +- .../QueryNumber/QueryNumberResponse.cs | 2 +- .../UnassignNumbers/UnassignNumberRequest.cs | 2 +- .../UpdateCallbackUrlsRequest.cs | 2 +- .../UpdateNumbers/AssignNumbersRequest.cs | 2 +- src/Sinch/Voice/CallingRegion.cs | 2 +- src/Sinch/Voice/Callouts/Callout.cs | 24 +++++++++---------- .../Voice/Callouts/Callout/CalloutType.cs | 2 +- .../Callout/ConferenceCalloutRequest.cs | 4 ++-- .../Callouts/Callout/CustomCalloutRequest.cs | 8 +++---- src/Sinch/Voice/Calls/Actions/CallHeader.cs | 2 +- src/Sinch/Voice/Calls/Actions/ConnectConf.cs | 2 +- src/Sinch/Voice/Calls/Actions/ConnectMxp.cs | 2 +- src/Sinch/Voice/Calls/Actions/ConnectPstn.cs | 6 ++--- src/Sinch/Voice/Calls/Actions/ConnectSip.cs | 2 +- src/Sinch/Voice/Calls/Actions/Continue.cs | 2 +- src/Sinch/Voice/Calls/Actions/Hangup.cs | 2 +- src/Sinch/Voice/Calls/Actions/IAction.cs | 2 +- src/Sinch/Voice/Calls/Actions/Park.cs | 2 +- src/Sinch/Voice/Calls/Actions/RunMenu.cs | 2 +- src/Sinch/Voice/Calls/Call.cs | 2 +- src/Sinch/Voice/Calls/CallLeg.cs | 2 +- src/Sinch/Voice/Calls/Calls.cs | 10 ++++---- src/Sinch/Voice/Calls/Instructions/Answer.cs | 4 ++-- .../Voice/Calls/Instructions/IInstruction.cs | 2 +- .../Voice/Calls/Instructions/PlayFiles.cs | 2 +- src/Sinch/Voice/Calls/Instructions/Say.cs | 4 ++-- .../Voice/Calls/Instructions/SendDtmf.cs | 2 +- .../Voice/Calls/Instructions/SetCookie.cs | 2 +- .../Calls/Instructions/StartRecording.cs | 2 +- .../Voice/Calls/Instructions/StopRecording.cs | 2 +- .../Calls/Manage/ManageWithCallLegRequest.cs | 6 ++--- .../Voice/Calls/Update/UpdateCallRequest.cs | 4 ++-- src/Sinch/Voice/ConferenceDtmfOptions.cs | 2 +- src/Sinch/Voice/Conferences/Conferences.cs | 2 +- .../Conferences/Get/GetConferenceResponse.cs | 14 +++++------ .../ManageParticipantRequest.cs | 2 +- src/Sinch/Voice/Hooks/AnsweredCallEvent.cs | 2 +- src/Sinch/Voice/Hooks/CallEventResponse.cs | 2 +- .../Voice/Hooks/DisconnectedCallEvent.cs | 2 +- src/Sinch/Voice/Hooks/IncomingCallEvent.cs | 2 +- src/Sinch/Voice/Hooks/NotificationEvent.cs | 2 +- src/Sinch/Voice/Hooks/PromtInputEvent.cs | 4 ++-- src/Sinch/Voice/Hooks/To.cs | 2 +- src/Sinch/Voice/Rate.cs | 2 +- tests/Sinch.Tests/AuthTests.cs | 2 +- tests/Sinch.Tests/Conversation/AppsTests.cs | 2 +- .../Sinch.Tests/Conversation/ContactsTests.cs | 2 +- .../Conversation/ConversationTestBase.cs | 2 +- .../Conversation/ConversationsTests.cs | 4 ++-- .../Sinch.Tests/Conversation/MessagesTests.cs | 6 ++--- .../Conversation/SendMessageTests.cs | 4 ++-- .../Sinch.Tests/Conversation/WebhooksTests.cs | 2 +- tests/Sinch.Tests/Core/HttpTests.cs | 2 +- tests/Sinch.Tests/Extensions.cs | 2 +- tests/Sinch.Tests/HeaderExactMatcher.cs | 2 +- tests/Sinch.Tests/Helpers.cs | 2 +- tests/Sinch.Tests/JsonMatcher.cs | 2 +- .../Sinch.Tests/Numbers/ActiveNumberTests.cs | 4 ++-- .../Numbers/AvailableNumbersTests.cs | 2 +- tests/Sinch.Tests/Numbers/AvailableRegions.cs | 2 +- tests/Sinch.Tests/Numbers/HooksTests.cs | 4 ++-- tests/Sinch.Tests/Numbers/NumberTestBase.cs | 2 +- tests/Sinch.Tests/Sms/BatchesTests.cs | 2 +- tests/Sinch.Tests/Sms/DeliveryReportsTests.cs | 8 +++---- tests/Sinch.Tests/Sms/GroupTests.cs | 2 +- tests/Sinch.Tests/Sms/HooksTests.cs | 2 +- tests/Sinch.Tests/Sms/InboundsTests.cs | 6 ++--- tests/Sinch.Tests/Sms/SmsClientTests.cs | 2 +- tests/Sinch.Tests/Sms/SmsTestBase.cs | 2 +- tests/Sinch.Tests/TestBase.cs | 4 ++-- tests/Sinch.Tests/TestData.cs | 2 +- tests/Sinch.Tests/UtilsTests.cs | 2 +- .../Verification/VerificationHooksTests.cs | 2 +- .../Verification/VerificationTestBase.cs | 2 +- .../Verification/VerificationTests.cs | 2 +- tests/Sinch.Tests/Voice/VoiceClientTests.cs | 4 ++-- tests/Sinch.Tests/e2e/Auth/AuthTests.cs | 2 +- .../e2e/Conversation/CapabilitiesTests.cs | 2 +- .../e2e/Conversation/ContactsTests.cs | 2 +- .../e2e/Conversation/ConversationsTests.cs | 2 +- .../e2e/Conversation/EventsTests.cs | 4 ++-- .../e2e/Conversation/TemplatesTests.cs | 2 +- .../e2e/Conversation/Transcoding.cs | 2 +- .../e2e/Conversation/WebhooksTests.cs | 4 ++-- tests/Sinch.Tests/e2e/NumbersTests.cs | 2 +- .../e2e/Sms/DeliveryReportsTests.cs | 4 ++-- tests/Sinch.Tests/e2e/Sms/GroupTests.cs | 2 +- tests/Sinch.Tests/e2e/Sms/InboundsTests.cs | 2 +- tests/Sinch.Tests/e2e/Sms/SmsTests.cs | 2 +- tests/Sinch.Tests/e2e/TestBase.cs | 2 +- .../Verification/ReportVerificationTests.cs | 4 ++-- .../Verification/VerificationStartTests.cs | 2 +- .../Verification/VerificationStatusTests.cs | 2 +- .../e2e/Verification/VerificationTestBase.cs | 2 +- .../e2e/Voice/ApplicationsTests.cs | 2 +- tests/Sinch.Tests/e2e/Voice/CalloutTests.cs | 2 +- tests/Sinch.Tests/e2e/Voice/CallsTests.cs | 2 +- .../Sinch.Tests/e2e/Voice/ConferencesTests.cs | 4 ++-- tests/Sinch.Tests/e2e/Voice/VoiceTestBase.cs | 2 +- 417 files changed, 622 insertions(+), 622 deletions(-) diff --git a/src/Sinch/ApiError.cs b/src/Sinch/ApiError.cs index 172f5f24..122e0600 100644 --- a/src/Sinch/ApiError.cs +++ b/src/Sinch/ApiError.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Nodes; namespace Sinch diff --git a/src/Sinch/Auth/ApplicationSignedAuth.cs b/src/Sinch/Auth/ApplicationSignedAuth.cs index 7c9a7e1b..87b172b2 100644 --- a/src/Sinch/Auth/ApplicationSignedAuth.cs +++ b/src/Sinch/Auth/ApplicationSignedAuth.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; diff --git a/src/Sinch/Auth/AuthApiError.cs b/src/Sinch/Auth/AuthApiError.cs index 4c5ef35d..f72c6c9d 100644 --- a/src/Sinch/Auth/AuthApiError.cs +++ b/src/Sinch/Auth/AuthApiError.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Auth { diff --git a/src/Sinch/Auth/AuthSchemes.cs b/src/Sinch/Auth/AuthSchemes.cs index 3c54f284..b9cdd8b5 100644 --- a/src/Sinch/Auth/AuthSchemes.cs +++ b/src/Sinch/Auth/AuthSchemes.cs @@ -1,4 +1,4 @@ -namespace Sinch.Auth +namespace Sinch.Auth { internal static class AuthSchemes { diff --git a/src/Sinch/Auth/AuthStrategy.cs b/src/Sinch/Auth/AuthStrategy.cs index 3fa160e7..2abe8e1d 100644 --- a/src/Sinch/Auth/AuthStrategy.cs +++ b/src/Sinch/Auth/AuthStrategy.cs @@ -1,4 +1,4 @@ -namespace Sinch.Auth +namespace Sinch.Auth { public enum AuthStrategy { @@ -6,7 +6,7 @@ public enum AuthStrategy /// Utilizes only AppId and AppSecret /// Basic, - + /// /// Utilizes Request Signing /// diff --git a/src/Sinch/Auth/BasicAuth.cs b/src/Sinch/Auth/BasicAuth.cs index 89dfbae2..6e696df1 100644 --- a/src/Sinch/Auth/BasicAuth.cs +++ b/src/Sinch/Auth/BasicAuth.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Threading.Tasks; diff --git a/src/Sinch/Auth/BearerAuth.cs b/src/Sinch/Auth/BearerAuth.cs index b5685aad..6a84579f 100644 --- a/src/Sinch/Auth/BearerAuth.cs +++ b/src/Sinch/Auth/BearerAuth.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Threading.Tasks; namespace Sinch.Auth diff --git a/src/Sinch/Auth/ISinchAuth.cs b/src/Sinch/Auth/ISinchAuth.cs index 917ec4f8..919796fd 100644 --- a/src/Sinch/Auth/ISinchAuth.cs +++ b/src/Sinch/Auth/ISinchAuth.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; namespace Sinch.Auth { diff --git a/src/Sinch/Auth/OAuth.cs b/src/Sinch/Auth/OAuth.cs index c866a1c6..4e619c65 100644 --- a/src/Sinch/Auth/OAuth.cs +++ b/src/Sinch/Auth/OAuth.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; diff --git a/src/Sinch/Auth/SinchAuthException.cs b/src/Sinch/Auth/SinchAuthException.cs index 2418f347..cd0d5d11 100644 --- a/src/Sinch/Auth/SinchAuthException.cs +++ b/src/Sinch/Auth/SinchAuthException.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net; using System.Net.Http; diff --git a/src/Sinch/Conversation/Apps/App.cs b/src/Sinch/Conversation/Apps/App.cs index f01654b7..1cbeec20 100644 --- a/src/Sinch/Conversation/Apps/App.cs +++ b/src/Sinch/Conversation/Apps/App.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Apps/Apps.cs b/src/Sinch/Conversation/Apps/Apps.cs index 653eb0aa..544f04a8 100644 --- a/src/Sinch/Conversation/Apps/Apps.cs +++ b/src/Sinch/Conversation/Apps/Apps.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net; diff --git a/src/Sinch/Conversation/Apps/ConversationChannelCredential.cs b/src/Sinch/Conversation/Apps/ConversationChannelCredential.cs index b8c38fc4..82f727a5 100644 --- a/src/Sinch/Conversation/Apps/ConversationChannelCredential.cs +++ b/src/Sinch/Conversation/Apps/ConversationChannelCredential.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using Sinch.Conversation.Apps.Credentials; using Sinch.Conversation.Messages; diff --git a/src/Sinch/Conversation/Apps/ConversationMetadataReportView.cs b/src/Sinch/Conversation/Apps/ConversationMetadataReportView.cs index 16d4278d..4f59ec33 100644 --- a/src/Sinch/Conversation/Apps/ConversationMetadataReportView.cs +++ b/src/Sinch/Conversation/Apps/ConversationMetadataReportView.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Apps diff --git a/src/Sinch/Conversation/Apps/Create/CreateAppRequest.cs b/src/Sinch/Conversation/Apps/Create/CreateAppRequest.cs index fc62ba4f..3d096531 100644 --- a/src/Sinch/Conversation/Apps/Create/CreateAppRequest.cs +++ b/src/Sinch/Conversation/Apps/Create/CreateAppRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Apps/Credentials/BasicAuthCredentials.cs b/src/Sinch/Conversation/Apps/Credentials/BasicAuthCredentials.cs index 6bc93b91..caf1fd59 100644 --- a/src/Sinch/Conversation/Apps/Credentials/BasicAuthCredentials.cs +++ b/src/Sinch/Conversation/Apps/Credentials/BasicAuthCredentials.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// It consists of a username and a password. diff --git a/src/Sinch/Conversation/Apps/Credentials/KakaoTalkCredentials.cs b/src/Sinch/Conversation/Apps/Credentials/KakaoTalkCredentials.cs index 70b6d85e..0c5f302e 100644 --- a/src/Sinch/Conversation/Apps/Credentials/KakaoTalkCredentials.cs +++ b/src/Sinch/Conversation/Apps/Credentials/KakaoTalkCredentials.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// If you are including the KakaoTalk channel in the `channel_identifier` property, you must include this object. diff --git a/src/Sinch/Conversation/Apps/Credentials/LineCredentials.cs b/src/Sinch/Conversation/Apps/Credentials/LineCredentials.cs index bdb4bd51..1c2bdbbf 100644 --- a/src/Sinch/Conversation/Apps/Credentials/LineCredentials.cs +++ b/src/Sinch/Conversation/Apps/Credentials/LineCredentials.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// If you are including the LINE channel in the `channel_identifier` property, you must include this object. diff --git a/src/Sinch/Conversation/Apps/Credentials/MMSCredentials.cs b/src/Sinch/Conversation/Apps/Credentials/MMSCredentials.cs index 4d77ef92..488e03a0 100644 --- a/src/Sinch/Conversation/Apps/Credentials/MMSCredentials.cs +++ b/src/Sinch/Conversation/Apps/Credentials/MMSCredentials.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// If you are including the MMS channel in the `channel_identifier` property, you must include this object. diff --git a/src/Sinch/Conversation/Apps/Credentials/StaticBearerCredential.cs b/src/Sinch/Conversation/Apps/Credentials/StaticBearerCredential.cs index 0f46fa89..fe38399b 100644 --- a/src/Sinch/Conversation/Apps/Credentials/StaticBearerCredential.cs +++ b/src/Sinch/Conversation/Apps/Credentials/StaticBearerCredential.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// This object is required for channels which use a bearer-type of credential for authentication. diff --git a/src/Sinch/Conversation/Apps/Credentials/StaticTokenCredential.cs b/src/Sinch/Conversation/Apps/Credentials/StaticTokenCredential.cs index d3a81938..846ac71b 100644 --- a/src/Sinch/Conversation/Apps/Credentials/StaticTokenCredential.cs +++ b/src/Sinch/Conversation/Apps/Credentials/StaticTokenCredential.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// This object is required for channels which use a static token credential for authentication. diff --git a/src/Sinch/Conversation/Apps/Credentials/TelegramCredentials.cs b/src/Sinch/Conversation/Apps/Credentials/TelegramCredentials.cs index b166fc02..c74e50c1 100644 --- a/src/Sinch/Conversation/Apps/Credentials/TelegramCredentials.cs +++ b/src/Sinch/Conversation/Apps/Credentials/TelegramCredentials.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Apps.Credentials { diff --git a/src/Sinch/Conversation/Apps/Credentials/WeChatCredentials.cs b/src/Sinch/Conversation/Apps/Credentials/WeChatCredentials.cs index 059a3e2c..e5d57acf 100644 --- a/src/Sinch/Conversation/Apps/Credentials/WeChatCredentials.cs +++ b/src/Sinch/Conversation/Apps/Credentials/WeChatCredentials.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps.Credentials +namespace Sinch.Conversation.Apps.Credentials { /// /// If you are including the WeChat channel in the `channel_identifier` property, you must include this object. diff --git a/src/Sinch/Conversation/Apps/DispatchRetentionPolicy.cs b/src/Sinch/Conversation/Apps/DispatchRetentionPolicy.cs index e062f2a1..dbc3149a 100644 --- a/src/Sinch/Conversation/Apps/DispatchRetentionPolicy.cs +++ b/src/Sinch/Conversation/Apps/DispatchRetentionPolicy.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Apps { @@ -23,7 +23,7 @@ public sealed class DispatchRetentionPolicy /// so messages are not deleted on the minute they become eligible for deletion. /// public long TtlDays { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Apps/DispatchRetentionPolicyType.cs b/src/Sinch/Conversation/Apps/DispatchRetentionPolicyType.cs index c5e2f32b..da2498b6 100644 --- a/src/Sinch/Conversation/Apps/DispatchRetentionPolicyType.cs +++ b/src/Sinch/Conversation/Apps/DispatchRetentionPolicyType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Apps diff --git a/src/Sinch/Conversation/Apps/QueueStats.cs b/src/Sinch/Conversation/Apps/QueueStats.cs index 998df9c2..91a9eed4 100644 --- a/src/Sinch/Conversation/Apps/QueueStats.cs +++ b/src/Sinch/Conversation/Apps/QueueStats.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Apps { diff --git a/src/Sinch/Conversation/Apps/RateLimits.cs b/src/Sinch/Conversation/Apps/RateLimits.cs index ed687866..b0fe6ef0 100644 --- a/src/Sinch/Conversation/Apps/RateLimits.cs +++ b/src/Sinch/Conversation/Apps/RateLimits.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Apps { diff --git a/src/Sinch/Conversation/Apps/RetentionPolicy.cs b/src/Sinch/Conversation/Apps/RetentionPolicy.cs index b1ed3d21..d6c2f45b 100644 --- a/src/Sinch/Conversation/Apps/RetentionPolicy.cs +++ b/src/Sinch/Conversation/Apps/RetentionPolicy.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Apps { @@ -12,7 +12,7 @@ public sealed class RetentionPolicy /// Gets or Sets RetentionType /// public RetentionType RetentionType { get; set; } - + /// /// Optional. The days before a message or conversation is eligible for deletion. @@ -22,7 +22,7 @@ public sealed class RetentionPolicy /// messages and conversations are not deleted on the minute they become eligible for deletion. /// public long? TtlDays { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Apps/RetentionType.cs b/src/Sinch/Conversation/Apps/RetentionType.cs index 45e3dc3c..a64900b7 100644 --- a/src/Sinch/Conversation/Apps/RetentionType.cs +++ b/src/Sinch/Conversation/Apps/RetentionType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Apps diff --git a/src/Sinch/Conversation/Apps/SmartConversation.cs b/src/Sinch/Conversation/Apps/SmartConversation.cs index e336aa22..810395e1 100644 --- a/src/Sinch/Conversation/Apps/SmartConversation.cs +++ b/src/Sinch/Conversation/Apps/SmartConversation.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Apps +namespace Sinch.Conversation.Apps { /// /// This object is required for apps that subscribe to Smart Conversations features. diff --git a/src/Sinch/Conversation/Apps/Update/UpdateAppRequest.cs b/src/Sinch/Conversation/Apps/Update/UpdateAppRequest.cs index 1d6874f7..3a9b694c 100644 --- a/src/Sinch/Conversation/Apps/Update/UpdateAppRequest.cs +++ b/src/Sinch/Conversation/Apps/Update/UpdateAppRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Capability/Capabilities.cs b/src/Sinch/Conversation/Capability/Capabilities.cs index bdca7ca2..9c86a3e6 100644 --- a/src/Sinch/Conversation/Capability/Capabilities.cs +++ b/src/Sinch/Conversation/Capability/Capabilities.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Sinch/Conversation/Capability/LookupCapabilityRequest.cs b/src/Sinch/Conversation/Capability/LookupCapabilityRequest.cs index 18b0b8a5..406fca6a 100644 --- a/src/Sinch/Conversation/Capability/LookupCapabilityRequest.cs +++ b/src/Sinch/Conversation/Capability/LookupCapabilityRequest.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Common; +using Sinch.Conversation.Common; namespace Sinch.Conversation.Capability { diff --git a/src/Sinch/Conversation/Capability/LookupCapabilityResponse.cs b/src/Sinch/Conversation/Capability/LookupCapabilityResponse.cs index eb9b8a46..2730b721 100644 --- a/src/Sinch/Conversation/Capability/LookupCapabilityResponse.cs +++ b/src/Sinch/Conversation/Capability/LookupCapabilityResponse.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Common; +using Sinch.Conversation.Common; namespace Sinch.Conversation.Capability { diff --git a/src/Sinch/Conversation/Common/Agent.cs b/src/Sinch/Conversation/Common/Agent.cs index 34cca070..57a52de0 100644 --- a/src/Sinch/Conversation/Common/Agent.cs +++ b/src/Sinch/Conversation/Common/Agent.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Events.AppEvents; +using Sinch.Conversation.Events.AppEvents; namespace Sinch.Conversation.Common { diff --git a/src/Sinch/Conversation/Common/AgentType.cs b/src/Sinch/Conversation/Common/AgentType.cs index df07af1b..0245b9d2 100644 --- a/src/Sinch/Conversation/Common/AgentType.cs +++ b/src/Sinch/Conversation/Common/AgentType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Common diff --git a/src/Sinch/Conversation/Common/ChannelIdentity.cs b/src/Sinch/Conversation/Common/ChannelIdentity.cs index 86828bf3..21643ec9 100644 --- a/src/Sinch/Conversation/Common/ChannelIdentity.cs +++ b/src/Sinch/Conversation/Common/ChannelIdentity.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Common +namespace Sinch.Conversation.Common { public class ChannelIdentity { diff --git a/src/Sinch/Conversation/Common/ContactId.cs b/src/Sinch/Conversation/Common/ContactId.cs index e8293b36..79ee2997 100644 --- a/src/Sinch/Conversation/Common/ContactId.cs +++ b/src/Sinch/Conversation/Common/ContactId.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Common +namespace Sinch.Conversation.Common { public sealed class ContactRecipient : IRecipient { diff --git a/src/Sinch/Conversation/Common/ProcessingMode.cs b/src/Sinch/Conversation/Common/ProcessingMode.cs index 78213439..2c6fde72 100644 --- a/src/Sinch/Conversation/Common/ProcessingMode.cs +++ b/src/Sinch/Conversation/Common/ProcessingMode.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Common diff --git a/src/Sinch/Conversation/Contacts/Contact.cs b/src/Sinch/Conversation/Contacts/Contact.cs index 0f6712a2..d1e5b769 100644 --- a/src/Sinch/Conversation/Contacts/Contact.cs +++ b/src/Sinch/Conversation/Contacts/Contact.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Text; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Contacts/Contacts.cs b/src/Sinch/Conversation/Contacts/Contacts.cs index fd16a743..e9193a98 100644 --- a/src/Sinch/Conversation/Contacts/Contacts.cs +++ b/src/Sinch/Conversation/Contacts/Contacts.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; @@ -231,11 +231,11 @@ public Task Merge(string destinationId, string sourceId, CancellationTo destinationId, _projectId); var uri = new Uri(_baseAddress, $"/v1/projects/{_projectId}/contacts/{destinationId}:merge"); return _http.Send(uri, HttpMethod.Post, new - { - source_id = sourceId, - // NOTE: keep in mind while this enum has only one value, it can change in the future. - strategy = "MERGE" - }, + { + source_id = sourceId, + // NOTE: keep in mind while this enum has only one value, it can change in the future. + strategy = "MERGE" + }, cancellationToken); } } diff --git a/src/Sinch/Conversation/Contacts/Create/CreateContactRequest.cs b/src/Sinch/Conversation/Contacts/Create/CreateContactRequest.cs index 7ce6b53b..443ac948 100644 --- a/src/Sinch/Conversation/Contacts/Create/CreateContactRequest.cs +++ b/src/Sinch/Conversation/Contacts/Create/CreateContactRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Conversation.Common; using Sinch.Conversation.Messages; diff --git a/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfile.cs b/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfile.cs index 31c800a3..025c0c37 100644 --- a/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfile.cs +++ b/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfile.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Contacts.GetChannelProfile +namespace Sinch.Conversation.Contacts.GetChannelProfile { public class ChannelProfile { diff --git a/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfileConversationChannel.cs b/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfileConversationChannel.cs index f56bb0dc..0599692b 100644 --- a/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfileConversationChannel.cs +++ b/src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfileConversationChannel.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Contacts.GetChannelProfile diff --git a/src/Sinch/Conversation/Contacts/GetChannelProfile/GetChannelProfileRequest.cs b/src/Sinch/Conversation/Contacts/GetChannelProfile/GetChannelProfileRequest.cs index 3c639045..0ceaaea1 100644 --- a/src/Sinch/Conversation/Contacts/GetChannelProfile/GetChannelProfileRequest.cs +++ b/src/Sinch/Conversation/Contacts/GetChannelProfile/GetChannelProfileRequest.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Common; +using Sinch.Conversation.Common; using Sinch.Conversation.Messages; namespace Sinch.Conversation.Contacts.GetChannelProfile @@ -12,7 +12,7 @@ public class GetChannelProfileRequest #if NET7_0_OR_GREATER public required IRecipient Recipient { get; set; } #else - public IRecipient Recipient { get; set; } + public IRecipient Recipient { get; set; } #endif /// diff --git a/src/Sinch/Conversation/Contacts/List/ListContactsResponse.cs b/src/Sinch/Conversation/Contacts/List/ListContactsResponse.cs index 28d3f630..5afafc88 100644 --- a/src/Sinch/Conversation/Contacts/List/ListContactsResponse.cs +++ b/src/Sinch/Conversation/Contacts/List/ListContactsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Conversation.Contacts.List { diff --git a/src/Sinch/Conversation/Contacts/List/ListContractsRequest.cs b/src/Sinch/Conversation/Contacts/List/ListContractsRequest.cs index f701a15d..2e1ff7dc 100644 --- a/src/Sinch/Conversation/Contacts/List/ListContractsRequest.cs +++ b/src/Sinch/Conversation/Contacts/List/ListContractsRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Contacts.List +namespace Sinch.Conversation.Contacts.List { public class ListContactsRequest { diff --git a/src/Sinch/Conversation/ConversationChannel.cs b/src/Sinch/Conversation/ConversationChannel.cs index 919beac1..5732f769 100644 --- a/src/Sinch/Conversation/ConversationChannel.cs +++ b/src/Sinch/Conversation/ConversationChannel.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation diff --git a/src/Sinch/Conversation/ConversationLanguage.cs b/src/Sinch/Conversation/ConversationLanguage.cs index 550da1fa..0435fbee 100644 --- a/src/Sinch/Conversation/ConversationLanguage.cs +++ b/src/Sinch/Conversation/ConversationLanguage.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation diff --git a/src/Sinch/Conversation/ConversationRegion.cs b/src/Sinch/Conversation/ConversationRegion.cs index 5db3628d..fbbe0b8a 100644 --- a/src/Sinch/Conversation/ConversationRegion.cs +++ b/src/Sinch/Conversation/ConversationRegion.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation +namespace Sinch.Conversation { /// /// Represents the Conversation region options. diff --git a/src/Sinch/Conversation/Conversations/Conversation.cs b/src/Sinch/Conversation/Conversations/Conversation.cs index bdf7eef6..9cd67044 100644 --- a/src/Sinch/Conversation/Conversations/Conversation.cs +++ b/src/Sinch/Conversation/Conversations/Conversation.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Nodes; using System.Text.Json.Serialization; diff --git a/src/Sinch/Conversation/Conversations/Conversations.cs b/src/Sinch/Conversation/Conversations/Conversations.cs index fac406ae..d603c438 100644 --- a/src/Sinch/Conversation/Conversations/Conversations.cs +++ b/src/Sinch/Conversation/Conversations/Conversations.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/Conversation/Conversations/Create/CreateConversationRequest.cs b/src/Sinch/Conversation/Conversations/Create/CreateConversationRequest.cs index f5f1dc99..a0d0c0f6 100644 --- a/src/Sinch/Conversation/Conversations/Create/CreateConversationRequest.cs +++ b/src/Sinch/Conversation/Conversations/Create/CreateConversationRequest.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Nodes; using Sinch.Conversation.Messages; diff --git a/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventRequest.cs b/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventRequest.cs index a213405f..335fbc66 100644 --- a/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventRequest.cs +++ b/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Conversation.Common; using Sinch.Conversation.Events; @@ -55,7 +55,7 @@ public InjectEventRequest(ContactMessageEvent contactMessageEvent) /// [JsonIgnore] public string ConversationId { get; set; } - + /// /// The processed time of the message in UTC timezone. Must be less than current_time and greater than (current_time - /// 30 days). diff --git a/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventResponse.cs b/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventResponse.cs index b7cbc10b..d7660d19 100644 --- a/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventResponse.cs +++ b/src/Sinch/Conversation/Conversations/InjectEvent/InjectEventResponse.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Sinch.Conversation.Conversations.InjectEvent { diff --git a/src/Sinch/Conversation/Conversations/InjectMessage/InjectMessageRequest.cs b/src/Sinch/Conversation/Conversations/InjectMessage/InjectMessageRequest.cs index af510672..7d17dfc5 100644 --- a/src/Sinch/Conversation/Conversations/InjectMessage/InjectMessageRequest.cs +++ b/src/Sinch/Conversation/Conversations/InjectMessage/InjectMessageRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Conversations/List/ListConversationsRequest.cs b/src/Sinch/Conversation/Conversations/List/ListConversationsRequest.cs index a23ce757..28ed6c9a 100644 --- a/src/Sinch/Conversation/Conversations/List/ListConversationsRequest.cs +++ b/src/Sinch/Conversation/Conversations/List/ListConversationsRequest.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Messages; +using Sinch.Conversation.Messages; namespace Sinch.Conversation.Conversations.List { diff --git a/src/Sinch/Conversation/Conversations/List/ListConversationsResponse.cs b/src/Sinch/Conversation/Conversations/List/ListConversationsResponse.cs index eee9fc7f..7ac1fa11 100644 --- a/src/Sinch/Conversation/Conversations/List/ListConversationsResponse.cs +++ b/src/Sinch/Conversation/Conversations/List/ListConversationsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Conversation.Conversations.List { diff --git a/src/Sinch/Conversation/Conversations/MetadataUpdateStrategy.cs b/src/Sinch/Conversation/Conversations/MetadataUpdateStrategy.cs index e83bb1d2..c0321728 100644 --- a/src/Sinch/Conversation/Conversations/MetadataUpdateStrategy.cs +++ b/src/Sinch/Conversation/Conversations/MetadataUpdateStrategy.cs @@ -1,4 +1,4 @@ -using Sinch.Core; +using Sinch.Core; namespace Sinch.Conversation.Conversations { diff --git a/src/Sinch/Conversation/Events/AppEvent.cs b/src/Sinch/Conversation/Events/AppEvent.cs index 063fe82f..9b350af3 100644 --- a/src/Sinch/Conversation/Events/AppEvent.cs +++ b/src/Sinch/Conversation/Events/AppEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Conversation.Events.AppEvents; using Sinch.Conversation.Events.EventTypes; diff --git a/src/Sinch/Conversation/Events/AppEvents/AgentJoinedEvent.cs b/src/Sinch/Conversation/Events/AppEvents/AgentJoinedEvent.cs index 7543f702..1cc6baaf 100644 --- a/src/Sinch/Conversation/Events/AppEvents/AgentJoinedEvent.cs +++ b/src/Sinch/Conversation/Events/AppEvents/AgentJoinedEvent.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Common; +using Sinch.Conversation.Common; namespace Sinch.Conversation.Events.AppEvents { diff --git a/src/Sinch/Conversation/Events/AppEvents/AgentLeftEvent.cs b/src/Sinch/Conversation/Events/AppEvents/AgentLeftEvent.cs index dd52a438..b2ec2ec0 100644 --- a/src/Sinch/Conversation/Events/AppEvents/AgentLeftEvent.cs +++ b/src/Sinch/Conversation/Events/AppEvents/AgentLeftEvent.cs @@ -1,4 +1,4 @@ -using Sinch.Conversation.Common; +using Sinch.Conversation.Common; namespace Sinch.Conversation.Events.AppEvents { diff --git a/src/Sinch/Conversation/Events/AppEvents/CommentReplyEvent.cs b/src/Sinch/Conversation/Events/AppEvents/CommentReplyEvent.cs index 29c2864b..942b7286 100644 --- a/src/Sinch/Conversation/Events/AppEvents/CommentReplyEvent.cs +++ b/src/Sinch/Conversation/Events/AppEvents/CommentReplyEvent.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Events.AppEvents +namespace Sinch.Conversation.Events.AppEvents { public class CommentReplyEvent { diff --git a/src/Sinch/Conversation/Events/ContactEvent.cs b/src/Sinch/Conversation/Events/ContactEvent.cs index 59869ba5..e37d2301 100644 --- a/src/Sinch/Conversation/Events/ContactEvent.cs +++ b/src/Sinch/Conversation/Events/ContactEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Conversation.Events.ContactEvents; using Sinch.Conversation.Events.EventTypes; diff --git a/src/Sinch/Conversation/Events/ContactEvents/CommentEvent.cs b/src/Sinch/Conversation/Events/ContactEvents/CommentEvent.cs index fe128585..f06c47f3 100644 --- a/src/Sinch/Conversation/Events/ContactEvents/CommentEvent.cs +++ b/src/Sinch/Conversation/Events/ContactEvents/CommentEvent.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Events.ContactEvents +namespace Sinch.Conversation.Events.ContactEvents { /// /// The user sent a comment outside of the main conversation context diff --git a/src/Sinch/Conversation/Events/ContactEvents/ConversationDeletedEvent.cs b/src/Sinch/Conversation/Events/ContactEvents/ConversationDeletedEvent.cs index 057e4763..cb2772b5 100644 --- a/src/Sinch/Conversation/Events/ContactEvents/ConversationDeletedEvent.cs +++ b/src/Sinch/Conversation/Events/ContactEvents/ConversationDeletedEvent.cs @@ -1,10 +1,10 @@ -namespace Sinch.Conversation.Events.ContactEvents +namespace Sinch.Conversation.Events.ContactEvents { /// /// An empty object. Represents a conversation deleted by the contact. /// public class ConversationDeletedEvent { - + } } diff --git a/src/Sinch/Conversation/Events/ContactMessageEvent.cs b/src/Sinch/Conversation/Events/ContactMessageEvent.cs index b5276c7d..65006986 100644 --- a/src/Sinch/Conversation/Events/ContactMessageEvent.cs +++ b/src/Sinch/Conversation/Events/ContactMessageEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Conversation/Events/ConversationEvent.cs b/src/Sinch/Conversation/Events/ConversationEvent.cs index 4b341612..0dae39d7 100644 --- a/src/Sinch/Conversation/Events/ConversationEvent.cs +++ b/src/Sinch/Conversation/Events/ConversationEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Apps; diff --git a/src/Sinch/Conversation/Events/EventTypes/ComposingEndEvent.cs b/src/Sinch/Conversation/Events/EventTypes/ComposingEndEvent.cs index 2b93dfe1..0f597fdb 100644 --- a/src/Sinch/Conversation/Events/EventTypes/ComposingEndEvent.cs +++ b/src/Sinch/Conversation/Events/EventTypes/ComposingEndEvent.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Events.EventTypes +namespace Sinch.Conversation.Events.EventTypes { public class ComposingEndEvent { diff --git a/src/Sinch/Conversation/Events/EventTypes/ComposingEvent.cs b/src/Sinch/Conversation/Events/EventTypes/ComposingEvent.cs index c84737a0..ce5335f7 100644 --- a/src/Sinch/Conversation/Events/EventTypes/ComposingEvent.cs +++ b/src/Sinch/Conversation/Events/EventTypes/ComposingEvent.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Events.EventTypes +namespace Sinch.Conversation.Events.EventTypes { public class ComposingEvent { diff --git a/src/Sinch/Conversation/Events/EventTypes/GenericEvent.cs b/src/Sinch/Conversation/Events/EventTypes/GenericEvent.cs index f0a9d557..a05cc3c5 100644 --- a/src/Sinch/Conversation/Events/EventTypes/GenericEvent.cs +++ b/src/Sinch/Conversation/Events/EventTypes/GenericEvent.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Nodes; +using System.Text.Json.Nodes; namespace Sinch.Conversation.Events.EventTypes { diff --git a/src/Sinch/Conversation/Events/Events.cs b/src/Sinch/Conversation/Events/Events.cs index 3d37061e..88adc94d 100644 --- a/src/Sinch/Conversation/Events/Events.cs +++ b/src/Sinch/Conversation/Events/Events.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/Conversation/Events/ListEventsRequest.cs b/src/Sinch/Conversation/Events/ListEventsRequest.cs index db500c06..b0b4ef99 100644 --- a/src/Sinch/Conversation/Events/ListEventsRequest.cs +++ b/src/Sinch/Conversation/Events/ListEventsRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Events +namespace Sinch.Conversation.Events { public class ListEventsRequest { diff --git a/src/Sinch/Conversation/Events/ListEventsResponse.cs b/src/Sinch/Conversation/Events/ListEventsResponse.cs index e1b4fcb3..bdaf1e38 100644 --- a/src/Sinch/Conversation/Events/ListEventsResponse.cs +++ b/src/Sinch/Conversation/Events/ListEventsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Conversation.Events { diff --git a/src/Sinch/Conversation/Events/Send/SendEventRequest.cs b/src/Sinch/Conversation/Events/Send/SendEventRequest.cs index ef596732..97e2f950 100644 --- a/src/Sinch/Conversation/Events/Send/SendEventRequest.cs +++ b/src/Sinch/Conversation/Events/Send/SendEventRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Conversation.Common; using Sinch.Conversation.Messages; diff --git a/src/Sinch/Conversation/Events/Send/SendEventResponse.cs b/src/Sinch/Conversation/Events/Send/SendEventResponse.cs index 77324656..574f0c43 100644 --- a/src/Sinch/Conversation/Events/Send/SendEventResponse.cs +++ b/src/Sinch/Conversation/Events/Send/SendEventResponse.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; namespace Sinch.Conversation.Events.Send diff --git a/src/Sinch/Conversation/Hooks/CallbackEventBase.cs b/src/Sinch/Conversation/Hooks/CallbackEventBase.cs index 870dc052..51141c86 100644 --- a/src/Sinch/Conversation/Hooks/CallbackEventBase.cs +++ b/src/Sinch/Conversation/Hooks/CallbackEventBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks diff --git a/src/Sinch/Conversation/Hooks/CapabilityEvent.cs b/src/Sinch/Conversation/Hooks/CapabilityEvent.cs index 3c590579..3af2704c 100644 --- a/src/Sinch/Conversation/Hooks/CapabilityEvent.cs +++ b/src/Sinch/Conversation/Hooks/CapabilityEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/ChannelEvent.cs b/src/Sinch/Conversation/Hooks/ChannelEvent.cs index 95b14ae6..961c9e99 100644 --- a/src/Sinch/Conversation/Hooks/ChannelEvent.cs +++ b/src/Sinch/Conversation/Hooks/ChannelEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; @@ -15,7 +15,7 @@ public sealed class ChannelEvent : CallbackEventBase /// [JsonPropertyName("channel_event_notification")] public EventNotification EventNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/ContactCreateEvent.cs b/src/Sinch/Conversation/Hooks/ContactCreateEvent.cs index ffb52e8f..ff51f287 100644 --- a/src/Sinch/Conversation/Hooks/ContactCreateEvent.cs +++ b/src/Sinch/Conversation/Hooks/ContactCreateEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/ContactDeleteEvent.cs b/src/Sinch/Conversation/Hooks/ContactDeleteEvent.cs index e23e6210..4edd5e8b 100644 --- a/src/Sinch/Conversation/Hooks/ContactDeleteEvent.cs +++ b/src/Sinch/Conversation/Hooks/ContactDeleteEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; @@ -15,7 +15,7 @@ public sealed class ContactDeleteEvent : CallbackEventBase /// [JsonPropertyName("contact_delete_notification")] public ContactNotification ContactDeleteNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/ContactIdentitiesDuplicationEvent.cs b/src/Sinch/Conversation/Hooks/ContactIdentitiesDuplicationEvent.cs index a429a0f1..bc0cbacd 100644 --- a/src/Sinch/Conversation/Hooks/ContactIdentitiesDuplicationEvent.cs +++ b/src/Sinch/Conversation/Hooks/ContactIdentitiesDuplicationEvent.cs @@ -1,11 +1,11 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; namespace Sinch.Conversation.Hooks { - /// + /// /// This callback is sent when duplicates of channel identities are found between multiple contacts in the contact database during message and event processing. /// public sealed class ContactIdentitiesDuplicationEvent : CallbackEventBase @@ -15,7 +15,7 @@ public sealed class ContactIdentitiesDuplicationEvent : CallbackEventBase /// [JsonPropertyName("duplicated_contact_identities_notification")] public DuplicatedIdentitiesEvent DuplicatedContactIdentitiesNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/ContactMergeEvent.cs b/src/Sinch/Conversation/Hooks/ContactMergeEvent.cs index 388a1cba..7e9021b3 100644 --- a/src/Sinch/Conversation/Hooks/ContactMergeEvent.cs +++ b/src/Sinch/Conversation/Hooks/ContactMergeEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/ContactUpdateEvent.cs b/src/Sinch/Conversation/Hooks/ContactUpdateEvent.cs index 2d814647..86dbef44 100644 --- a/src/Sinch/Conversation/Hooks/ContactUpdateEvent.cs +++ b/src/Sinch/Conversation/Hooks/ContactUpdateEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; @@ -15,7 +15,7 @@ public sealed class ContactUpdateEvent : CallbackEventBase /// [JsonPropertyName("contact_update_notification")] public ContactNotification ContactUpdateNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/ConversationDeleteEvent.cs b/src/Sinch/Conversation/Hooks/ConversationDeleteEvent.cs index c9757638..48320876 100644 --- a/src/Sinch/Conversation/Hooks/ConversationDeleteEvent.cs +++ b/src/Sinch/Conversation/Hooks/ConversationDeleteEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/ConversationStartEvent.cs b/src/Sinch/Conversation/Hooks/ConversationStartEvent.cs index 589e6f0e..8bc64aec 100644 --- a/src/Sinch/Conversation/Hooks/ConversationStartEvent.cs +++ b/src/Sinch/Conversation/Hooks/ConversationStartEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/ConversationStopEvent.cs b/src/Sinch/Conversation/Hooks/ConversationStopEvent.cs index 7304fd55..46c276ee 100644 --- a/src/Sinch/Conversation/Hooks/ConversationStopEvent.cs +++ b/src/Sinch/Conversation/Hooks/ConversationStopEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/DeliveryEvent.cs b/src/Sinch/Conversation/Hooks/DeliveryEvent.cs index ed15f7a5..69210558 100644 --- a/src/Sinch/Conversation/Hooks/DeliveryEvent.cs +++ b/src/Sinch/Conversation/Hooks/DeliveryEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/ICallbackEvent.cs b/src/Sinch/Conversation/Hooks/ICallbackEvent.cs index 9e62f9c6..3021727b 100644 --- a/src/Sinch/Conversation/Hooks/ICallbackEvent.cs +++ b/src/Sinch/Conversation/Hooks/ICallbackEvent.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks diff --git a/src/Sinch/Conversation/Hooks/InboundEvent.cs b/src/Sinch/Conversation/Hooks/InboundEvent.cs index 549846f3..60b65048 100644 --- a/src/Sinch/Conversation/Hooks/InboundEvent.cs +++ b/src/Sinch/Conversation/Hooks/InboundEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/MessageDeliveryReceiptEvent.cs b/src/Sinch/Conversation/Hooks/MessageDeliveryReceiptEvent.cs index a1ec4f36..64b95474 100644 --- a/src/Sinch/Conversation/Hooks/MessageDeliveryReceiptEvent.cs +++ b/src/Sinch/Conversation/Hooks/MessageDeliveryReceiptEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/MessageInboundEvent.cs b/src/Sinch/Conversation/Hooks/MessageInboundEvent.cs index feed9b73..087b7915 100644 --- a/src/Sinch/Conversation/Hooks/MessageInboundEvent.cs +++ b/src/Sinch/Conversation/Hooks/MessageInboundEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/MessageInboundSmartConversationRedactionEvent.cs b/src/Sinch/Conversation/Hooks/MessageInboundSmartConversationRedactionEvent.cs index 0af93ad5..72bdc108 100644 --- a/src/Sinch/Conversation/Hooks/MessageInboundSmartConversationRedactionEvent.cs +++ b/src/Sinch/Conversation/Hooks/MessageInboundSmartConversationRedactionEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/MessageSubmitEvent.cs b/src/Sinch/Conversation/Hooks/MessageSubmitEvent.cs index 451ee58f..d1140dea 100644 --- a/src/Sinch/Conversation/Hooks/MessageSubmitEvent.cs +++ b/src/Sinch/Conversation/Hooks/MessageSubmitEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/Hooks/Models/AnalysisResult.cs b/src/Sinch/Conversation/Hooks/Models/AnalysisResult.cs index 790c048c..2ae378fb 100644 --- a/src/Sinch/Conversation/Hooks/Models/AnalysisResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/AnalysisResult.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -14,35 +14,35 @@ public sealed class AnalysisResult /// [JsonPropertyName("ml_sentiment_result")] public List MlSentimentResult { get; set; } - + /// /// An array that contains the analyses of the intentions of, and entities within, the corresponding messages. /// [JsonPropertyName("ml_nlu_result")] public List MlNluResult { get; set; } - + /// /// An array that contains the image recognition analyses of the images identified in the corresponding messages. /// [JsonPropertyName("ml_image_recognition_result")] public List MlImageRecognitionResult { get; set; } - + /// /// An array that contains the PII analysis of the corresponding messages. /// [JsonPropertyName("ml_pii_result")] public List MlPiiResult { get; set; } - + /// /// An array that contains the analyses of the offenses of the corresponding messages. /// [JsonPropertyName("ml_offensive_analysis_result")] public List MlOffensiveAnalysisResult { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/CapabilityNotification.cs b/src/Sinch/Conversation/Hooks/Models/CapabilityNotification.cs index 14d74495..6e8da11f 100644 --- a/src/Sinch/Conversation/Hooks/Models/CapabilityNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/CapabilityNotification.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Messages.Message; diff --git a/src/Sinch/Conversation/Hooks/Models/CapabilityStatus.cs b/src/Sinch/Conversation/Hooks/Models/CapabilityStatus.cs index dcb135f9..0133dc1f 100644 --- a/src/Sinch/Conversation/Hooks/Models/CapabilityStatus.cs +++ b/src/Sinch/Conversation/Hooks/Models/CapabilityStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models @@ -10,7 +10,7 @@ namespace Sinch.Conversation.Hooks.Models [JsonConverter(typeof(EnumRecordJsonConverter))] public record CapabilityStatus(string Value) : EnumRecord(Value) { - + public static readonly CapabilityStatus CapabilityUnknown = new("CAPABILITY_UNKNOWN"); public static readonly CapabilityStatus CapabilityFull = new("CAPABILITY_FULL"); public static readonly CapabilityStatus CapabilityPartial = new("CAPABILITY_PARTIAL"); diff --git a/src/Sinch/Conversation/Hooks/Models/CommentEvent.cs b/src/Sinch/Conversation/Hooks/Models/CommentEvent.cs index 72f6a97b..78ca68d1 100644 --- a/src/Sinch/Conversation/Hooks/Models/CommentEvent.cs +++ b/src/Sinch/Conversation/Hooks/Models/CommentEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Conversation/Hooks/Models/ContactEvent.cs b/src/Sinch/Conversation/Hooks/Models/ContactEvent.cs index 66f9e0da..003681c0 100644 --- a/src/Sinch/Conversation/Hooks/Models/ContactEvent.cs +++ b/src/Sinch/Conversation/Hooks/Models/ContactEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,14 +13,14 @@ public sealed class ContactEvent /// [JsonPropertyName("composing_event")] public object ComposingEvent { get; set; } - + /// /// Gets or Sets CommentEvent /// [JsonPropertyName("comment_event")] public CommentEvent CommentEvent { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/ContactMergeNotification.cs b/src/Sinch/Conversation/Hooks/Models/ContactMergeNotification.cs index 5a80d37e..541ba9cb 100644 --- a/src/Sinch/Conversation/Hooks/Models/ContactMergeNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/ContactMergeNotification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Contacts; diff --git a/src/Sinch/Conversation/Hooks/Models/ContactMessageEvent.cs b/src/Sinch/Conversation/Hooks/Models/ContactMessageEvent.cs index 58e1a4ff..ba061f88 100644 --- a/src/Sinch/Conversation/Hooks/Models/ContactMessageEvent.cs +++ b/src/Sinch/Conversation/Hooks/Models/ContactMessageEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/ContactNotification.cs b/src/Sinch/Conversation/Hooks/Models/ContactNotification.cs index c9a881fa..0dc6a41c 100644 --- a/src/Sinch/Conversation/Hooks/Models/ContactNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/ContactNotification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Contacts; @@ -14,7 +14,7 @@ public sealed class ContactNotification /// [JsonPropertyName("contact")] public Contact Contact { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/ConversationNotification.cs b/src/Sinch/Conversation/Hooks/Models/ConversationNotification.cs index fa11dd3d..ae12c0c6 100644 --- a/src/Sinch/Conversation/Hooks/Models/ConversationNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/ConversationNotification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,7 +13,7 @@ public sealed class ConversationNotification /// [JsonPropertyName("conversation")] public Conversations.Conversation Conversation { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/DeliveryStatus.cs b/src/Sinch/Conversation/Hooks/Models/DeliveryStatus.cs index c9c600d4..f0df55a1 100644 --- a/src/Sinch/Conversation/Hooks/Models/DeliveryStatus.cs +++ b/src/Sinch/Conversation/Hooks/Models/DeliveryStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/DocumentFieldClassification.cs b/src/Sinch/Conversation/Hooks/Models/DocumentFieldClassification.cs index 8dd52556..e2121502 100644 --- a/src/Sinch/Conversation/Hooks/Models/DocumentFieldClassification.cs +++ b/src/Sinch/Conversation/Hooks/Models/DocumentFieldClassification.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -14,7 +14,7 @@ public sealed class DocumentFieldClassification /// [JsonPropertyName("result")] public List> Result { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/DocumentImageClassification.cs b/src/Sinch/Conversation/Hooks/Models/DocumentImageClassification.cs index 1ea9b7a4..f889a9b2 100644 --- a/src/Sinch/Conversation/Hooks/Models/DocumentImageClassification.cs +++ b/src/Sinch/Conversation/Hooks/Models/DocumentImageClassification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,14 +13,14 @@ public sealed class DocumentImageClassification /// [JsonPropertyName("doc_type")] public string DocType { get; set; } - + /// /// The likelihood that the analyzed image contains the assigned document type. 1 is the maximum value, representing the highest likelihood that the analyzed image contains the assigned document type, and 0 is the minimum value, representing the lowest likelihood that the analyzed image contains the assigned document type. /// [JsonPropertyName("confidence")] public float Confidence { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEvent.cs b/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEvent.cs index 534ef7e0..2c2a0e01 100644 --- a/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEvent.cs +++ b/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEvent.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -14,7 +14,7 @@ public sealed class DuplicatedIdentitiesEvent /// [JsonPropertyName("duplicated_identities")] public List DuplicatedIdentities { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEventDuplicatedIdentitiesInner.cs b/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEventDuplicatedIdentitiesInner.cs index 2261f1c7..d10ab711 100644 --- a/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEventDuplicatedIdentitiesInner.cs +++ b/src/Sinch/Conversation/Hooks/Models/DuplicatedIdentitiesEventDuplicatedIdentitiesInner.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -21,7 +21,7 @@ public sealed class DuplicatedIdentitiesEventDuplicatedIdentitiesInner /// [JsonPropertyName("contact_ids")] public List ContactIds { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/Evaluation.cs b/src/Sinch/Conversation/Hooks/Models/Evaluation.cs index bb5d0df7..86c95430 100644 --- a/src/Sinch/Conversation/Hooks/Models/Evaluation.cs +++ b/src/Sinch/Conversation/Hooks/Models/Evaluation.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/EventDeliveryAllOfEventDeliveryReport.cs b/src/Sinch/Conversation/Hooks/Models/EventDeliveryAllOfEventDeliveryReport.cs index 03c3cdc3..9d73106b 100644 --- a/src/Sinch/Conversation/Hooks/Models/EventDeliveryAllOfEventDeliveryReport.cs +++ b/src/Sinch/Conversation/Hooks/Models/EventDeliveryAllOfEventDeliveryReport.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; using Sinch.Conversation.Messages.Message; diff --git a/src/Sinch/Conversation/Hooks/Models/EventInboundAllOfEvent.cs b/src/Sinch/Conversation/Hooks/Models/EventInboundAllOfEvent.cs index 8e9e9791..8e3dc404 100644 --- a/src/Sinch/Conversation/Hooks/Models/EventInboundAllOfEvent.cs +++ b/src/Sinch/Conversation/Hooks/Models/EventInboundAllOfEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Hooks/Models/EventNotification.cs b/src/Sinch/Conversation/Hooks/Models/EventNotification.cs index 1f1ad38a..c47b0cf2 100644 --- a/src/Sinch/Conversation/Hooks/Models/EventNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/EventNotification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Nodes; using System.Text.Json.Serialization; diff --git a/src/Sinch/Conversation/Hooks/Models/IntentResult.cs b/src/Sinch/Conversation/Hooks/Models/IntentResult.cs index d5f42e1c..5559ec5b 100644 --- a/src/Sinch/Conversation/Hooks/Models/IntentResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/IntentResult.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,14 +13,14 @@ public sealed class IntentResult /// [JsonPropertyName("intent")] public string Intent { get; set; } - + /// /// The likelihood that the assigned intent represents the purpose of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the intent, and 0 is the minimum value, representing the lowest likelihood that the message text matches the intent. /// [JsonPropertyName("score")] public float Score { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/MachineLearningImageRecognitionResult.cs b/src/Sinch/Conversation/Hooks/Models/MachineLearningImageRecognitionResult.cs index 99020ea7..10339ebb 100644 --- a/src/Sinch/Conversation/Hooks/Models/MachineLearningImageRecognitionResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/MachineLearningImageRecognitionResult.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,28 +13,28 @@ public sealed class MachineLearningImageRecognitionResult /// [JsonPropertyName("url")] public string Url { get; set; } - + /// /// Gets or Sets DocumentImageClassification /// [JsonPropertyName("document_image_classification")] public DocumentImageClassification DocumentImageClassification { get; set; } - + /// /// Gets or Sets OpticalCharacterRecognition /// [JsonPropertyName("optical_character_recognition")] public OpticalCharacterRecognition OpticalCharacterRecognition { get; set; } - + /// /// Gets or Sets DocumentFieldClassification /// [JsonPropertyName("document_field_classification")] public DocumentFieldClassification DocumentFieldClassification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/MachineLearningNLUResult.cs b/src/Sinch/Conversation/Hooks/Models/MachineLearningNLUResult.cs index b71e772b..362d500f 100644 --- a/src/Sinch/Conversation/Hooks/Models/MachineLearningNLUResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/MachineLearningNLUResult.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -14,28 +14,28 @@ public sealed class MachineLearningNLUResult /// [JsonPropertyName("message")] public string Message { get; set; } - + /// /// An array of JSON objects made up of intent and score pairs, where the score represents the likelihood that the message has the corresponding intent. /// [JsonPropertyName("results")] public List Results { get; set; } - + /// /// The most probable intent of the analyzed text. For example, chitchat.greeting, chitchat.bye, chitchat.compliment, chitchat.how_are_you, or general.yes_or_agreed. /// [JsonPropertyName("intent")] public string Intent { get; set; } - + /// /// The likelihood that the assigned intent represents the purpose of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the intent, and 0 is the minimum value, representing the lowest likelihood that the message text matches the intent. /// [JsonPropertyName("score")] public float Score { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/MachineLearningPIIResult.cs b/src/Sinch/Conversation/Hooks/Models/MachineLearningPIIResult.cs index 5e3ee1e0..031b3766 100644 --- a/src/Sinch/Conversation/Hooks/Models/MachineLearningPIIResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/MachineLearningPIIResult.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,14 +13,14 @@ public sealed class MachineLearningPIIResult /// [JsonPropertyName("message")] public string Message { get; set; } - + /// /// The redacted message text in which sensitive information was replaced with appropriate masks. A MISC mask is applied to a term that has been identified as PII, but with low confidence regarding which type of mask to assign. /// [JsonPropertyName("masked")] public string Masked { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/MachineLearningSentimentResult.cs b/src/Sinch/Conversation/Hooks/Models/MachineLearningSentimentResult.cs index 8ef58761..90fc857d 100644 --- a/src/Sinch/Conversation/Hooks/Models/MachineLearningSentimentResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/MachineLearningSentimentResult.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -20,21 +20,21 @@ public sealed class MachineLearningSentimentResult /// [JsonPropertyName("message")] public string Message { get; set; } - + /// /// An array of JSON objects made up of sentiment and score pairs, where the score represents the likelihood that the message communicates the corresponding sentiment. /// [JsonPropertyName("results")] public List Results { get; set; } - + /// /// The likelihood that the assigned sentiment represents the emotional context of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the sentiment, and 0 is the minimum value, representing the lowest likelihood that the message text matches the sentiment. /// [JsonPropertyName("score")] public float Score { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/MessageDeliveryReport.cs b/src/Sinch/Conversation/Hooks/Models/MessageDeliveryReport.cs index 0f48539d..f6b74558 100644 --- a/src/Sinch/Conversation/Hooks/Models/MessageDeliveryReport.cs +++ b/src/Sinch/Conversation/Hooks/Models/MessageDeliveryReport.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; using Sinch.Conversation.Messages.Message; diff --git a/src/Sinch/Conversation/Hooks/Models/MessageInboundEventItem.cs b/src/Sinch/Conversation/Hooks/Models/MessageInboundEventItem.cs index 220cf60a..224ed8b5 100644 --- a/src/Sinch/Conversation/Hooks/Models/MessageInboundEventItem.cs +++ b/src/Sinch/Conversation/Hooks/Models/MessageInboundEventItem.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Hooks/Models/MessageSubmitNotification.cs b/src/Sinch/Conversation/Hooks/Models/MessageSubmitNotification.cs index 9d8a7a3a..06f58e18 100644 --- a/src/Sinch/Conversation/Hooks/Models/MessageSubmitNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/MessageSubmitNotification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; using Sinch.Conversation.Messages.Message; diff --git a/src/Sinch/Conversation/Hooks/Models/OffensiveAnalysis.cs b/src/Sinch/Conversation/Hooks/Models/OffensiveAnalysis.cs index cb987ef5..60994f00 100644 --- a/src/Sinch/Conversation/Hooks/Models/OffensiveAnalysis.cs +++ b/src/Sinch/Conversation/Hooks/Models/OffensiveAnalysis.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -19,21 +19,21 @@ public sealed class OffensiveAnalysis /// [JsonPropertyName("message")] public string Message { get; set; } - + /// /// URL of the image that was analyzed. /// [JsonPropertyName("url")] public string Url { get; set; } - + /// /// The likelihood that the assigned evaluation represents the analyzed message correctly. 1 is the maximum value, representing the highest likelihood that the content of the message matches the evaluation. 0 is the minimum value, representing the lowest likelihood that the content of the message matches the evaluation. /// [JsonPropertyName("score")] public float Score { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/OptInEventAllOfOptInNotification.cs b/src/Sinch/Conversation/Hooks/Models/OptInEventAllOfOptInNotification.cs index d88c02ff..7d7ea567 100644 --- a/src/Sinch/Conversation/Hooks/Models/OptInEventAllOfOptInNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/OptInEventAllOfOptInNotification.cs @@ -1,10 +1,10 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; namespace Sinch.Conversation.Hooks.Models { - /// + /// /// OptInEventAllOfOptInNotification /// public sealed class OptInEventAllOfOptInNotification @@ -35,28 +35,28 @@ public sealed class OptInEventAllOfOptInNotification /// [JsonPropertyName("request_id")] public string RequestId { get; set; } - + /// /// The ID of the contact which is the subject of the opt-in. Will be empty if processing_mode is DISPATCH. /// [JsonPropertyName("contact_id")] public string ContactId { get; set; } - + /// /// The channel identity. For example, a phone number for SMS, WhatsApp and Viber Business. /// [JsonPropertyName("identity")] public string Identity { get; set; } - + /// /// Gets or Sets ErrorDetails /// [JsonPropertyName("error_details")] public OptInNotificationErrorDetails ErrorDetails { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/OptInNotificationErrorDetails.cs b/src/Sinch/Conversation/Hooks/Models/OptInNotificationErrorDetails.cs index 7587a1f3..760ab7ba 100644 --- a/src/Sinch/Conversation/Hooks/Models/OptInNotificationErrorDetails.cs +++ b/src/Sinch/Conversation/Hooks/Models/OptInNotificationErrorDetails.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models @@ -13,7 +13,7 @@ public sealed class OptInNotificationErrorDetails /// [JsonPropertyName("description")] public string Description { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/OptInStatus.cs b/src/Sinch/Conversation/Hooks/Models/OptInStatus.cs index 69fc93c9..f4a092ef 100644 --- a/src/Sinch/Conversation/Hooks/Models/OptInStatus.cs +++ b/src/Sinch/Conversation/Hooks/Models/OptInStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/OptOutNotification.cs b/src/Sinch/Conversation/Hooks/Models/OptOutNotification.cs index a912dfbf..155290f2 100644 --- a/src/Sinch/Conversation/Hooks/Models/OptOutNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/OptOutNotification.cs @@ -35,28 +35,28 @@ public sealed class OptOutNotification /// [JsonPropertyName("request_id")] public string RequestId { get; set; } - + /// /// The ID of the contact which is the subject of the opt-out. Will be empty if processing_mode is DISPATCH. /// [JsonPropertyName("contact_id")] public string ContactId { get; set; } - + /// /// The channel identity. For example, a phone number for SMS, WhatsApp and Viber Business. /// [JsonPropertyName("identity")] public string Identity { get; set; } - + /// /// Gets or Sets ErrorDetails /// [JsonPropertyName("error_details")] public OptOutNotificationErrorDetails ErrorDetails { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/OptOutNotificationErrorDetails.cs b/src/Sinch/Conversation/Hooks/Models/OptOutNotificationErrorDetails.cs index fcadd7e1..3bc9dfc1 100644 --- a/src/Sinch/Conversation/Hooks/Models/OptOutNotificationErrorDetails.cs +++ b/src/Sinch/Conversation/Hooks/Models/OptOutNotificationErrorDetails.cs @@ -13,7 +13,7 @@ public sealed class OptOutNotificationErrorDetails /// [JsonPropertyName("description")] public string Description { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/OptOutStatus.cs b/src/Sinch/Conversation/Hooks/Models/OptOutStatus.cs index 0bd65963..fc18d8ec 100644 --- a/src/Sinch/Conversation/Hooks/Models/OptOutStatus.cs +++ b/src/Sinch/Conversation/Hooks/Models/OptOutStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognition.cs b/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognition.cs index 54ee363e..28ce5aa2 100644 --- a/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognition.cs +++ b/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognition.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -14,7 +14,7 @@ public sealed class OpticalCharacterRecognition /// [JsonPropertyName("result")] public List Result { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognitionData.cs b/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognitionData.cs index eb209395..728cb472 100644 --- a/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognitionData.cs +++ b/src/Sinch/Conversation/Hooks/Models/OpticalCharacterRecognitionData.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; @@ -14,7 +14,7 @@ public sealed class OpticalCharacterRecognitionData /// [JsonPropertyName("data")] public List Data { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/Models/PaymentStatus.cs b/src/Sinch/Conversation/Hooks/Models/PaymentStatus.cs index 61cc19d8..7ec2f32b 100644 --- a/src/Sinch/Conversation/Hooks/Models/PaymentStatus.cs +++ b/src/Sinch/Conversation/Hooks/Models/PaymentStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/PaymentStatusUpdateEvent.cs b/src/Sinch/Conversation/Hooks/Models/PaymentStatusUpdateEvent.cs index cc05153d..33e7d9da 100644 --- a/src/Sinch/Conversation/Hooks/Models/PaymentStatusUpdateEvent.cs +++ b/src/Sinch/Conversation/Hooks/Models/PaymentStatusUpdateEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/PaymentTransactionStatus.cs b/src/Sinch/Conversation/Hooks/Models/PaymentTransactionStatus.cs index a520388c..06d2254f 100644 --- a/src/Sinch/Conversation/Hooks/Models/PaymentTransactionStatus.cs +++ b/src/Sinch/Conversation/Hooks/Models/PaymentTransactionStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models @@ -9,7 +9,7 @@ namespace Sinch.Conversation.Hooks.Models [JsonConverter(typeof(EnumRecordJsonConverter))] public record PaymentTransactionStatus(string Value) : EnumRecord(Value) { - + public static readonly PaymentTransactionStatus PaymentStatusTransactionUnknown = new("PAYMENT_STATUS_TRANSACTION_UNKNOWN"); public static readonly PaymentTransactionStatus PaymentStatusTransactionPending = new("PAYMENT_STATUS_TRANSACTION_PENDING"); public static readonly PaymentTransactionStatus PaymentStatusTransactionFailed = new("PAYMENT_STATUS_TRANSACTION_FAILED"); diff --git a/src/Sinch/Conversation/Hooks/Models/Sentiment.cs b/src/Sinch/Conversation/Hooks/Models/Sentiment.cs index 3b2a9dd5..5252fecc 100644 --- a/src/Sinch/Conversation/Hooks/Models/Sentiment.cs +++ b/src/Sinch/Conversation/Hooks/Models/Sentiment.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/SentimentResult.cs b/src/Sinch/Conversation/Hooks/Models/SentimentResult.cs index c87f96e2..63b78cf2 100644 --- a/src/Sinch/Conversation/Hooks/Models/SentimentResult.cs +++ b/src/Sinch/Conversation/Hooks/Models/SentimentResult.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/SmartConversationNotification.cs b/src/Sinch/Conversation/Hooks/Models/SmartConversationNotification.cs index 9c23d97b..103545d6 100644 --- a/src/Sinch/Conversation/Hooks/Models/SmartConversationNotification.cs +++ b/src/Sinch/Conversation/Hooks/Models/SmartConversationNotification.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Conversation.Hooks.Models diff --git a/src/Sinch/Conversation/Hooks/Models/UnsupportedCallback.cs b/src/Sinch/Conversation/Hooks/Models/UnsupportedCallback.cs index b0c853dd..0c52a257 100644 --- a/src/Sinch/Conversation/Hooks/Models/UnsupportedCallback.cs +++ b/src/Sinch/Conversation/Hooks/Models/UnsupportedCallback.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Hooks/OptInEvent.cs b/src/Sinch/Conversation/Hooks/OptInEvent.cs index 802f884e..27671434 100644 --- a/src/Sinch/Conversation/Hooks/OptInEvent.cs +++ b/src/Sinch/Conversation/Hooks/OptInEvent.cs @@ -1,11 +1,11 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; namespace Sinch.Conversation.Hooks { - /// + /// /// This callback is used to deliver opt-in notifications from the channels. /// public sealed class OptInEvent : CallbackEventBase @@ -15,7 +15,7 @@ public sealed class OptInEvent : CallbackEventBase /// [JsonPropertyName("opt_in_notification")] public OptInEventAllOfOptInNotification OptInNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/OptOutEvent.cs b/src/Sinch/Conversation/Hooks/OptOutEvent.cs index 5dbd7fa2..c8e462d9 100644 --- a/src/Sinch/Conversation/Hooks/OptOutEvent.cs +++ b/src/Sinch/Conversation/Hooks/OptOutEvent.cs @@ -15,7 +15,7 @@ public sealed class OptOutEvent : CallbackEventBase /// [JsonPropertyName("opt_out_notification")] public OptOutNotification OptOutNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/SmartConversationsEvent.cs b/src/Sinch/Conversation/Hooks/SmartConversationsEvent.cs index e493c404..1e3ae879 100644 --- a/src/Sinch/Conversation/Hooks/SmartConversationsEvent.cs +++ b/src/Sinch/Conversation/Hooks/SmartConversationsEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; @@ -15,7 +15,7 @@ public sealed class SmartConversationsEvent : CallbackEventBase /// [JsonPropertyName("smart_conversation_notification")] public SmartConversationNotification SmartConversationNotification { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/Hooks/UnsupportedCallbackEvent.cs b/src/Sinch/Conversation/Hooks/UnsupportedCallbackEvent.cs index 86b4ee8b..0055c640 100644 --- a/src/Sinch/Conversation/Hooks/UnsupportedCallbackEvent.cs +++ b/src/Sinch/Conversation/Hooks/UnsupportedCallbackEvent.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Hooks.Models; diff --git a/src/Sinch/Conversation/MessageSource.cs b/src/Sinch/Conversation/MessageSource.cs index d99d11d5..10857e63 100644 --- a/src/Sinch/Conversation/MessageSource.cs +++ b/src/Sinch/Conversation/MessageSource.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation diff --git a/src/Sinch/Conversation/Messages/List/ListMessagesRequest.cs b/src/Sinch/Conversation/Messages/List/ListMessagesRequest.cs index b752121f..e50f77d1 100644 --- a/src/Sinch/Conversation/Messages/List/ListMessagesRequest.cs +++ b/src/Sinch/Conversation/Messages/List/ListMessagesRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Conversation/Messages/List/ListMessagesResponse.cs b/src/Sinch/Conversation/Messages/List/ListMessagesResponse.cs index 2f3ffe94..9bf273fd 100644 --- a/src/Sinch/Conversation/Messages/List/ListMessagesResponse.cs +++ b/src/Sinch/Conversation/Messages/List/ListMessagesResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Sinch.Conversation.Messages.Message; namespace Sinch.Conversation.Messages.List @@ -9,7 +9,7 @@ public class ListMessagesResponse /// List of messages associated to the referenced conversation. /// public IEnumerable Messages { get; set; } - + /// /// Token that should be included in the next request to fetch the next page. /// diff --git a/src/Sinch/Conversation/Messages/Message/AppMessage.cs b/src/Sinch/Conversation/Messages/Message/AppMessage.cs index b56eaa02..2fae2774 100644 --- a/src/Sinch/Conversation/Messages/Message/AppMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/AppMessage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Nodes; using System.Text.Json.Serialization; @@ -106,7 +106,7 @@ public AppMessage(ContactInfoMessage contactInfoMessage) [JsonInclude] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ListMessage ListMessage { get; private set; } - + [JsonInclude] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ContactInfoMessage ContactInfoMessage { get; private set; } diff --git a/src/Sinch/Conversation/Messages/Message/CardHeight.cs b/src/Sinch/Conversation/Messages/Message/CardHeight.cs index 832b66fe..b36986da 100644 --- a/src/Sinch/Conversation/Messages/Message/CardHeight.cs +++ b/src/Sinch/Conversation/Messages/Message/CardHeight.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Messages.Message diff --git a/src/Sinch/Conversation/Messages/Message/CardMessage.cs b/src/Sinch/Conversation/Messages/Message/CardMessage.cs index 44451f38..f37944ed 100644 --- a/src/Sinch/Conversation/Messages/Message/CardMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/CardMessage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; @@ -7,7 +7,7 @@ namespace Sinch.Conversation.Messages.Message /// /// Message containing text, media and choices. /// - public sealed class CardMessage + public sealed class CardMessage { /// /// Gets or Sets Height diff --git a/src/Sinch/Conversation/Messages/Message/CarouselMessage.cs b/src/Sinch/Conversation/Messages/Message/CarouselMessage.cs index ec0489a5..a5897fda 100644 --- a/src/Sinch/Conversation/Messages/Message/CarouselMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/CarouselMessage.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; namespace Sinch.Conversation.Messages.Message diff --git a/src/Sinch/Conversation/Messages/Message/Choice.cs b/src/Sinch/Conversation/Messages/Message/Choice.cs index 801ddbaa..bc9752bc 100644 --- a/src/Sinch/Conversation/Messages/Message/Choice.cs +++ b/src/Sinch/Conversation/Messages/Message/Choice.cs @@ -1,4 +1,4 @@ -namespace Sinch.Conversation.Messages.Message +namespace Sinch.Conversation.Messages.Message { public class Choice { diff --git a/src/Sinch/Conversation/Messages/Message/ChoiceMessage.cs b/src/Sinch/Conversation/Messages/Message/ChoiceMessage.cs index 5def173b..e11a0e3b 100644 --- a/src/Sinch/Conversation/Messages/Message/ChoiceMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/ChoiceMessage.cs @@ -1,10 +1,10 @@ -using System; +using System; using System.Collections.Generic; using System.Text; namespace Sinch.Conversation.Messages.Message { - public class ChoiceMessage + public class ChoiceMessage { /// /// The number of choices is limited to 10. diff --git a/src/Sinch/Conversation/Messages/Message/ChoiceResponseMessage.cs b/src/Sinch/Conversation/Messages/Message/ChoiceResponseMessage.cs index 08d14d5d..164e1f8d 100644 --- a/src/Sinch/Conversation/Messages/Message/ChoiceResponseMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/ChoiceResponseMessage.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { diff --git a/src/Sinch/Conversation/Messages/Message/ContactInfoMessage.cs b/src/Sinch/Conversation/Messages/Message/ContactInfoMessage.cs index 11ac9b91..7af04751 100644 --- a/src/Sinch/Conversation/Messages/Message/ContactInfoMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/ContactInfoMessage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/Conversation/Messages/Message/ContactMessage.cs b/src/Sinch/Conversation/Messages/Message/ContactMessage.cs index 8d17748f..e4a0f305 100644 --- a/src/Sinch/Conversation/Messages/Message/ContactMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/ContactMessage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/Conversation/Messages/Message/ConversationDirection.cs b/src/Sinch/Conversation/Messages/Message/ConversationDirection.cs index c29e17f4..89daaca6 100644 --- a/src/Sinch/Conversation/Messages/Message/ConversationDirection.cs +++ b/src/Sinch/Conversation/Messages/Message/ConversationDirection.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Messages.Message diff --git a/src/Sinch/Conversation/Messages/Message/ConversationMessage.cs b/src/Sinch/Conversation/Messages/Message/ConversationMessage.cs index 2fd0ac46..cba121fc 100644 --- a/src/Sinch/Conversation/Messages/Message/ConversationMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/ConversationMessage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Messages/Message/FallbackMessage.cs b/src/Sinch/Conversation/Messages/Message/FallbackMessage.cs index fb0f9225..a95461f7 100644 --- a/src/Sinch/Conversation/Messages/Message/FallbackMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/FallbackMessage.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { diff --git a/src/Sinch/Conversation/Messages/Message/ListItemChoice.cs b/src/Sinch/Conversation/Messages/Message/ListItemChoice.cs index 9aea1e14..ec00e50f 100644 --- a/src/Sinch/Conversation/Messages/Message/ListItemChoice.cs +++ b/src/Sinch/Conversation/Messages/Message/ListItemChoice.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { diff --git a/src/Sinch/Conversation/Messages/Message/ListItemProduct.cs b/src/Sinch/Conversation/Messages/Message/ListItemProduct.cs index 56a04c06..61fcd97c 100644 --- a/src/Sinch/Conversation/Messages/Message/ListItemProduct.cs +++ b/src/Sinch/Conversation/Messages/Message/ListItemProduct.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { diff --git a/src/Sinch/Conversation/Messages/Message/ListMessage.cs b/src/Sinch/Conversation/Messages/Message/ListMessage.cs index e36bfa01..8808772c 100644 --- a/src/Sinch/Conversation/Messages/Message/ListMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/ListMessage.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Core; @@ -7,7 +7,7 @@ namespace Sinch.Conversation.Messages.Message /// /// A message containing a list of options to choose from /// - public sealed class ListMessage + public sealed class ListMessage { /// /// A title for the message that is displayed near the products or choices. diff --git a/src/Sinch/Conversation/Messages/Message/LocationMessage.cs b/src/Sinch/Conversation/Messages/Message/LocationMessage.cs index 30b9b2aa..60f610b3 100644 --- a/src/Sinch/Conversation/Messages/Message/LocationMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/LocationMessage.cs @@ -1,11 +1,11 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { /// /// Message containing geographic location. /// - public sealed class LocationMessage + public sealed class LocationMessage { /// /// Gets or Sets Coordinates @@ -54,7 +54,7 @@ public override string ToString() /// public record Coordinates(float Latitude, float Longitude) { - /// + /// /// The latitude. /// #if NET7_0_OR_GREATER diff --git a/src/Sinch/Conversation/Messages/Message/MediaMessage.cs b/src/Sinch/Conversation/Messages/Message/MediaMessage.cs index 36eaa65b..eaa24bf0 100644 --- a/src/Sinch/Conversation/Messages/Message/MediaMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/MediaMessage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; namespace Sinch.Conversation.Messages.Message diff --git a/src/Sinch/Conversation/Messages/Message/ReplyTo.cs b/src/Sinch/Conversation/Messages/Message/ReplyTo.cs index eb342591..294d4426 100644 --- a/src/Sinch/Conversation/Messages/Message/ReplyTo.cs +++ b/src/Sinch/Conversation/Messages/Message/ReplyTo.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { diff --git a/src/Sinch/Conversation/Messages/Message/TemplateMessage.cs b/src/Sinch/Conversation/Messages/Message/TemplateMessage.cs index 77dfbc48..fff5bc47 100644 --- a/src/Sinch/Conversation/Messages/Message/TemplateMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/TemplateMessage.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; namespace Sinch.Conversation.Messages.Message @@ -7,7 +7,7 @@ namespace Sinch.Conversation.Messages.Message /// /// TemplateMessage /// - public sealed class TemplateMessage + public sealed class TemplateMessage { /// /// Optional. Channel specific template reference with parameters per channel. diff --git a/src/Sinch/Conversation/Messages/Message/TextMessage.cs b/src/Sinch/Conversation/Messages/Message/TextMessage.cs index 5d994dd5..6d5f9056 100644 --- a/src/Sinch/Conversation/Messages/Message/TextMessage.cs +++ b/src/Sinch/Conversation/Messages/Message/TextMessage.cs @@ -1,11 +1,11 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Messages.Message { /// /// A message containing only text. /// - public sealed class TextMessage + public sealed class TextMessage { /// /// A message containing only text. diff --git a/src/Sinch/Conversation/Messages/MessageQueue.cs b/src/Sinch/Conversation/Messages/MessageQueue.cs index a9856bc2..5663ea6e 100644 --- a/src/Sinch/Conversation/Messages/MessageQueue.cs +++ b/src/Sinch/Conversation/Messages/MessageQueue.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Messages diff --git a/src/Sinch/Conversation/Messages/Messages.cs b/src/Sinch/Conversation/Messages/Messages.cs index efbbe617..fae72f2b 100644 --- a/src/Sinch/Conversation/Messages/Messages.cs +++ b/src/Sinch/Conversation/Messages/Messages.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -96,7 +96,7 @@ public Task Send(SendMessageRequest request, CancellationTo _logger?.LogDebug("Sending a message..."); return _http.Send(uri, HttpMethod.Post, request, cancellationToken: cancellationToken); } - + //TODO: add simplified send text to app of recipient /// diff --git a/src/Sinch/Conversation/Messages/Send/SendMessageRequest.cs b/src/Sinch/Conversation/Messages/Send/SendMessageRequest.cs index 99112513..71afcc4d 100644 --- a/src/Sinch/Conversation/Messages/Send/SendMessageRequest.cs +++ b/src/Sinch/Conversation/Messages/Send/SendMessageRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using Sinch.Conversation.Common; diff --git a/src/Sinch/Conversation/Messages/Send/SendMessageResponse.cs b/src/Sinch/Conversation/Messages/Send/SendMessageResponse.cs index 6369b81b..efb617a1 100644 --- a/src/Sinch/Conversation/Messages/Send/SendMessageResponse.cs +++ b/src/Sinch/Conversation/Messages/Send/SendMessageResponse.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Sinch.Conversation.Messages.Send { @@ -8,11 +8,11 @@ public class SendMessageResponse /// Timestamp when the Conversation API accepted the message for delivery to the referenced contact. /// public DateTime AcceptedTime { get; set; } - + /// /// The ID of the message. /// public string MessageId { get; set; } - + } } diff --git a/src/Sinch/Conversation/ProcessingStrategy.cs b/src/Sinch/Conversation/ProcessingStrategy.cs index f9d5392b..024648d1 100644 --- a/src/Sinch/Conversation/ProcessingStrategy.cs +++ b/src/Sinch/Conversation/ProcessingStrategy.cs @@ -1,9 +1,9 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation { - + [JsonConverter(typeof(EnumRecordJsonConverter))] public record ProcessingStrategy(string Value) : EnumRecord(Value) { diff --git a/src/Sinch/Conversation/SinchConversationClient.cs b/src/Sinch/Conversation/SinchConversationClient.cs index 4a81ea1d..35713a71 100644 --- a/src/Sinch/Conversation/SinchConversationClient.cs +++ b/src/Sinch/Conversation/SinchConversationClient.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Conversation.Apps; using Sinch.Conversation.Capability; using Sinch.Conversation.Contacts; diff --git a/src/Sinch/Conversation/TemplatesV2/ChannelTemplateOverride.cs b/src/Sinch/Conversation/TemplatesV2/ChannelTemplateOverride.cs index 641fd1c8..9ee14212 100644 --- a/src/Sinch/Conversation/TemplatesV2/ChannelTemplateOverride.cs +++ b/src/Sinch/Conversation/TemplatesV2/ChannelTemplateOverride.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Conversation.Messages.Message; @@ -14,14 +14,14 @@ public sealed class ChannelTemplateOverride /// [JsonPropertyName("WHATSAPP")] public OverrideTemplateReference WhatsApp { get; set; } - + /// /// Gets or Sets Kakaotalk /// [JsonPropertyName("KAKAOTALK")] public OverrideTemplateReference KakaoTalk { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs b/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs index 7151e90a..3e068f2a 100644 --- a/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs +++ b/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; diff --git a/src/Sinch/Conversation/TemplatesV2/OverrideTemplateReference.cs b/src/Sinch/Conversation/TemplatesV2/OverrideTemplateReference.cs index 11e24aec..ed04ccf1 100644 --- a/src/Sinch/Conversation/TemplatesV2/OverrideTemplateReference.cs +++ b/src/Sinch/Conversation/TemplatesV2/OverrideTemplateReference.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using Sinch.Conversation.Messages.Message; namespace Sinch.Conversation.TemplatesV2 @@ -9,12 +9,12 @@ public class OverrideTemplateReference /// The referenced template can be an omnichannel template stored in Conversation API Template Store as AppMessage or it can reference external channel-specific template such as WhatsApp Business Template. /// public TemplateReference TemplateReference { get; set; } - + /// /// Gets or Sets ParameterMappings /// public TemplateReferenceParameterMappings ParameterMappings { get; set; } - + /// /// Returns the string presentation of the object /// diff --git a/src/Sinch/Conversation/TemplatesV2/Template.cs b/src/Sinch/Conversation/TemplatesV2/Template.cs index c2d85a19..43a2dfd2 100644 --- a/src/Sinch/Conversation/TemplatesV2/Template.cs +++ b/src/Sinch/Conversation/TemplatesV2/Template.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; diff --git a/src/Sinch/Conversation/TemplatesV2/TemplateReferenceParameterMappings.cs b/src/Sinch/Conversation/TemplatesV2/TemplateReferenceParameterMappings.cs index b5fa6841..4d0182f0 100644 --- a/src/Sinch/Conversation/TemplatesV2/TemplateReferenceParameterMappings.cs +++ b/src/Sinch/Conversation/TemplatesV2/TemplateReferenceParameterMappings.cs @@ -11,7 +11,7 @@ public sealed class TemplateReferenceParameterMappings /// The mapping between the omni-template variable and the channel specific parameter. /// public string Name { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/TemplatesV2/TemplateTranslation.cs b/src/Sinch/Conversation/TemplatesV2/TemplateTranslation.cs index f7a1f0e5..81748d56 100644 --- a/src/Sinch/Conversation/TemplatesV2/TemplateTranslation.cs +++ b/src/Sinch/Conversation/TemplatesV2/TemplateTranslation.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/Conversation/TemplatesV2/TemplatesV2.cs b/src/Sinch/Conversation/TemplatesV2/TemplatesV2.cs index 756a9878..30bab684 100644 --- a/src/Sinch/Conversation/TemplatesV2/TemplatesV2.cs +++ b/src/Sinch/Conversation/TemplatesV2/TemplatesV2.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Threading; diff --git a/src/Sinch/Conversation/TemplatesV2/TypeTemplateVariable.cs b/src/Sinch/Conversation/TemplatesV2/TypeTemplateVariable.cs index c7bf955c..2b9b4bdf 100644 --- a/src/Sinch/Conversation/TemplatesV2/TypeTemplateVariable.cs +++ b/src/Sinch/Conversation/TemplatesV2/TypeTemplateVariable.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.TemplatesV2 { @@ -8,13 +8,13 @@ public class TypeTemplateVariable /// Gets or Sets Key /// public string Key { get; set; } - + /// /// Gets or Sets PreviewValue /// public string PreviewValue { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Conversation/TemplatesV2/UpdateTemplateRequest.cs b/src/Sinch/Conversation/TemplatesV2/UpdateTemplateRequest.cs index 306e95cb..56c5671c 100644 --- a/src/Sinch/Conversation/TemplatesV2/UpdateTemplateRequest.cs +++ b/src/Sinch/Conversation/TemplatesV2/UpdateTemplateRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; diff --git a/src/Sinch/Conversation/Transcoding/TranscodeRequest.cs b/src/Sinch/Conversation/Transcoding/TranscodeRequest.cs index ef067c52..7593f500 100644 --- a/src/Sinch/Conversation/Transcoding/TranscodeRequest.cs +++ b/src/Sinch/Conversation/Transcoding/TranscodeRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Sinch.Conversation.Messages.Message; namespace Sinch.Conversation.Transcoding @@ -13,7 +13,7 @@ public class TranscodeRequest #else public string AppId { get; set; } #endif - + /// /// Message originating from an app /// @@ -22,7 +22,7 @@ public class TranscodeRequest #else public AppMessage AppMessage { get; set; } #endif - + /// /// The list of channels for which the message shall be transcoded to. /// diff --git a/src/Sinch/Conversation/Transcoding/TranscodeResponse.cs b/src/Sinch/Conversation/Transcoding/TranscodeResponse.cs index 049bcbc2..b93270b8 100644 --- a/src/Sinch/Conversation/Transcoding/TranscodeResponse.cs +++ b/src/Sinch/Conversation/Transcoding/TranscodeResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Conversation.Transcoding { diff --git a/src/Sinch/Conversation/Transcoding/Transcoding.cs b/src/Sinch/Conversation/Transcoding/Transcoding.cs index 09d48196..302c2ec8 100644 --- a/src/Sinch/Conversation/Transcoding/Transcoding.cs +++ b/src/Sinch/Conversation/Transcoding/Transcoding.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Sinch/Conversation/Webhooks/ClientCredentials.cs b/src/Sinch/Conversation/Webhooks/ClientCredentials.cs index 392653ac..5cc5398c 100644 --- a/src/Sinch/Conversation/Webhooks/ClientCredentials.cs +++ b/src/Sinch/Conversation/Webhooks/ClientCredentials.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Conversation.Webhooks { diff --git a/src/Sinch/Conversation/Webhooks/Webhook.cs b/src/Sinch/Conversation/Webhooks/Webhook.cs index b57b7c06..3b9e7b00 100644 --- a/src/Sinch/Conversation/Webhooks/Webhook.cs +++ b/src/Sinch/Conversation/Webhooks/Webhook.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Core; diff --git a/src/Sinch/Conversation/Webhooks/WebhookTargetType.cs b/src/Sinch/Conversation/Webhooks/WebhookTargetType.cs index 4aa1abc9..a66aa910 100644 --- a/src/Sinch/Conversation/Webhooks/WebhookTargetType.cs +++ b/src/Sinch/Conversation/Webhooks/WebhookTargetType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Webhooks diff --git a/src/Sinch/Conversation/Webhooks/WebhookTrigger.cs b/src/Sinch/Conversation/Webhooks/WebhookTrigger.cs index 2b116a4e..3aa5e48c 100644 --- a/src/Sinch/Conversation/Webhooks/WebhookTrigger.cs +++ b/src/Sinch/Conversation/Webhooks/WebhookTrigger.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Conversation.Webhooks diff --git a/src/Sinch/Conversation/Webhooks/Webhooks.cs b/src/Sinch/Conversation/Webhooks/Webhooks.cs index e77038c4..b4a6338c 100644 --- a/src/Sinch/Conversation/Webhooks/Webhooks.cs +++ b/src/Sinch/Conversation/Webhooks/Webhooks.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/src/Sinch/Core/EnumRecord.cs b/src/Sinch/Core/EnumRecord.cs index 3709c28b..b47e1556 100644 --- a/src/Sinch/Core/EnumRecord.cs +++ b/src/Sinch/Core/EnumRecord.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Sinch/Core/Extensions.cs b/src/Sinch/Core/Extensions.cs index eec02bd5..27bc3246 100644 --- a/src/Sinch/Core/Extensions.cs +++ b/src/Sinch/Core/Extensions.cs @@ -1,4 +1,4 @@ -using System.Net.Http; +using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; diff --git a/src/Sinch/Core/Http.cs b/src/Sinch/Core/Http.cs index 4a4ea767..edabb90d 100644 --- a/src/Sinch/Core/Http.cs +++ b/src/Sinch/Core/Http.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.Globalization; using System.Linq; diff --git a/src/Sinch/Core/JsonExtensions.cs b/src/Sinch/Core/JsonExtensions.cs index c7bdd8e6..f99ab0ed 100644 --- a/src/Sinch/Core/JsonExtensions.cs +++ b/src/Sinch/Core/JsonExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Buffers; using System.Linq; using System.Reflection; diff --git a/src/Sinch/Core/JsonInterfaceConverter.cs b/src/Sinch/Core/JsonInterfaceConverter.cs index 80d8833b..cfa85a6e 100644 --- a/src/Sinch/Core/JsonInterfaceConverter.cs +++ b/src/Sinch/Core/JsonInterfaceConverter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Sinch/Core/PropertyMaskQuery.cs b/src/Sinch/Core/PropertyMaskQuery.cs index 5191e348..32f78a6c 100644 --- a/src/Sinch/Core/PropertyMaskQuery.cs +++ b/src/Sinch/Core/PropertyMaskQuery.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; namespace Sinch.Core diff --git a/src/Sinch/Core/SnakeCaseNamingPolicy.cs b/src/Sinch/Core/SnakeCaseNamingPolicy.cs index e78f8211..f760480e 100644 --- a/src/Sinch/Core/SnakeCaseNamingPolicy.cs +++ b/src/Sinch/Core/SnakeCaseNamingPolicy.cs @@ -1,4 +1,4 @@ -using System.Text.Json; +using System.Text.Json; namespace Sinch.Core { diff --git a/src/Sinch/Core/StringUtils.cs b/src/Sinch/Core/StringUtils.cs index 6315e911..b250542d 100644 --- a/src/Sinch/Core/StringUtils.cs +++ b/src/Sinch/Core/StringUtils.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/src/Sinch/Core/Utils.cs b/src/Sinch/Core/Utils.cs index f7dc7ee5..b6bc74ec 100644 --- a/src/Sinch/Core/Utils.cs +++ b/src/Sinch/Core/Utils.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Linq; diff --git a/src/Sinch/Logger/LoggerAdapter.cs b/src/Sinch/Logger/LoggerAdapter.cs index d116ca3b..3414d9a0 100644 --- a/src/Sinch/Logger/LoggerAdapter.cs +++ b/src/Sinch/Logger/LoggerAdapter.cs @@ -1,4 +1,4 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.Logging; namespace Sinch.Logger @@ -174,7 +174,7 @@ public void LogWarning(string message, T0 arg0, T1 arg1, T2 arg2) } } -// ReSharper disable once UnusedTypeParameter + // ReSharper disable once UnusedTypeParameter internal interface ILoggerAdapter { void LogInformation(string message); diff --git a/src/Sinch/Logger/LoggerFactory.cs b/src/Sinch/Logger/LoggerFactory.cs index f975e459..c027c7ec 100644 --- a/src/Sinch/Logger/LoggerFactory.cs +++ b/src/Sinch/Logger/LoggerFactory.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; namespace Sinch.Logger { diff --git a/src/Sinch/Numbers/Active.cs b/src/Sinch/Numbers/Active.cs index cb980e19..6b0192c8 100644 --- a/src/Sinch/Numbers/Active.cs +++ b/src/Sinch/Numbers/Active.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/Numbers/Active/ActiveNumber.cs b/src/Sinch/Numbers/Active/ActiveNumber.cs index 607e1371..4296080b 100644 --- a/src/Sinch/Numbers/Active/ActiveNumber.cs +++ b/src/Sinch/Numbers/Active/ActiveNumber.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace Sinch.Numbers.Active diff --git a/src/Sinch/Numbers/Active/List/ListActiveNumbersRequest.cs b/src/Sinch/Numbers/Active/List/ListActiveNumbersRequest.cs index b2530382..e7333bf0 100644 --- a/src/Sinch/Numbers/Active/List/ListActiveNumbersRequest.cs +++ b/src/Sinch/Numbers/Active/List/ListActiveNumbersRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Net; diff --git a/src/Sinch/Numbers/Active/List/ListActiveNumbersResponse.cs b/src/Sinch/Numbers/Active/List/ListActiveNumbersResponse.cs index a84d173b..0a43eece 100644 --- a/src/Sinch/Numbers/Active/List/ListActiveNumbersResponse.cs +++ b/src/Sinch/Numbers/Active/List/ListActiveNumbersResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers.Active.List { diff --git a/src/Sinch/Numbers/Active/OrderBy.cs b/src/Sinch/Numbers/Active/OrderBy.cs index a46fea68..cce29b94 100644 --- a/src/Sinch/Numbers/Active/OrderBy.cs +++ b/src/Sinch/Numbers/Active/OrderBy.cs @@ -1,4 +1,4 @@ -namespace Sinch.Numbers.Active +namespace Sinch.Numbers.Active { /// /// Represents the order by options for sorting. diff --git a/src/Sinch/Numbers/Active/Update/UpdateActiveNumberRequest.cs b/src/Sinch/Numbers/Active/Update/UpdateActiveNumberRequest.cs index d91ca5db..022f6706 100644 --- a/src/Sinch/Numbers/Active/Update/UpdateActiveNumberRequest.cs +++ b/src/Sinch/Numbers/Active/Update/UpdateActiveNumberRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.Numbers.Active.Update +namespace Sinch.Numbers.Active.Update { public sealed class UpdateActiveNumberRequest { diff --git a/src/Sinch/Numbers/Available.cs b/src/Sinch/Numbers/Available.cs index 8b39e137..c3a4bda6 100644 --- a/src/Sinch/Numbers/Available.cs +++ b/src/Sinch/Numbers/Available.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Sinch/Numbers/Available/AvailableNumber.cs b/src/Sinch/Numbers/Available/AvailableNumber.cs index def6d89c..fb723b17 100644 --- a/src/Sinch/Numbers/Available/AvailableNumber.cs +++ b/src/Sinch/Numbers/Available/AvailableNumber.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers.Available { diff --git a/src/Sinch/Numbers/Available/List/ListAvailableNumbersRequest.cs b/src/Sinch/Numbers/Available/List/ListAvailableNumbersRequest.cs index 8e73391a..106a5473 100644 --- a/src/Sinch/Numbers/Available/List/ListAvailableNumbersRequest.cs +++ b/src/Sinch/Numbers/Available/List/ListAvailableNumbersRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Sinch.Core; diff --git a/src/Sinch/Numbers/Available/List/ListAvailableNumbersResponse.cs b/src/Sinch/Numbers/Available/List/ListAvailableNumbersResponse.cs index 2cf3c3cd..4adadaf1 100644 --- a/src/Sinch/Numbers/Available/List/ListAvailableNumbersResponse.cs +++ b/src/Sinch/Numbers/Available/List/ListAvailableNumbersResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers.Available.List { diff --git a/src/Sinch/Numbers/Available/Rent/RentActiveNumberRequest.cs b/src/Sinch/Numbers/Available/Rent/RentActiveNumberRequest.cs index 21b06c2e..00298373 100644 --- a/src/Sinch/Numbers/Available/Rent/RentActiveNumberRequest.cs +++ b/src/Sinch/Numbers/Available/Rent/RentActiveNumberRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.Numbers.Available.Rent +namespace Sinch.Numbers.Available.Rent { public class RentActiveNumberRequest { @@ -9,7 +9,7 @@ public class RentActiveNumberRequest /// processed successfully, the servicePlanId sent will appear directly under the smsConfiguration object. /// public SmsConfiguration SmsConfiguration { get; set; } - + /// /// The current voice configuration for this number. During scheduled provisioning, /// the app ID value may be empty in a response if it is still processing or if it has failed. diff --git a/src/Sinch/Numbers/Available/RentAny/RentAnyNumberRequest.cs b/src/Sinch/Numbers/Available/RentAny/RentAnyNumberRequest.cs index 21c45c51..df5a8ac3 100644 --- a/src/Sinch/Numbers/Available/RentAny/RentAnyNumberRequest.cs +++ b/src/Sinch/Numbers/Available/RentAny/RentAnyNumberRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers.Available.RentAny { @@ -29,7 +29,7 @@ public sealed class RentAnyNumberRequest #else public Types Type { get; set; } #endif - + /// /// Number capabilities to filter by, SMS and/or VOICE /// diff --git a/src/Sinch/Numbers/Hooks/Event.cs b/src/Sinch/Numbers/Hooks/Event.cs index 8535e349..47168a68 100644 --- a/src/Sinch/Numbers/Hooks/Event.cs +++ b/src/Sinch/Numbers/Hooks/Event.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; namespace Sinch.Numbers.Hooks @@ -13,19 +13,19 @@ public class Event /// [JsonPropertyName("eventId")] public string EventId { get; set; } - + /// /// The date and time when the callback was created and added to the callbacks queue. /// [JsonPropertyName("timestamp")] public DateTime Timestamp { get; set; } - + /// /// The ID of the project to which the event belongs. /// [JsonPropertyName("projectId")] public string ProjectId { get; set; } - + /// /// The unique identifier of the resource, depending on the resource type. /// For example, a phone number, a hosting order ID, or a brand ID. @@ -38,19 +38,19 @@ public class Event /// [JsonPropertyName("resourceType")] public ResourceType ResourceType { get; set; } - + /// /// The type of the event. /// [JsonPropertyName("eventType")] public EventType EventType { get; set; } - + /// /// The status of the event /// [JsonPropertyName("status")] public EventStatus Status { get; set; } - + /// /// If the status is FAILED, a failure code will be provided. /// For numbers provisioning to SMS platform, there won't be any extra failureCode, as the result is binary. diff --git a/src/Sinch/Numbers/Hooks/EventStatus.cs b/src/Sinch/Numbers/Hooks/EventStatus.cs index a7f8a242..85bfdc50 100644 --- a/src/Sinch/Numbers/Hooks/EventStatus.cs +++ b/src/Sinch/Numbers/Hooks/EventStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers.Hooks diff --git a/src/Sinch/Numbers/Hooks/EventType.cs b/src/Sinch/Numbers/Hooks/EventType.cs index 13d28bd6..e58e0654 100644 --- a/src/Sinch/Numbers/Hooks/EventType.cs +++ b/src/Sinch/Numbers/Hooks/EventType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers.Hooks diff --git a/src/Sinch/Numbers/Hooks/FailureCode.cs b/src/Sinch/Numbers/Hooks/FailureCode.cs index 1f779897..175cf407 100644 --- a/src/Sinch/Numbers/Hooks/FailureCode.cs +++ b/src/Sinch/Numbers/Hooks/FailureCode.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers.Hooks diff --git a/src/Sinch/Numbers/Hooks/ResourceType.cs b/src/Sinch/Numbers/Hooks/ResourceType.cs index 85302de8..d4cc0170 100644 --- a/src/Sinch/Numbers/Hooks/ResourceType.cs +++ b/src/Sinch/Numbers/Hooks/ResourceType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers.Hooks diff --git a/src/Sinch/Numbers/Money.cs b/src/Sinch/Numbers/Money.cs index 6a899c75..8470b030 100644 --- a/src/Sinch/Numbers/Money.cs +++ b/src/Sinch/Numbers/Money.cs @@ -1,4 +1,4 @@ -namespace Sinch.Numbers +namespace Sinch.Numbers { /// diff --git a/src/Sinch/Numbers/NumberPattern.cs b/src/Sinch/Numbers/NumberPattern.cs index f95ff980..be6b6004 100644 --- a/src/Sinch/Numbers/NumberPattern.cs +++ b/src/Sinch/Numbers/NumberPattern.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers { diff --git a/src/Sinch/Numbers/Numbers.cs b/src/Sinch/Numbers/Numbers.cs index cd8da247..65593710 100644 --- a/src/Sinch/Numbers/Numbers.cs +++ b/src/Sinch/Numbers/Numbers.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Core; using Sinch.Logger; diff --git a/src/Sinch/Numbers/Product.cs b/src/Sinch/Numbers/Product.cs index 784f3185..30d94031 100644 --- a/src/Sinch/Numbers/Product.cs +++ b/src/Sinch/Numbers/Product.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers diff --git a/src/Sinch/Numbers/ProvisioningStatus.cs b/src/Sinch/Numbers/ProvisioningStatus.cs index 306be0ab..386d623e 100644 --- a/src/Sinch/Numbers/ProvisioningStatus.cs +++ b/src/Sinch/Numbers/ProvisioningStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers diff --git a/src/Sinch/Numbers/Regions.cs b/src/Sinch/Numbers/Regions.cs index 06ffac71..b32fd3a1 100644 --- a/src/Sinch/Numbers/Regions.cs +++ b/src/Sinch/Numbers/Regions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/src/Sinch/Numbers/Regions/ListRegionsResponse.cs b/src/Sinch/Numbers/Regions/ListRegionsResponse.cs index db246481..d2f9ea6f 100644 --- a/src/Sinch/Numbers/Regions/ListRegionsResponse.cs +++ b/src/Sinch/Numbers/Regions/ListRegionsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers.Regions { diff --git a/src/Sinch/Numbers/Regions/Region.cs b/src/Sinch/Numbers/Regions/Region.cs index 1f4fac35..4c4a679f 100644 --- a/src/Sinch/Numbers/Regions/Region.cs +++ b/src/Sinch/Numbers/Regions/Region.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.Numbers.Regions { diff --git a/src/Sinch/Numbers/ScheduledProvisioning.cs b/src/Sinch/Numbers/ScheduledProvisioning.cs index 3d3d9ac8..ae5f7405 100644 --- a/src/Sinch/Numbers/ScheduledProvisioning.cs +++ b/src/Sinch/Numbers/ScheduledProvisioning.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace Sinch.Numbers diff --git a/src/Sinch/Numbers/ScheduledVoiceProvisioning.cs b/src/Sinch/Numbers/ScheduledVoiceProvisioning.cs index a633113c..1e690ac6 100644 --- a/src/Sinch/Numbers/ScheduledVoiceProvisioning.cs +++ b/src/Sinch/Numbers/ScheduledVoiceProvisioning.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Sinch.Numbers { @@ -9,7 +9,7 @@ public sealed class ScheduledVoiceProvisioning /// application ID of the scheduled provisioning task. /// public string AppId { get; set; } - + /// /// The provisioning status. It will be either WAITING, IN_PROGRESS or FAILED. /// If the provisioning fails, a reason for the failure will be provided. @@ -19,7 +19,7 @@ public sealed class ScheduledVoiceProvisioning /// and troubleshooting recommendations. /// public ProvisioningStatus Status { get; set; } - + /// /// Timestamp when the status was last updated. /// diff --git a/src/Sinch/Numbers/SmsConfiguration.cs b/src/Sinch/Numbers/SmsConfiguration.cs index 335ba1c7..29a4d0ae 100644 --- a/src/Sinch/Numbers/SmsConfiguration.cs +++ b/src/Sinch/Numbers/SmsConfiguration.cs @@ -1,4 +1,4 @@ -namespace Sinch.Numbers +namespace Sinch.Numbers { /// /// https://developers.sinch.com/docs/numbers/api-reference/numbers/tag/Active-Number/#tag/Active-Number/operation/NumberService_ListActiveNumbers diff --git a/src/Sinch/Numbers/Types.cs b/src/Sinch/Numbers/Types.cs index 1524fda4..bd91efb4 100644 --- a/src/Sinch/Numbers/Types.cs +++ b/src/Sinch/Numbers/Types.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Numbers diff --git a/src/Sinch/Numbers/VoiceConfiguration.cs b/src/Sinch/Numbers/VoiceConfiguration.cs index d90ff597..8e7136d9 100644 --- a/src/Sinch/Numbers/VoiceConfiguration.cs +++ b/src/Sinch/Numbers/VoiceConfiguration.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Sinch.Numbers { diff --git a/src/Sinch/SMS/Batches/Batch.cs b/src/Sinch/SMS/Batches/Batch.cs index 4fab3690..c173ce73 100644 --- a/src/Sinch/SMS/Batches/Batch.cs +++ b/src/Sinch/SMS/Batches/Batch.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; diff --git a/src/Sinch/SMS/Batches/Batches.cs b/src/Sinch/SMS/Batches/Batches.cs index 49df760b..a6209e9c 100644 --- a/src/Sinch/SMS/Batches/Batches.cs +++ b/src/Sinch/SMS/Batches/Batches.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/SMS/Batches/DryRun/DryRunRequest.cs b/src/Sinch/SMS/Batches/DryRun/DryRunRequest.cs index 2b73bdc3..7325155d 100644 --- a/src/Sinch/SMS/Batches/DryRun/DryRunRequest.cs +++ b/src/Sinch/SMS/Batches/DryRun/DryRunRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Sinch.Core; using Sinch.SMS.Batches.Send; @@ -24,7 +24,7 @@ public class DryRunRequest internal string GetQueryString() { var kvp = new List>(); - + if (PerRecipient.HasValue) { kvp.Add(new KeyValuePair("per_recipient", PerRecipient.ToString().ToLowerInvariant())); diff --git a/src/Sinch/SMS/Batches/DryRun/DryRunResponse.cs b/src/Sinch/SMS/Batches/DryRun/DryRunResponse.cs index c86e4a78..99dc7f47 100644 --- a/src/Sinch/SMS/Batches/DryRun/DryRunResponse.cs +++ b/src/Sinch/SMS/Batches/DryRun/DryRunResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Batches.DryRun { @@ -8,12 +8,12 @@ public class DryRunResponse /// The number of recipients in the batch /// public int NumberOfRecipients { get; set; } - + /// /// The total number of SMS message parts to be sent in the batch /// public int NumberOfMessages { get; set; } - + /// /// The recipient, the number of message parts to this recipient, /// the body of the message, and the encoding type of each message diff --git a/src/Sinch/SMS/Batches/List/ListBatchesRequest.cs b/src/Sinch/SMS/Batches/List/ListBatchesRequest.cs index 8357330f..2950a6df 100644 --- a/src/Sinch/SMS/Batches/List/ListBatchesRequest.cs +++ b/src/Sinch/SMS/Batches/List/ListBatchesRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using Sinch.Core; @@ -41,13 +41,13 @@ public sealed class ListBatchesRequest internal string GetQueryString() { var kvp = new List>(); - + if (Page.HasValue) { kvp.Add(new KeyValuePair("page", Page.ToString())); } - - + + if (PageSize.HasValue) { kvp.Add(new KeyValuePair("page_size", PageSize.ToString())); diff --git a/src/Sinch/SMS/Batches/List/ListBatchesResponse.cs b/src/Sinch/SMS/Batches/List/ListBatchesResponse.cs index 8f257cc9..61a56997 100644 --- a/src/Sinch/SMS/Batches/List/ListBatchesResponse.cs +++ b/src/Sinch/SMS/Batches/List/ListBatchesResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Batches.List { diff --git a/src/Sinch/SMS/Batches/Send/BatchBase.cs b/src/Sinch/SMS/Batches/Send/BatchBase.cs index 38a81bb6..dbf9fe92 100644 --- a/src/Sinch/SMS/Batches/Send/BatchBase.cs +++ b/src/Sinch/SMS/Batches/Send/BatchBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; diff --git a/src/Sinch/SMS/Batches/Send/SendBinaryBatchRequest.cs b/src/Sinch/SMS/Batches/Send/SendBinaryBatchRequest.cs index cc603e17..1e598420 100644 --- a/src/Sinch/SMS/Batches/Send/SendBinaryBatchRequest.cs +++ b/src/Sinch/SMS/Batches/Send/SendBinaryBatchRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.SMS.Batches.Send +namespace Sinch.SMS.Batches.Send { public class SendBinaryBatchRequest : BatchBase, ISendBatchRequest { diff --git a/src/Sinch/SMS/Batches/Send/SendMediaBatchRequest.cs b/src/Sinch/SMS/Batches/Send/SendMediaBatchRequest.cs index 9977a3e0..54a922c5 100644 --- a/src/Sinch/SMS/Batches/Send/SendMediaBatchRequest.cs +++ b/src/Sinch/SMS/Batches/Send/SendMediaBatchRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace Sinch.SMS.Batches.Send @@ -28,8 +28,8 @@ public class SendMediaBatchRequest : BatchBase, ISendBatchRequest /// If set to true, your message will be rejected if it doesn't conform to the listed /// recommendations, otherwise no validation will be performed. /// - public bool? StrictValidation { get; set; } - + public bool? StrictValidation { get; set; } + /// /// Contains the parameters that will be used for customizing the message for each recipient.

/// @@ -39,7 +39,7 @@ public class SendMediaBatchRequest : BatchBase, ISendBatchRequest ///
public Dictionary> Parameters { get; set; } } - + public class MediaBody { /// diff --git a/src/Sinch/SMS/Batches/Send/SendTextBatchRequest.cs b/src/Sinch/SMS/Batches/Send/SendTextBatchRequest.cs index 160474ee..fe6d5eb3 100644 --- a/src/Sinch/SMS/Batches/Send/SendTextBatchRequest.cs +++ b/src/Sinch/SMS/Batches/Send/SendTextBatchRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Batches.Send { diff --git a/src/Sinch/SMS/Batches/Update/UpdateBatchBaseRequest.cs b/src/Sinch/SMS/Batches/Update/UpdateBatchBaseRequest.cs index 486b0c0a..0782e2a3 100644 --- a/src/Sinch/SMS/Batches/Update/UpdateBatchBaseRequest.cs +++ b/src/Sinch/SMS/Batches/Update/UpdateBatchBaseRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; diff --git a/src/Sinch/SMS/Batches/Update/UpdateBinaryBatchRequest.cs b/src/Sinch/SMS/Batches/Update/UpdateBinaryBatchRequest.cs index 9863a566..d9c69bf4 100644 --- a/src/Sinch/SMS/Batches/Update/UpdateBinaryBatchRequest.cs +++ b/src/Sinch/SMS/Batches/Update/UpdateBinaryBatchRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.SMS.Batches.Update +namespace Sinch.SMS.Batches.Update { public class UpdateBinaryBatchRequest : UpdateBatchBaseRequest, IUpdateBatchRequest { diff --git a/src/Sinch/SMS/Batches/Update/UpdateMediaBatchRequest.cs b/src/Sinch/SMS/Batches/Update/UpdateMediaBatchRequest.cs index 113107e6..6c82a71f 100644 --- a/src/Sinch/SMS/Batches/Update/UpdateMediaBatchRequest.cs +++ b/src/Sinch/SMS/Batches/Update/UpdateMediaBatchRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Sinch.SMS.Batches.Send; namespace Sinch.SMS.Batches.Update @@ -6,12 +6,12 @@ namespace Sinch.SMS.Batches.Update public class UpdateMediaBatchRequest : UpdateBatchBaseRequest, IUpdateBatchRequest { public override SmsType Type { get; } = SmsType.MtMedia; - + /// /// The message content, including a URL to the media file /// public MediaBody Body { get; set; } - + /// /// Default: false.

/// Whether or not you want the media included in your message to be checked against @@ -20,7 +20,7 @@ public class UpdateMediaBatchRequest : UpdateBatchBaseRequest, IUpdateBatchReque /// recommendations, otherwise no validation will be performed. ///
public bool? StrictValidation { get; set; } - + /// /// Contains the parameters that will be used for customizing the message for each recipient.

/// diff --git a/src/Sinch/SMS/Batches/Update/UpdateTextBatchRequest.cs b/src/Sinch/SMS/Batches/Update/UpdateTextBatchRequest.cs index 82c88509..3493a82c 100644 --- a/src/Sinch/SMS/Batches/Update/UpdateTextBatchRequest.cs +++ b/src/Sinch/SMS/Batches/Update/UpdateTextBatchRequest.cs @@ -1,16 +1,16 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Batches.Update { public class UpdateTextBatchRequest : UpdateBatchBaseRequest, IUpdateBatchRequest { public override SmsType Type { get; } = SmsType.MtText; - + /// /// The message content /// public string Body { get; set; } - + /// /// Contains the parameters that will be used for customizing the message for each recipient.

/// diff --git a/src/Sinch/SMS/DeliveryReport.cs b/src/Sinch/SMS/DeliveryReport.cs index 50a9b7a2..4163de0d 100644 --- a/src/Sinch/SMS/DeliveryReport.cs +++ b/src/Sinch/SMS/DeliveryReport.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.SMS diff --git a/src/Sinch/SMS/DeliveryReports/DeliveryReport.cs b/src/Sinch/SMS/DeliveryReports/DeliveryReport.cs index ae267e89..7e98b669 100644 --- a/src/Sinch/SMS/DeliveryReports/DeliveryReport.cs +++ b/src/Sinch/SMS/DeliveryReports/DeliveryReport.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Sinch.SMS.DeliveryReports { diff --git a/src/Sinch/SMS/DeliveryReports/DeliveryReportStatus.cs b/src/Sinch/SMS/DeliveryReports/DeliveryReportStatus.cs index 57bb74f9..fbdf240a 100644 --- a/src/Sinch/SMS/DeliveryReports/DeliveryReportStatus.cs +++ b/src/Sinch/SMS/DeliveryReports/DeliveryReportStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.SMS.DeliveryReports diff --git a/src/Sinch/SMS/DeliveryReports/DeliveryReportStatusVerbose.cs b/src/Sinch/SMS/DeliveryReports/DeliveryReportStatusVerbose.cs index 21bc3659..d25f3135 100644 --- a/src/Sinch/SMS/DeliveryReports/DeliveryReportStatusVerbose.cs +++ b/src/Sinch/SMS/DeliveryReports/DeliveryReportStatusVerbose.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; namespace Sinch.SMS.DeliveryReports diff --git a/src/Sinch/SMS/DeliveryReports/DeliveryReportType.cs b/src/Sinch/SMS/DeliveryReports/DeliveryReportType.cs index abf55506..daf865e4 100644 --- a/src/Sinch/SMS/DeliveryReports/DeliveryReportType.cs +++ b/src/Sinch/SMS/DeliveryReports/DeliveryReportType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.SMS.DeliveryReports diff --git a/src/Sinch/SMS/DeliveryReports/DeliveryReports.cs b/src/Sinch/SMS/DeliveryReports/DeliveryReports.cs index ecede55b..b7265ba1 100644 --- a/src/Sinch/SMS/DeliveryReports/DeliveryReports.cs +++ b/src/Sinch/SMS/DeliveryReports/DeliveryReports.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportRequest.cs b/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportRequest.cs index 1ced0c89..73dfccdb 100644 --- a/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportRequest.cs +++ b/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Sinch.Core; @@ -34,7 +34,7 @@ internal string GetQueryString() if (DeliveryReportType is not null) { kvp.Add( - new KeyValuePair("type",DeliveryReportType.Value)); + new KeyValuePair("type", DeliveryReportType.Value)); } if (Statuses is not null && Statuses.Count > 0) diff --git a/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportResponse.cs b/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportResponse.cs index ac7ae0cb..27cc3820 100644 --- a/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportResponse.cs +++ b/src/Sinch/SMS/DeliveryReports/Get/GetDeliveryReportResponse.cs @@ -1,10 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.DeliveryReports.Get { public sealed class GetDeliveryReportResponse { -#pragma warning disable CS1570 +#pragma warning disable CS1570 /// /// The type of webhook for the delivery report. @@ -15,7 +15,7 @@ public sealed class GetDeliveryReportResponse /// the difference between the two. /// /// -#pragma warning restore CA2200 +#pragma warning restore CA2200 public DeliveryReportType Type { get; set; } /// diff --git a/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsRequest.cs b/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsRequest.cs index 95136dc9..ea13b4c3 100644 --- a/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsRequest.cs +++ b/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using Sinch.Core; diff --git a/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsResponse.cs b/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsResponse.cs index 7c556b3c..7416958c 100644 --- a/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsResponse.cs +++ b/src/Sinch/SMS/DeliveryReports/List/ListDeliveryReportsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.DeliveryReports.List { diff --git a/src/Sinch/SMS/Groups/AutoUpdateEdit.cs b/src/Sinch/SMS/Groups/AutoUpdateEdit.cs index c33c66f8..98d0c8b5 100644 --- a/src/Sinch/SMS/Groups/AutoUpdateEdit.cs +++ b/src/Sinch/SMS/Groups/AutoUpdateEdit.cs @@ -1,4 +1,4 @@ -namespace Sinch.SMS.Groups +namespace Sinch.SMS.Groups { public class AutoUpdateEdit { diff --git a/src/Sinch/SMS/Groups/Create/Request.c.cs b/src/Sinch/SMS/Groups/Create/Request.c.cs index 6ef6b7d8..d5e58a2d 100644 --- a/src/Sinch/SMS/Groups/Create/Request.c.cs +++ b/src/Sinch/SMS/Groups/Create/Request.c.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Groups.Create { diff --git a/src/Sinch/SMS/Groups/Group.cs b/src/Sinch/SMS/Groups/Group.cs index 483f4715..e1b47632 100644 --- a/src/Sinch/SMS/Groups/Group.cs +++ b/src/Sinch/SMS/Groups/Group.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace Sinch.SMS.Groups diff --git a/src/Sinch/SMS/Groups/Groups.cs b/src/Sinch/SMS/Groups/Groups.cs index 52c15950..0f921e1a 100644 --- a/src/Sinch/SMS/Groups/Groups.cs +++ b/src/Sinch/SMS/Groups/Groups.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/SMS/Groups/List/ListGroupsResponse.cs b/src/Sinch/SMS/Groups/List/ListGroupsResponse.cs index 7e95d09b..d0e268e4 100644 --- a/src/Sinch/SMS/Groups/List/ListGroupsResponse.cs +++ b/src/Sinch/SMS/Groups/List/ListGroupsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Groups.List { diff --git a/src/Sinch/SMS/Groups/List/Request.c.cs b/src/Sinch/SMS/Groups/List/Request.c.cs index 2e3aa681..4b08d55c 100644 --- a/src/Sinch/SMS/Groups/List/Request.c.cs +++ b/src/Sinch/SMS/Groups/List/Request.c.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Sinch.Core; namespace Sinch.SMS.Groups.List @@ -17,7 +17,7 @@ internal string GetQueryString() { kvp.Add(new KeyValuePair("page_size", PageSize.Value.ToString())); } - + return StringUtils.ToQueryString(kvp); } } diff --git a/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs b/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs index 14eafea3..edf9ddb8 100644 --- a/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs +++ b/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using System.Collections.Generic; namespace Sinch.SMS.Groups.Replace @@ -32,7 +32,7 @@ public sealed class ReplaceGroupRequest public string Name { get; set; } } -// Workaround for not working JsonIgnore with required keyword + // Workaround for not working JsonIgnore with required keyword internal sealed class RequestInner { public List Members { get; set; } diff --git a/src/Sinch/SMS/Groups/Update/UpdateGroupRequest.cs b/src/Sinch/SMS/Groups/Update/UpdateGroupRequest.cs index 81c0ae46..efe91509 100644 --- a/src/Sinch/SMS/Groups/Update/UpdateGroupRequest.cs +++ b/src/Sinch/SMS/Groups/Update/UpdateGroupRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; namespace Sinch.SMS.Groups.Update diff --git a/src/Sinch/SMS/Hooks/DeliveryReport.cs b/src/Sinch/SMS/Hooks/DeliveryReport.cs index d04cb404..d0728d84 100644 --- a/src/Sinch/SMS/Hooks/DeliveryReport.cs +++ b/src/Sinch/SMS/Hooks/DeliveryReport.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; using Sinch.SMS.DeliveryReports; @@ -23,13 +23,13 @@ public class DeliveryReport /// [JsonPropertyName("type")] public DeliveryReportType Type { get; set; } - + /// /// The total number of messages in the batch. /// [JsonPropertyName("total_message_count")] public uint TotalMessageCount { get; set; } - + /// /// The client identifier of the batch this delivery report belongs to, if set when submitting batch. /// diff --git a/src/Sinch/SMS/Hooks/IIncomingSms.cs b/src/Sinch/SMS/Hooks/IIncomingSms.cs index 3e51b609..4718db29 100644 --- a/src/Sinch/SMS/Hooks/IIncomingSms.cs +++ b/src/Sinch/SMS/Hooks/IIncomingSms.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.SMS.Hooks diff --git a/src/Sinch/SMS/Hooks/IncomingBinarySms.cs b/src/Sinch/SMS/Hooks/IncomingBinarySms.cs index 586fdc29..e435103b 100644 --- a/src/Sinch/SMS/Hooks/IncomingBinarySms.cs +++ b/src/Sinch/SMS/Hooks/IncomingBinarySms.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.SMS.Hooks { diff --git a/src/Sinch/SMS/Hooks/IncomingTextSms.cs b/src/Sinch/SMS/Hooks/IncomingTextSms.cs index eadd085c..1c75fbed 100644 --- a/src/Sinch/SMS/Hooks/IncomingTextSms.cs +++ b/src/Sinch/SMS/Hooks/IncomingTextSms.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/SMS/Hooks/RecipientDeliveryReport.cs b/src/Sinch/SMS/Hooks/RecipientDeliveryReport.cs index 13ad93b7..31af2374 100644 --- a/src/Sinch/SMS/Hooks/RecipientDeliveryReport.cs +++ b/src/Sinch/SMS/Hooks/RecipientDeliveryReport.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Core; using Sinch.SMS.DeliveryReports; @@ -56,27 +56,27 @@ public sealed class RecipientDeliveryReport ///
[JsonPropertyName("client_reference")] public string ClientReference { get; set; } - + /// /// Applied encoding for message. Present only if smart encoding is enabled. /// [JsonPropertyName("encoding")] public Encoding Encoding { get; set; } - + /// /// The number of parts the message was split into. /// Present only if max_number_of_message_parts parameter was set. /// [JsonPropertyName("number_of_message_parts")] public int? NumberOfMessageParts { get; set; } - + /// /// The operator that was used for delivering the message to this recipient, /// if enabled on the account by Sinch. /// [JsonPropertyName("operator")] public string Operator { get; set; } - + /// /// A timestamp extracted from the Delivery Receipt from the originating SMSC. /// Formatted as ISO-8601: YYYY-MM-DDThh:mm:ss.SSSZ. diff --git a/src/Sinch/SMS/Inbounds/Inbound.cs b/src/Sinch/SMS/Inbounds/Inbound.cs index 35806d41..00751911 100644 --- a/src/Sinch/SMS/Inbounds/Inbound.cs +++ b/src/Sinch/SMS/Inbounds/Inbound.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace Sinch.SMS.Inbounds { diff --git a/src/Sinch/SMS/Inbounds/Inbounds.cs b/src/Sinch/SMS/Inbounds/Inbounds.cs index 0159f213..764221b1 100644 --- a/src/Sinch/SMS/Inbounds/Inbounds.cs +++ b/src/Sinch/SMS/Inbounds/Inbounds.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/Sinch/SMS/Inbounds/List/ListInboundsRequest.cs b/src/Sinch/SMS/Inbounds/List/ListInboundsRequest.cs index cc33457a..8d5a615c 100644 --- a/src/Sinch/SMS/Inbounds/List/ListInboundsRequest.cs +++ b/src/Sinch/SMS/Inbounds/List/ListInboundsRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using Sinch.Core; diff --git a/src/Sinch/SMS/Inbounds/List/ListInboundsResponse.cs b/src/Sinch/SMS/Inbounds/List/ListInboundsResponse.cs index 2c8edcd2..12cb7582 100644 --- a/src/Sinch/SMS/Inbounds/List/ListInboundsResponse.cs +++ b/src/Sinch/SMS/Inbounds/List/ListInboundsResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Sinch.SMS.Inbounds.List { diff --git a/src/Sinch/SMS/Inbounds/SmsType.cs b/src/Sinch/SMS/Inbounds/SmsType.cs index fecec287..55173200 100644 --- a/src/Sinch/SMS/Inbounds/SmsType.cs +++ b/src/Sinch/SMS/Inbounds/SmsType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.SMS.Inbounds diff --git a/src/Sinch/SMS/SmsClient.cs b/src/Sinch/SMS/SmsClient.cs index a7e50a9c..5c78c09d 100644 --- a/src/Sinch/SMS/SmsClient.cs +++ b/src/Sinch/SMS/SmsClient.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Core; using Sinch.Logger; using Sinch.SMS.Batches; @@ -68,7 +68,7 @@ internal SmsClient(ProjectId projectId, Uri baseAddress, LoggerFactory loggerFac projectId.Value, baseAddress, loggerFactory, http) { } - + /// /// Creates an instance of Sms service with service plan id /// diff --git a/src/Sinch/SMS/SmsHostingRegion.cs b/src/Sinch/SMS/SmsHostingRegion.cs index 8df1f3ac..9e65a6dd 100644 --- a/src/Sinch/SMS/SmsHostingRegion.cs +++ b/src/Sinch/SMS/SmsHostingRegion.cs @@ -1,4 +1,4 @@ -namespace Sinch.SMS +namespace Sinch.SMS { /// /// The following regions can be set to be used in SDK as a hosting region. diff --git a/src/Sinch/SMS/SmsServicePlanIdHostingRegion.cs b/src/Sinch/SMS/SmsServicePlanIdHostingRegion.cs index 6ddabce5..eef0925f 100644 --- a/src/Sinch/SMS/SmsServicePlanIdHostingRegion.cs +++ b/src/Sinch/SMS/SmsServicePlanIdHostingRegion.cs @@ -1,4 +1,4 @@ -namespace Sinch.SMS +namespace Sinch.SMS { /// /// The following regions can be set to be used in SDK as a hosting region when using `service_plan_id` option @@ -14,17 +14,17 @@ public record SmsServicePlanIdHostingRegion(string Value) /// Ireland, Sweden /// public static readonly SmsServicePlanIdHostingRegion Eu = new("eu"); - + /// /// Australia /// public static readonly SmsServicePlanIdHostingRegion Au = new("au"); - + /// /// Brazil /// public static readonly SmsServicePlanIdHostingRegion Br = new("br"); - + /// /// Canada /// diff --git a/src/Sinch/SMS/SmsType.cs b/src/Sinch/SMS/SmsType.cs index c954f038..93adf9e6 100644 --- a/src/Sinch/SMS/SmsType.cs +++ b/src/Sinch/SMS/SmsType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.SMS diff --git a/src/Sinch/SinchApiException.cs b/src/Sinch/SinchApiException.cs index 4134c8df..8e8ad22b 100644 --- a/src/Sinch/SinchApiException.cs +++ b/src/Sinch/SinchApiException.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net; using System.Net.Http; using System.Collections.Generic; diff --git a/src/Sinch/SinchClient.cs b/src/Sinch/SinchClient.cs index 84663a35..8ab8c0d1 100644 --- a/src/Sinch/SinchClient.cs +++ b/src/Sinch/SinchClient.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/src/Sinch/SinchOptions.cs b/src/Sinch/SinchOptions.cs index 711986c9..7cefa3a8 100644 --- a/src/Sinch/SinchOptions.cs +++ b/src/Sinch/SinchOptions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using Microsoft.Extensions.Logging; using Sinch.Conversation; diff --git a/src/Sinch/Verification/Common/Identity.cs b/src/Sinch/Verification/Common/Identity.cs index d268abcd..f3a95678 100644 --- a/src/Sinch/Verification/Common/Identity.cs +++ b/src/Sinch/Verification/Common/Identity.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Verification.Common diff --git a/src/Sinch/Verification/Common/PriceDetail.cs b/src/Sinch/Verification/Common/PriceDetail.cs index cab53f5f..bb152fe6 100644 --- a/src/Sinch/Verification/Common/PriceDetail.cs +++ b/src/Sinch/Verification/Common/PriceDetail.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Verification.Common { diff --git a/src/Sinch/Verification/Common/Reason.cs b/src/Sinch/Verification/Common/Reason.cs index d4d5033e..f1ef7669 100644 --- a/src/Sinch/Verification/Common/Reason.cs +++ b/src/Sinch/Verification/Common/Reason.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Verification.Common diff --git a/src/Sinch/Verification/Common/Source.cs b/src/Sinch/Verification/Common/Source.cs index ce94facc..eddeeefc 100644 --- a/src/Sinch/Verification/Common/Source.cs +++ b/src/Sinch/Verification/Common/Source.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Verification.Common diff --git a/src/Sinch/Verification/Common/VerificationMethod.cs b/src/Sinch/Verification/Common/VerificationMethod.cs index e797257a..d971793a 100644 --- a/src/Sinch/Verification/Common/VerificationMethod.cs +++ b/src/Sinch/Verification/Common/VerificationMethod.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Verification.Common @@ -14,7 +14,7 @@ public record VerificationMethod(string Value) : EnumRecord(Value) public static readonly VerificationMethod FlashCall = new("flashCall"); public static readonly VerificationMethod Callout = new("callout"); } - + /// /// The method of the verification request extended. Includes /// diff --git a/src/Sinch/Verification/Common/VerificationStatus.cs b/src/Sinch/Verification/Common/VerificationStatus.cs index 6ebe4f7c..0996ab45 100644 --- a/src/Sinch/Verification/Common/VerificationStatus.cs +++ b/src/Sinch/Verification/Common/VerificationStatus.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Verification.Common diff --git a/src/Sinch/Verification/Hooks/Action.cs b/src/Sinch/Verification/Hooks/Action.cs index 99ff926c..cabc92f5 100644 --- a/src/Sinch/Verification/Hooks/Action.cs +++ b/src/Sinch/Verification/Hooks/Action.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Verification.Hooks diff --git a/src/Sinch/Verification/Hooks/CalloutRequestEventResponse.cs b/src/Sinch/Verification/Hooks/CalloutRequestEventResponse.cs index f7716908..45b08a9e 100644 --- a/src/Sinch/Verification/Hooks/CalloutRequestEventResponse.cs +++ b/src/Sinch/Verification/Hooks/CalloutRequestEventResponse.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Verification.Hooks { @@ -17,7 +17,7 @@ public class Callout /// [JsonPropertyName("code")] public string Code { get; set; } - + /// /// An object defining various properties for the text-to-speech message. /// diff --git a/src/Sinch/Verification/Hooks/FlashCallRequestEventResponse.cs b/src/Sinch/Verification/Hooks/FlashCallRequestEventResponse.cs index d2af6f75..a674dea8 100644 --- a/src/Sinch/Verification/Hooks/FlashCallRequestEventResponse.cs +++ b/src/Sinch/Verification/Hooks/FlashCallRequestEventResponse.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Verification.Hooks { diff --git a/src/Sinch/Verification/Hooks/RequestEventResponseBase.cs b/src/Sinch/Verification/Hooks/RequestEventResponseBase.cs index f63de2bb..545c9f1c 100644 --- a/src/Sinch/Verification/Hooks/RequestEventResponseBase.cs +++ b/src/Sinch/Verification/Hooks/RequestEventResponseBase.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Verification.Hooks { diff --git a/src/Sinch/Verification/Hooks/SmsRequestEventResponse.cs b/src/Sinch/Verification/Hooks/SmsRequestEventResponse.cs index 7835e260..8cbaea25 100644 --- a/src/Sinch/Verification/Hooks/SmsRequestEventResponse.cs +++ b/src/Sinch/Verification/Hooks/SmsRequestEventResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; namespace Sinch.Verification.Hooks diff --git a/src/Sinch/Verification/Hooks/VerificationRequestEvent.cs b/src/Sinch/Verification/Hooks/VerificationRequestEvent.cs index ed546977..bd900383 100644 --- a/src/Sinch/Verification/Hooks/VerificationRequestEvent.cs +++ b/src/Sinch/Verification/Hooks/VerificationRequestEvent.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; using Sinch.Verification.Common; diff --git a/src/Sinch/Verification/Hooks/VerificationResultEvent.cs b/src/Sinch/Verification/Hooks/VerificationResultEvent.cs index 426ff636..4e7379ea 100644 --- a/src/Sinch/Verification/Hooks/VerificationResultEvent.cs +++ b/src/Sinch/Verification/Hooks/VerificationResultEvent.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Verification.Common; namespace Sinch.Verification.Hooks @@ -41,7 +41,7 @@ public class VerificationResultEvent /// [JsonPropertyName("status")] public VerificationStatus Status { get; set; } - + /// /// Displays the reason why a verification has FAILED, was DENIED, or was ABORTED. /// @@ -53,7 +53,7 @@ public class VerificationResultEvent ///
[JsonPropertyName("reference")] public string Reference { get; set; } - + /// /// Free text that the client is sending, used to show if the call/SMS was intercepted or not. /// diff --git a/src/Sinch/Verification/Report/Request/ReportCalloutVerificationRequest.cs b/src/Sinch/Verification/Report/Request/ReportCalloutVerificationRequest.cs index 733b8036..6240a3ce 100644 --- a/src/Sinch/Verification/Report/Request/ReportCalloutVerificationRequest.cs +++ b/src/Sinch/Verification/Report/Request/ReportCalloutVerificationRequest.cs @@ -1,18 +1,18 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Report.Request { public class ReportCalloutVerificationRequest : VerifyReportRequest { public override string Method { get; } = VerificationMethod.Callout.Value; - + /// /// A configuration object containing settings specific to Phone Call verifications. /// #if NET7_0_OR_GREATER public required Callout Callout { get; set; } #else - public Callout Callout { get; set; } + public Callout Callout { get; set; } #endif } diff --git a/src/Sinch/Verification/Report/Request/ReportFlashCallVerificationRequest.cs b/src/Sinch/Verification/Report/Request/ReportFlashCallVerificationRequest.cs index 3b27c0aa..630567ed 100644 --- a/src/Sinch/Verification/Report/Request/ReportFlashCallVerificationRequest.cs +++ b/src/Sinch/Verification/Report/Request/ReportFlashCallVerificationRequest.cs @@ -1,4 +1,4 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Report.Request { @@ -19,14 +19,14 @@ public class ReportFlashCallVerificationRequest : VerifyReportRequest public class FlashCall { - + /// /// The caller ID of the FlashCall. /// #if NET7_0_OR_GREATER public required string Cli { get; set; } #else - public string Cli {get;set;} + public string Cli { get; set; } #endif } } diff --git a/src/Sinch/Verification/Report/Request/ReportSmsVerificationRequest.cs b/src/Sinch/Verification/Report/Request/ReportSmsVerificationRequest.cs index 6311ea0c..6056a35c 100644 --- a/src/Sinch/Verification/Report/Request/ReportSmsVerificationRequest.cs +++ b/src/Sinch/Verification/Report/Request/ReportSmsVerificationRequest.cs @@ -1,11 +1,11 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Report.Request { public class ReportSmsVerificationRequest : VerifyReportRequest { public override string Method { get; } = VerificationMethod.Sms.Value; - + /// /// A configuration object containing settings specific to SMS verifications. /// @@ -20,7 +20,7 @@ public class SmsVerify #if NET7_0_OR_GREATER public required string Code { get; set; } #else - public string Code { get; set; } + public string Code { get; set; } #endif /// /// The sender ID of the SMS. diff --git a/src/Sinch/Verification/Report/Request/VerifyReportRequest.cs b/src/Sinch/Verification/Report/Request/VerifyReportRequest.cs index 180e6afa..f83f7eaf 100644 --- a/src/Sinch/Verification/Report/Request/VerifyReportRequest.cs +++ b/src/Sinch/Verification/Report/Request/VerifyReportRequest.cs @@ -1,4 +1,4 @@ -namespace Sinch.Verification.Report.Request +namespace Sinch.Verification.Report.Request { public abstract class VerifyReportRequest { diff --git a/src/Sinch/Verification/Report/Response/PriceBase.cs b/src/Sinch/Verification/Report/Response/PriceBase.cs index dd7b5b29..eea95823 100644 --- a/src/Sinch/Verification/Report/Response/PriceBase.cs +++ b/src/Sinch/Verification/Report/Response/PriceBase.cs @@ -1,4 +1,4 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Report.Response { diff --git a/src/Sinch/Verification/Report/Response/ReportCalloutVerificationResponse.cs b/src/Sinch/Verification/Report/Response/ReportCalloutVerificationResponse.cs index c55d1d63..711d56fd 100644 --- a/src/Sinch/Verification/Report/Response/ReportCalloutVerificationResponse.cs +++ b/src/Sinch/Verification/Report/Response/ReportCalloutVerificationResponse.cs @@ -1,4 +1,4 @@ -namespace Sinch.Verification.Report.Response +namespace Sinch.Verification.Report.Response { public class ReportCalloutVerificationResponse : VerificationReportResponseBase, IVerificationReportResponse { diff --git a/src/Sinch/Verification/Report/Response/ReportFlashCallVerificationResponse.cs b/src/Sinch/Verification/Report/Response/ReportFlashCallVerificationResponse.cs index 89e5179c..1ab77ef0 100644 --- a/src/Sinch/Verification/Report/Response/ReportFlashCallVerificationResponse.cs +++ b/src/Sinch/Verification/Report/Response/ReportFlashCallVerificationResponse.cs @@ -1,4 +1,4 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Report.Response { diff --git a/src/Sinch/Verification/Report/Response/ReportSmsVerificationResponse.cs b/src/Sinch/Verification/Report/Response/ReportSmsVerificationResponse.cs index 11a31f3a..a1344dbb 100644 --- a/src/Sinch/Verification/Report/Response/ReportSmsVerificationResponse.cs +++ b/src/Sinch/Verification/Report/Response/ReportSmsVerificationResponse.cs @@ -1,4 +1,4 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Report.Response { diff --git a/src/Sinch/Verification/Report/Response/VerificationReportResponseBase.cs b/src/Sinch/Verification/Report/Response/VerificationReportResponseBase.cs index 782553e0..bd8f40b1 100644 --- a/src/Sinch/Verification/Report/Response/VerificationReportResponseBase.cs +++ b/src/Sinch/Verification/Report/Response/VerificationReportResponseBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Sinch/Verification/SinchVerification.cs b/src/Sinch/Verification/SinchVerification.cs index 841abc15..e47eb686 100644 --- a/src/Sinch/Verification/SinchVerification.cs +++ b/src/Sinch/Verification/SinchVerification.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Sinch/Verification/SinchVerificationClient.cs b/src/Sinch/Verification/SinchVerificationClient.cs index e126aa9f..8b778664 100644 --- a/src/Sinch/Verification/SinchVerificationClient.cs +++ b/src/Sinch/Verification/SinchVerificationClient.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Core; using Sinch.Logger; diff --git a/src/Sinch/Verification/SinchVerificationStatus.cs b/src/Sinch/Verification/SinchVerificationStatus.cs index 1c7b832c..268329cd 100644 --- a/src/Sinch/Verification/SinchVerificationStatus.cs +++ b/src/Sinch/Verification/SinchVerificationStatus.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Sinch/Verification/Start/Request/StartCalloutVerificationRequest.cs b/src/Sinch/Verification/Start/Request/StartCalloutVerificationRequest.cs index 0a0f079a..79be758e 100644 --- a/src/Sinch/Verification/Start/Request/StartCalloutVerificationRequest.cs +++ b/src/Sinch/Verification/Start/Request/StartCalloutVerificationRequest.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Verification.Common; namespace Sinch.Verification.Start.Request diff --git a/src/Sinch/Verification/Start/Request/StartDataVerificationRequest.cs b/src/Sinch/Verification/Start/Request/StartDataVerificationRequest.cs index a4ea8576..fc979026 100644 --- a/src/Sinch/Verification/Start/Request/StartDataVerificationRequest.cs +++ b/src/Sinch/Verification/Start/Request/StartDataVerificationRequest.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Verification.Common; namespace Sinch.Verification.Start.Request diff --git a/src/Sinch/Verification/Start/Request/StartFlashCallVerificationRequest.cs b/src/Sinch/Verification/Start/Request/StartFlashCallVerificationRequest.cs index b757c065..d4234e0c 100644 --- a/src/Sinch/Verification/Start/Request/StartFlashCallVerificationRequest.cs +++ b/src/Sinch/Verification/Start/Request/StartFlashCallVerificationRequest.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Verification.Common; namespace Sinch.Verification.Start.Request @@ -10,7 +10,7 @@ public class StartFlashCallVerificationRequest : StartVerificationRequestBase /// [JsonInclude] public override VerificationMethodEx Method { get; } = VerificationMethodEx.FlashCall; - + /// /// An optional object for flashCall verifications. /// It allows you to specify dial time out parameter for flashCall. diff --git a/src/Sinch/Verification/Start/Request/StartSmsVerificationRequest.cs b/src/Sinch/Verification/Start/Request/StartSmsVerificationRequest.cs index 630fee28..12dbcb09 100644 --- a/src/Sinch/Verification/Start/Request/StartSmsVerificationRequest.cs +++ b/src/Sinch/Verification/Start/Request/StartSmsVerificationRequest.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Verification.Common; namespace Sinch.Verification.Start.Request diff --git a/src/Sinch/Verification/Start/Request/StartVerificationRequest.cs b/src/Sinch/Verification/Start/Request/StartVerificationRequest.cs index 2b27b5d4..354cc603 100644 --- a/src/Sinch/Verification/Start/Request/StartVerificationRequest.cs +++ b/src/Sinch/Verification/Start/Request/StartVerificationRequest.cs @@ -1,4 +1,4 @@ -using Sinch.Verification.Common; +using Sinch.Verification.Common; namespace Sinch.Verification.Start.Request { @@ -9,22 +9,22 @@ public class StartVerificationRequest /// `number` is currently the only supported endpoint type. /// public Identity Identity { get; set; } - + /// /// The type of the verification request. /// public VerificationMethodEx Method { get; set; } - + /// /// Used to pass your own reference in the request for tracking purposes. /// public string Reference { get; set; } - + /// /// Can be used to pass custom data in the request. /// public string Custom { get; set; } - + /// /// An optional object for flashCall verifications. /// It allows you to specify dial time out parameter for flashCall. diff --git a/src/Sinch/Verification/Start/Request/StartVerificationRequestBase.cs b/src/Sinch/Verification/Start/Request/StartVerificationRequestBase.cs index e2860eb1..00b4236c 100644 --- a/src/Sinch/Verification/Start/Request/StartVerificationRequestBase.cs +++ b/src/Sinch/Verification/Start/Request/StartVerificationRequestBase.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Verification.Common; namespace Sinch.Verification.Start.Request diff --git a/src/Sinch/Verification/Start/Response/Links.cs b/src/Sinch/Verification/Start/Response/Links.cs index 70c16ca0..04a8b98b 100644 --- a/src/Sinch/Verification/Start/Response/Links.cs +++ b/src/Sinch/Verification/Start/Response/Links.cs @@ -1,4 +1,4 @@ -namespace Sinch.Verification.Start.Response +namespace Sinch.Verification.Start.Response { public class Links { @@ -6,13 +6,13 @@ public class Links /// The related action that can be performed on the initiated Verification. /// public string Rel { get; set; } - + /// /// The complete URL to perform the specified action, /// localized to the DataCenter which handled the original Verification request. /// public string Href { get; set; } - + /// /// The HTTP method to use when performing the action using the linked localized URL. /// diff --git a/src/Sinch/Verification/Start/Response/StartCalloutVerificationResponse.cs b/src/Sinch/Verification/Start/Response/StartCalloutVerificationResponse.cs index 072f1053..abe07f77 100644 --- a/src/Sinch/Verification/Start/Response/StartCalloutVerificationResponse.cs +++ b/src/Sinch/Verification/Start/Response/StartCalloutVerificationResponse.cs @@ -1,7 +1,7 @@ -namespace Sinch.Verification.Start.Response +namespace Sinch.Verification.Start.Response { public class StartCalloutVerificationResponse : VerificationStartResponseBase, IStartVerificationResponse { - + } } diff --git a/src/Sinch/Verification/Start/Response/StartDataVerificationResponse.cs b/src/Sinch/Verification/Start/Response/StartDataVerificationResponse.cs index f028a988..9c8d32d7 100644 --- a/src/Sinch/Verification/Start/Response/StartDataVerificationResponse.cs +++ b/src/Sinch/Verification/Start/Response/StartDataVerificationResponse.cs @@ -1,4 +1,4 @@ -namespace Sinch.Verification.Start.Response +namespace Sinch.Verification.Start.Response { public class StartDataVerificationResponse : VerificationStartResponseBase, IStartVerificationResponse { diff --git a/src/Sinch/Verification/Start/Response/StartFlashCallVerificationResponse.cs b/src/Sinch/Verification/Start/Response/StartFlashCallVerificationResponse.cs index 7ad259d7..3fccee0f 100644 --- a/src/Sinch/Verification/Start/Response/StartFlashCallVerificationResponse.cs +++ b/src/Sinch/Verification/Start/Response/StartFlashCallVerificationResponse.cs @@ -1,4 +1,4 @@ -namespace Sinch.Verification.Start.Response +namespace Sinch.Verification.Start.Response { public class StartFlashCallVerificationResponse : VerificationStartResponseBase, IStartVerificationResponse { @@ -16,23 +16,23 @@ public class FlashCallDetails #if NET7_0_OR_GREATER public required string CliFilter { get; set; } #else - public string CliFilter { get; set; } + public string CliFilter { get; set; } #endif - + /// /// Amount of seconds client should wait for the Flashcall. /// #if NET7_0_OR_GREATER public required int InterceptionTimeout { get; set; } #else - public int InterceptionTimeout { get; set; } + public int InterceptionTimeout { get; set; } #endif - + /// /// The time in seconds allowed for reporting the code after which the verification will expire. /// public int? ReportTimeout { get; set; } - + /// /// Used by the SDKs, this setting makes the handset deny the flashcall after the set time in seconds. /// diff --git a/src/Sinch/Verification/Start/Response/StartSmsVerificationResponse.cs b/src/Sinch/Verification/Start/Response/StartSmsVerificationResponse.cs index 228166b6..739f9cfd 100644 --- a/src/Sinch/Verification/Start/Response/StartSmsVerificationResponse.cs +++ b/src/Sinch/Verification/Start/Response/StartSmsVerificationResponse.cs @@ -1,4 +1,4 @@ -namespace Sinch.Verification.Start.Response +namespace Sinch.Verification.Start.Response { public class StartSmsVerificationResponse : VerificationStartResponseBase, IStartVerificationResponse { @@ -7,7 +7,7 @@ public class StartSmsVerificationResponse : VerificationStartResponseBase, IStar ///
public SmsInfo Sms { get; set; } } - + /// /// The response contains the template of the SMS to be expected and intercepted. /// @@ -17,7 +17,7 @@ public class SmsInfo /// The expected template for the SMS response. ///
public string Template { get; set; } - + /// /// The amount of time in seconds that the client should wait for the SMS. /// diff --git a/src/Sinch/Verification/Start/Response/VerificationStartResponseBase.cs b/src/Sinch/Verification/Start/Response/VerificationStartResponseBase.cs index 80ff1fca..5db6fcd1 100644 --- a/src/Sinch/Verification/Start/Response/VerificationStartResponseBase.cs +++ b/src/Sinch/Verification/Start/Response/VerificationStartResponseBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; diff --git a/src/Sinch/Voice/Applications/Applications.cs b/src/Sinch/Voice/Applications/Applications.cs index 54a40e53..bc6a9334 100644 --- a/src/Sinch/Voice/Applications/Applications.cs +++ b/src/Sinch/Voice/Applications/Applications.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -125,9 +125,9 @@ public Task UpdateCallbackUrls(UpdateCallbackUrlsRequest request, var uri = new Uri(_baseAddress, $"v1/configuration/callbacks/applications/{request.ApplicationKey}"); _logger?.LogDebug("Updating callback urls..."); return _http.Send(uri, HttpMethod.Post, new - { - url = request.Url - }, + { + url = request.Url + }, cancellationToken); } diff --git a/src/Sinch/Voice/Applications/CallbackUrls.cs b/src/Sinch/Voice/Applications/CallbackUrls.cs index 872d0ecb..e25325c1 100644 --- a/src/Sinch/Voice/Applications/CallbackUrls.cs +++ b/src/Sinch/Voice/Applications/CallbackUrls.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Voice.Applications { diff --git a/src/Sinch/Voice/Applications/GetNumbers/GetNumbersResponse.cs b/src/Sinch/Voice/Applications/GetNumbers/GetNumbersResponse.cs index 2ef3fbc0..c505e665 100644 --- a/src/Sinch/Voice/Applications/GetNumbers/GetNumbersResponse.cs +++ b/src/Sinch/Voice/Applications/GetNumbers/GetNumbersResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Voice/Applications/QueryNumber/NumberItem.cs b/src/Sinch/Voice/Applications/QueryNumber/NumberItem.cs index 6415ecd7..4c483ad3 100644 --- a/src/Sinch/Voice/Applications/QueryNumber/NumberItem.cs +++ b/src/Sinch/Voice/Applications/QueryNumber/NumberItem.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Voice.Applications.QueryNumber { diff --git a/src/Sinch/Voice/Applications/QueryNumber/NumberType.cs b/src/Sinch/Voice/Applications/QueryNumber/NumberType.cs index a0447b2a..51a1e725 100644 --- a/src/Sinch/Voice/Applications/QueryNumber/NumberType.cs +++ b/src/Sinch/Voice/Applications/QueryNumber/NumberType.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Voice.Applications.QueryNumber diff --git a/src/Sinch/Voice/Applications/QueryNumber/QueryNumberResponse.cs b/src/Sinch/Voice/Applications/QueryNumber/QueryNumberResponse.cs index f8fbd404..5b6de63f 100644 --- a/src/Sinch/Voice/Applications/QueryNumber/QueryNumberResponse.cs +++ b/src/Sinch/Voice/Applications/QueryNumber/QueryNumberResponse.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Voice.Applications.QueryNumber { diff --git a/src/Sinch/Voice/Applications/UnassignNumbers/UnassignNumberRequest.cs b/src/Sinch/Voice/Applications/UnassignNumbers/UnassignNumberRequest.cs index 1a694d2c..7a7291e0 100644 --- a/src/Sinch/Voice/Applications/UnassignNumbers/UnassignNumberRequest.cs +++ b/src/Sinch/Voice/Applications/UnassignNumbers/UnassignNumberRequest.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; using Sinch.Voice.Applications.GetNumbers; diff --git a/src/Sinch/Voice/Applications/UpdateCallbackUrls/UpdateCallbackUrlsRequest.cs b/src/Sinch/Voice/Applications/UpdateCallbackUrls/UpdateCallbackUrlsRequest.cs index 30a3b84e..947a3f74 100644 --- a/src/Sinch/Voice/Applications/UpdateCallbackUrls/UpdateCallbackUrlsRequest.cs +++ b/src/Sinch/Voice/Applications/UpdateCallbackUrls/UpdateCallbackUrlsRequest.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Voice.Applications.UpdateCallbackUrls { diff --git a/src/Sinch/Voice/Applications/UpdateNumbers/AssignNumbersRequest.cs b/src/Sinch/Voice/Applications/UpdateNumbers/AssignNumbersRequest.cs index ca388d12..032b9392 100644 --- a/src/Sinch/Voice/Applications/UpdateNumbers/AssignNumbersRequest.cs +++ b/src/Sinch/Voice/Applications/UpdateNumbers/AssignNumbersRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Voice.Applications.GetNumbers; diff --git a/src/Sinch/Voice/CallingRegion.cs b/src/Sinch/Voice/CallingRegion.cs index be3c70e3..51c7d3a6 100644 --- a/src/Sinch/Voice/CallingRegion.cs +++ b/src/Sinch/Voice/CallingRegion.cs @@ -1,4 +1,4 @@ -using Sinch.Core; +using Sinch.Core; namespace Sinch.Voice { diff --git a/src/Sinch/Voice/Callouts/Callout.cs b/src/Sinch/Voice/Callouts/Callout.cs index 6394af89..9faea314 100644 --- a/src/Sinch/Voice/Callouts/Callout.cs +++ b/src/Sinch/Voice/Callouts/Callout.cs @@ -64,10 +64,10 @@ public Task Tts(TtsCalloutRequest request, CancellationToken ca var uri = new Uri(_baseAddress, "calling/v1/callouts"); _logger?.LogDebug("Making Tts callout request..."); return _http.Send(uri, HttpMethod.Post, new - { - method = CalloutType.Tts.Value, - ttsCallout = request - }, + { + method = CalloutType.Tts.Value, + ttsCallout = request + }, cancellationToken); } @@ -78,10 +78,10 @@ public Task Conference(ConferenceCalloutRequest request, var uri = new Uri(_baseAddress, "calling/v1/callouts"); _logger?.LogDebug("Making Conference callout request..."); return _http.Send(uri, HttpMethod.Post, new - { - method = CalloutType.Conference.Value, - conferenceCallout = request - }, + { + method = CalloutType.Conference.Value, + conferenceCallout = request + }, cancellationToken); } @@ -91,10 +91,10 @@ public Task Custom(CustomCalloutRequest request, CancellationTo var uri = new Uri(_baseAddress, "calling/v1/callouts"); _logger?.LogDebug("Making Custom callout request..."); return _http.Send(uri, HttpMethod.Post, new - { - method = CalloutType.Custom.Value, - customCallout = request - }, + { + method = CalloutType.Custom.Value, + customCallout = request + }, cancellationToken); } } diff --git a/src/Sinch/Voice/Callouts/Callout/CalloutType.cs b/src/Sinch/Voice/Callouts/Callout/CalloutType.cs index 808e9191..56a25e2e 100644 --- a/src/Sinch/Voice/Callouts/Callout/CalloutType.cs +++ b/src/Sinch/Voice/Callouts/Callout/CalloutType.cs @@ -1,4 +1,4 @@ -using Sinch.Core; +using Sinch.Core; namespace Sinch.Voice.Callouts.Callout { diff --git a/src/Sinch/Voice/Callouts/Callout/ConferenceCalloutRequest.cs b/src/Sinch/Voice/Callouts/Callout/ConferenceCalloutRequest.cs index 7dff46e0..7a13f172 100644 --- a/src/Sinch/Voice/Callouts/Callout/ConferenceCalloutRequest.cs +++ b/src/Sinch/Voice/Callouts/Callout/ConferenceCalloutRequest.cs @@ -37,8 +37,8 @@ public class ConferenceCalloutRequest /// instance require a conference PIN code or an extension to be entered. ///
public string Dtmf { get; set; } - - // TODO: add description when updated in docs: https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts/#tag/Callouts/operation/Callouts!path=conferenceCallout/maxDuration&t=request + + // TODO: add description when updated in docs: https://developers.sinch.com/docs/voice/api-reference/voice/tag/Callouts/#tag/Callouts/operation/Callouts!path=conferenceCallout/maxDuration&t=request public int? MaxDuration { get; set; } /// diff --git a/src/Sinch/Voice/Callouts/Callout/CustomCalloutRequest.cs b/src/Sinch/Voice/Callouts/Callout/CustomCalloutRequest.cs index d91a0990..c7042942 100644 --- a/src/Sinch/Voice/Callouts/Callout/CustomCalloutRequest.cs +++ b/src/Sinch/Voice/Callouts/Callout/CustomCalloutRequest.cs @@ -15,7 +15,7 @@ public class CustomCalloutRequest /// The type of device and number or endpoint to call. /// public Destination Destination { get; set; } - + /// /// When the destination picks up, this DTMF tones will be played to the callee. /// Valid characters in the string are "0"-"9", "#", and "w". A "w" will render a 500 ms pause. @@ -29,12 +29,12 @@ public class CustomCalloutRequest /// Can be used to input custom data. /// public string Custom { get; set; } - + /// /// The maximum amount of time in seconds that the call will last. /// public int? MaxDuration { get; set; } - + /// /// You can use inline SVAML /// to replace a callback URL when using custom callouts. @@ -51,7 +51,7 @@ public class CustomCalloutRequest /// Ensure that the JSON object is escaped correctly. /// public string Ace { get; set; } - + /// /// Note: PIE callbacks are not available for DATA Calls; only PSTN and SIP calls.

/// You can use inline SVAML diff --git a/src/Sinch/Voice/Calls/Actions/CallHeader.cs b/src/Sinch/Voice/Calls/Actions/CallHeader.cs index 9069c4a9..9231af9f 100644 --- a/src/Sinch/Voice/Calls/Actions/CallHeader.cs +++ b/src/Sinch/Voice/Calls/Actions/CallHeader.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Actions diff --git a/src/Sinch/Voice/Calls/Actions/ConnectConf.cs b/src/Sinch/Voice/Calls/Actions/ConnectConf.cs index 1a3190d6..46179fcb 100644 --- a/src/Sinch/Voice/Calls/Actions/ConnectConf.cs +++ b/src/Sinch/Voice/Calls/Actions/ConnectConf.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Actions diff --git a/src/Sinch/Voice/Calls/Actions/ConnectMxp.cs b/src/Sinch/Voice/Calls/Actions/ConnectMxp.cs index 064533de..0bbdbf07 100644 --- a/src/Sinch/Voice/Calls/Actions/ConnectMxp.cs +++ b/src/Sinch/Voice/Calls/Actions/ConnectMxp.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Voice/Calls/Actions/ConnectPstn.cs b/src/Sinch/Voice/Calls/Actions/ConnectPstn.cs index 47d616f2..91571234 100644 --- a/src/Sinch/Voice/Calls/Actions/ConnectPstn.cs +++ b/src/Sinch/Voice/Calls/Actions/ConnectPstn.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Actions @@ -110,8 +110,8 @@ public override string ToString() return sb.ToString(); } } - - + + public class Amd { /// diff --git a/src/Sinch/Voice/Calls/Actions/ConnectSip.cs b/src/Sinch/Voice/Calls/Actions/ConnectSip.cs index 16d7b72b..f2496e0d 100644 --- a/src/Sinch/Voice/Calls/Actions/ConnectSip.cs +++ b/src/Sinch/Voice/Calls/Actions/ConnectSip.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Voice/Calls/Actions/Continue.cs b/src/Sinch/Voice/Calls/Actions/Continue.cs index e4039557..97b4dae6 100644 --- a/src/Sinch/Voice/Calls/Actions/Continue.cs +++ b/src/Sinch/Voice/Calls/Actions/Continue.cs @@ -1,4 +1,4 @@ -namespace Sinch.Voice.Calls.Actions +namespace Sinch.Voice.Calls.Actions { /// /// Continues to set up a call. diff --git a/src/Sinch/Voice/Calls/Actions/Hangup.cs b/src/Sinch/Voice/Calls/Actions/Hangup.cs index f135ec12..95e84c02 100644 --- a/src/Sinch/Voice/Calls/Actions/Hangup.cs +++ b/src/Sinch/Voice/Calls/Actions/Hangup.cs @@ -1,4 +1,4 @@ -namespace Sinch.Voice.Calls.Actions +namespace Sinch.Voice.Calls.Actions { /// /// Hangs up a call. diff --git a/src/Sinch/Voice/Calls/Actions/IAction.cs b/src/Sinch/Voice/Calls/Actions/IAction.cs index 51f5af6e..f16cf077 100644 --- a/src/Sinch/Voice/Calls/Actions/IAction.cs +++ b/src/Sinch/Voice/Calls/Actions/IAction.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Actions { diff --git a/src/Sinch/Voice/Calls/Actions/Park.cs b/src/Sinch/Voice/Calls/Actions/Park.cs index 548b4640..6852ba13 100644 --- a/src/Sinch/Voice/Calls/Actions/Park.cs +++ b/src/Sinch/Voice/Calls/Actions/Park.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Actions diff --git a/src/Sinch/Voice/Calls/Actions/RunMenu.cs b/src/Sinch/Voice/Calls/Actions/RunMenu.cs index 29cc6dfe..efef675a 100644 --- a/src/Sinch/Voice/Calls/Actions/RunMenu.cs +++ b/src/Sinch/Voice/Calls/Actions/RunMenu.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Voice/Calls/Call.cs b/src/Sinch/Voice/Calls/Call.cs index b943388a..34374c0d 100644 --- a/src/Sinch/Voice/Calls/Call.cs +++ b/src/Sinch/Voice/Calls/Call.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Text.Json.Serialization; using Sinch.Core; diff --git a/src/Sinch/Voice/Calls/CallLeg.cs b/src/Sinch/Voice/Calls/CallLeg.cs index 421529cc..acff5df6 100644 --- a/src/Sinch/Voice/Calls/CallLeg.cs +++ b/src/Sinch/Voice/Calls/CallLeg.cs @@ -1,4 +1,4 @@ -using Sinch.Core; +using Sinch.Core; namespace Sinch.Voice.Calls { diff --git a/src/Sinch/Voice/Calls/Calls.cs b/src/Sinch/Voice/Calls/Calls.cs index 97ae59ad..7f8c3c86 100644 --- a/src/Sinch/Voice/Calls/Calls.cs +++ b/src/Sinch/Voice/Calls/Calls.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -75,10 +75,10 @@ public Task Update(UpdateCallRequest request, CancellationToken cancellationToke var uri = new Uri(_baseAddress, $"calling/v1/calls/id/{request.CallId}"); _logger?.LogDebug("Updating a call with {id}", request.CallId); return _http.Send(uri, HttpMethod.Patch, new - { - instructions = request.Instructions, - action = request.Action - }, + { + instructions = request.Instructions, + action = request.Action + }, cancellationToken: cancellationToken); } diff --git a/src/Sinch/Voice/Calls/Instructions/Answer.cs b/src/Sinch/Voice/Calls/Instructions/Answer.cs index fdb0c7c4..ecf7282c 100644 --- a/src/Sinch/Voice/Calls/Instructions/Answer.cs +++ b/src/Sinch/Voice/Calls/Instructions/Answer.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace Sinch.Voice.Calls.Instructions { @@ -8,7 +8,7 @@ namespace Sinch.Voice.Calls.Instructions public class Answer : IInstruction { public string Name { get; } = "answer"; - + /// /// Returns the string presentation of the object /// diff --git a/src/Sinch/Voice/Calls/Instructions/IInstruction.cs b/src/Sinch/Voice/Calls/Instructions/IInstruction.cs index 72bd6eba..2699c511 100644 --- a/src/Sinch/Voice/Calls/Instructions/IInstruction.cs +++ b/src/Sinch/Voice/Calls/Instructions/IInstruction.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Instructions { diff --git a/src/Sinch/Voice/Calls/Instructions/PlayFiles.cs b/src/Sinch/Voice/Calls/Instructions/PlayFiles.cs index 8b80f094..1f1dd8e7 100644 --- a/src/Sinch/Voice/Calls/Instructions/PlayFiles.cs +++ b/src/Sinch/Voice/Calls/Instructions/PlayFiles.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/Voice/Calls/Instructions/Say.cs b/src/Sinch/Voice/Calls/Instructions/Say.cs index 353a8884..6bda28e5 100644 --- a/src/Sinch/Voice/Calls/Instructions/Say.cs +++ b/src/Sinch/Voice/Calls/Instructions/Say.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Instructions @@ -10,7 +10,7 @@ public sealed class Say : IInstruction { [JsonPropertyName("name")] public string Name { get; } = "say"; - + /// /// Contains the message that will be spoken. Default maximum length is 600 characters. To change this limit, please /// contact support. diff --git a/src/Sinch/Voice/Calls/Instructions/SendDtmf.cs b/src/Sinch/Voice/Calls/Instructions/SendDtmf.cs index 45f13035..dd2f3fec 100644 --- a/src/Sinch/Voice/Calls/Instructions/SendDtmf.cs +++ b/src/Sinch/Voice/Calls/Instructions/SendDtmf.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Instructions diff --git a/src/Sinch/Voice/Calls/Instructions/SetCookie.cs b/src/Sinch/Voice/Calls/Instructions/SetCookie.cs index 8d124caa..6eea3133 100644 --- a/src/Sinch/Voice/Calls/Instructions/SetCookie.cs +++ b/src/Sinch/Voice/Calls/Instructions/SetCookie.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Instructions diff --git a/src/Sinch/Voice/Calls/Instructions/StartRecording.cs b/src/Sinch/Voice/Calls/Instructions/StartRecording.cs index 2898fe0c..6e3342ad 100644 --- a/src/Sinch/Voice/Calls/Instructions/StartRecording.cs +++ b/src/Sinch/Voice/Calls/Instructions/StartRecording.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Voice.Calls.Instructions { diff --git a/src/Sinch/Voice/Calls/Instructions/StopRecording.cs b/src/Sinch/Voice/Calls/Instructions/StopRecording.cs index d7ee3642..89927dff 100644 --- a/src/Sinch/Voice/Calls/Instructions/StopRecording.cs +++ b/src/Sinch/Voice/Calls/Instructions/StopRecording.cs @@ -1,4 +1,4 @@ -namespace Sinch.Voice.Calls.Instructions +namespace Sinch.Voice.Calls.Instructions { /// /// Stops the recording of the call. diff --git a/src/Sinch/Voice/Calls/Manage/ManageWithCallLegRequest.cs b/src/Sinch/Voice/Calls/Manage/ManageWithCallLegRequest.cs index f6a2b929..a95be770 100644 --- a/src/Sinch/Voice/Calls/Manage/ManageWithCallLegRequest.cs +++ b/src/Sinch/Voice/Calls/Manage/ManageWithCallLegRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using Sinch.Voice.Calls.Actions; using Sinch.Voice.Calls.Instructions; @@ -16,13 +16,13 @@ public sealed class ManageWithCallLegRequest /// The collection of instructions that can perform various tasks during the call. You can include as many instructions as necessary. /// public List Instructions { get; set; } - + /// /// Gets or Sets Action /// public IAction Action { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Voice/Calls/Update/UpdateCallRequest.cs b/src/Sinch/Voice/Calls/Update/UpdateCallRequest.cs index c1c3eba9..16a10a9e 100644 --- a/src/Sinch/Voice/Calls/Update/UpdateCallRequest.cs +++ b/src/Sinch/Voice/Calls/Update/UpdateCallRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Sinch.Voice.Calls.Actions; using Sinch.Voice.Calls.Instructions; @@ -21,7 +21,7 @@ public class UpdateCallRequest /// as necessary. /// public List Instructions { get; set; } - + /// /// The action that will control the call. Each SVAML object can only include one action. /// diff --git a/src/Sinch/Voice/ConferenceDtmfOptions.cs b/src/Sinch/Voice/ConferenceDtmfOptions.cs index c4a65452..7896457e 100644 --- a/src/Sinch/Voice/ConferenceDtmfOptions.cs +++ b/src/Sinch/Voice/ConferenceDtmfOptions.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Voice { diff --git a/src/Sinch/Voice/Conferences/Conferences.cs b/src/Sinch/Voice/Conferences/Conferences.cs index dc10699b..0c7f629f 100644 --- a/src/Sinch/Voice/Conferences/Conferences.cs +++ b/src/Sinch/Voice/Conferences/Conferences.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Sinch/Voice/Conferences/Get/GetConferenceResponse.cs b/src/Sinch/Voice/Conferences/Get/GetConferenceResponse.cs index 0c0ee049..5dfc10e5 100644 --- a/src/Sinch/Voice/Conferences/Get/GetConferenceResponse.cs +++ b/src/Sinch/Voice/Conferences/Get/GetConferenceResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; namespace Sinch.Voice.Conferences.Get @@ -7,38 +7,38 @@ public sealed class GetConferenceResponse { public List Participants { get; set; } } - + public sealed class Participant { /// /// The phone number of the PSTN participant that was connected in the conference, or whatever was passed as CLI for data originated/terminated calls. /// public string Cli { get; set; } - + /// /// The callId of the call leg that the participant joined the conference. /// public string Id { get; set; } - + /// /// The number of seconds that the participant has been connected to the conference. /// public int Duration { get; set; } - + /// /// Gets or Sets Muted /// public bool Muted { get; set; } - + /// /// Gets or Sets Onhold /// public bool Onhold { get; set; } - + /// /// Returns the string presentation of the object diff --git a/src/Sinch/Voice/Conferences/ManageParticipants/ManageParticipantRequest.cs b/src/Sinch/Voice/Conferences/ManageParticipants/ManageParticipantRequest.cs index bcfee9e1..6a26e3c5 100644 --- a/src/Sinch/Voice/Conferences/ManageParticipants/ManageParticipantRequest.cs +++ b/src/Sinch/Voice/Conferences/ManageParticipants/ManageParticipantRequest.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; using Sinch.Core; namespace Sinch.Voice.Conferences.ManageParticipants diff --git a/src/Sinch/Voice/Hooks/AnsweredCallEvent.cs b/src/Sinch/Voice/Hooks/AnsweredCallEvent.cs index fee568a5..6306a4b5 100644 --- a/src/Sinch/Voice/Hooks/AnsweredCallEvent.cs +++ b/src/Sinch/Voice/Hooks/AnsweredCallEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Voice.Calls.Actions; diff --git a/src/Sinch/Voice/Hooks/CallEventResponse.cs b/src/Sinch/Voice/Hooks/CallEventResponse.cs index 377383c7..248c2896 100644 --- a/src/Sinch/Voice/Hooks/CallEventResponse.cs +++ b/src/Sinch/Voice/Hooks/CallEventResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Serialization; using Sinch.Voice.Calls.Actions; using Sinch.Voice.Calls.Instructions; diff --git a/src/Sinch/Voice/Hooks/DisconnectedCallEvent.cs b/src/Sinch/Voice/Hooks/DisconnectedCallEvent.cs index d225c780..c6c44dc3 100644 --- a/src/Sinch/Voice/Hooks/DisconnectedCallEvent.cs +++ b/src/Sinch/Voice/Hooks/DisconnectedCallEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/Voice/Hooks/IncomingCallEvent.cs b/src/Sinch/Voice/Hooks/IncomingCallEvent.cs index 7b795671..c5c3197d 100644 --- a/src/Sinch/Voice/Hooks/IncomingCallEvent.cs +++ b/src/Sinch/Voice/Hooks/IncomingCallEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Sinch/Voice/Hooks/NotificationEvent.cs b/src/Sinch/Voice/Hooks/NotificationEvent.cs index 639de1f2..8d659fc4 100644 --- a/src/Sinch/Voice/Hooks/NotificationEvent.cs +++ b/src/Sinch/Voice/Hooks/NotificationEvent.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Voice.Hooks { diff --git a/src/Sinch/Voice/Hooks/PromtInputEvent.cs b/src/Sinch/Voice/Hooks/PromtInputEvent.cs index 7d216fd7..20e00f35 100644 --- a/src/Sinch/Voice/Hooks/PromtInputEvent.cs +++ b/src/Sinch/Voice/Hooks/PromtInputEvent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text.Json.Serialization; using Sinch.Core; @@ -19,7 +19,7 @@ public class PromptInputEvent /// Must have the value pie. /// [JsonPropertyName("event")] - public string Event { get; set; } + public string Event { get; set; } /// /// The unique ID assigned to this call. diff --git a/src/Sinch/Voice/Hooks/To.cs b/src/Sinch/Voice/Hooks/To.cs index 395f0ba5..04e7890e 100644 --- a/src/Sinch/Voice/Hooks/To.cs +++ b/src/Sinch/Voice/Hooks/To.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace Sinch.Voice.Hooks { diff --git a/src/Sinch/Voice/Rate.cs b/src/Sinch/Voice/Rate.cs index 3abffa4d..dede657d 100644 --- a/src/Sinch/Voice/Rate.cs +++ b/src/Sinch/Voice/Rate.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.Json.Serialization; namespace Sinch.Voice diff --git a/tests/Sinch.Tests/AuthTests.cs b/tests/Sinch.Tests/AuthTests.cs index d0b45be2..714fab32 100644 --- a/tests/Sinch.Tests/AuthTests.cs +++ b/tests/Sinch.Tests/AuthTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; diff --git a/tests/Sinch.Tests/Conversation/AppsTests.cs b/tests/Sinch.Tests/Conversation/AppsTests.cs index e3d93127..4765000a 100644 --- a/tests/Sinch.Tests/Conversation/AppsTests.cs +++ b/tests/Sinch.Tests/Conversation/AppsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; diff --git a/tests/Sinch.Tests/Conversation/ContactsTests.cs b/tests/Sinch.Tests/Conversation/ContactsTests.cs index 2e0d9df3..58ada441 100644 --- a/tests/Sinch.Tests/Conversation/ContactsTests.cs +++ b/tests/Sinch.Tests/Conversation/ContactsTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using FluentAssertions; using Sinch.Conversation; using Sinch.Conversation.Common; diff --git a/tests/Sinch.Tests/Conversation/ConversationTestBase.cs b/tests/Sinch.Tests/Conversation/ConversationTestBase.cs index 13ba5adf..6ff0a5c1 100644 --- a/tests/Sinch.Tests/Conversation/ConversationTestBase.cs +++ b/tests/Sinch.Tests/Conversation/ConversationTestBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Conversation; namespace Sinch.Tests.Conversation diff --git a/tests/Sinch.Tests/Conversation/ConversationsTests.cs b/tests/Sinch.Tests/Conversation/ConversationsTests.cs index edf8b865..0ba71eca 100644 --- a/tests/Sinch.Tests/Conversation/ConversationsTests.cs +++ b/tests/Sinch.Tests/Conversation/ConversationsTests.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Nodes; +using System.Text.Json.Nodes; using FluentAssertions; using Xunit; @@ -24,7 +24,7 @@ public void UpdateMaskConversation() conversation.GetPropertiesMask().Should().BeEquivalentTo( "active_channel,active,app_id,contact_id,metadata,metadata_json,correlation_id"); } - + [Fact] public void UpdateMaskConversationOnlyOneField() { diff --git a/tests/Sinch.Tests/Conversation/MessagesTests.cs b/tests/Sinch.Tests/Conversation/MessagesTests.cs index 7548f804..233fd137 100644 --- a/tests/Sinch.Tests/Conversation/MessagesTests.cs +++ b/tests/Sinch.Tests/Conversation/MessagesTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; @@ -293,9 +293,9 @@ public void SerializeBirthDate() { // the birthday format is YYYY-MM-DD var t = @"{ ""birthday"": ""2000-03-12"", ""name"": { ""full_name"": ""AAA""}, ""phone_numbers"":[] }"; - + var contact = JsonSerializer.Deserialize(t); - + contact.Birthday.Should().BeSameDateAs(new DateTime(2000, 03, 12)); } } diff --git a/tests/Sinch.Tests/Conversation/SendMessageTests.cs b/tests/Sinch.Tests/Conversation/SendMessageTests.cs index 68924250..985ece04 100644 --- a/tests/Sinch.Tests/Conversation/SendMessageTests.cs +++ b/tests/Sinch.Tests/Conversation/SendMessageTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Dynamic; using System.Net; @@ -415,7 +415,7 @@ public async Task SendList() response.Should().NotBeNull(); } - + [Fact] public async Task SendAllParams() { diff --git a/tests/Sinch.Tests/Conversation/WebhooksTests.cs b/tests/Sinch.Tests/Conversation/WebhooksTests.cs index 0b8f6204..355a4b5e 100644 --- a/tests/Sinch.Tests/Conversation/WebhooksTests.cs +++ b/tests/Sinch.Tests/Conversation/WebhooksTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json.Nodes; using FluentAssertions; using Microsoft.Extensions.Primitives; diff --git a/tests/Sinch.Tests/Core/HttpTests.cs b/tests/Sinch.Tests/Core/HttpTests.cs index 0b243b09..072de545 100644 --- a/tests/Sinch.Tests/Core/HttpTests.cs +++ b/tests/Sinch.Tests/Core/HttpTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; diff --git a/tests/Sinch.Tests/Extensions.cs b/tests/Sinch.Tests/Extensions.cs index 90cc89e5..8372f886 100644 --- a/tests/Sinch.Tests/Extensions.cs +++ b/tests/Sinch.Tests/Extensions.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using RichardSzalay.MockHttp; namespace Sinch.Tests diff --git a/tests/Sinch.Tests/HeaderExactMatcher.cs b/tests/Sinch.Tests/HeaderExactMatcher.cs index 6a9666e4..327fd241 100644 --- a/tests/Sinch.Tests/HeaderExactMatcher.cs +++ b/tests/Sinch.Tests/HeaderExactMatcher.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Net.Http; using RichardSzalay.MockHttp; diff --git a/tests/Sinch.Tests/Helpers.cs b/tests/Sinch.Tests/Helpers.cs index d26dcbba..04c5a9d5 100644 --- a/tests/Sinch.Tests/Helpers.cs +++ b/tests/Sinch.Tests/Helpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Globalization; using System.Reflection; diff --git a/tests/Sinch.Tests/JsonMatcher.cs b/tests/Sinch.Tests/JsonMatcher.cs index 0597f19d..74573995 100644 --- a/tests/Sinch.Tests/JsonMatcher.cs +++ b/tests/Sinch.Tests/JsonMatcher.cs @@ -1,4 +1,4 @@ -using System.Net.Http; +using System.Net.Http; using FluentAssertions.Json; using Newtonsoft.Json.Linq; using RichardSzalay.MockHttp; diff --git a/tests/Sinch.Tests/Numbers/ActiveNumberTests.cs b/tests/Sinch.Tests/Numbers/ActiveNumberTests.cs index f63a572c..5cbdc0fa 100644 --- a/tests/Sinch.Tests/Numbers/ActiveNumberTests.cs +++ b/tests/Sinch.Tests/Numbers/ActiveNumberTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; @@ -85,7 +85,7 @@ public async Task ListWithFullParams() nextPageToken = "004", totalSize = 5 })); - + var request = new ListActiveNumbersRequest { RegionCode = "US", diff --git a/tests/Sinch.Tests/Numbers/AvailableNumbersTests.cs b/tests/Sinch.Tests/Numbers/AvailableNumbersTests.cs index 06c1fd47..e60c631e 100644 --- a/tests/Sinch.Tests/Numbers/AvailableNumbersTests.cs +++ b/tests/Sinch.Tests/Numbers/AvailableNumbersTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net; diff --git a/tests/Sinch.Tests/Numbers/AvailableRegions.cs b/tests/Sinch.Tests/Numbers/AvailableRegions.cs index 98b4ac21..3a24dfe8 100644 --- a/tests/Sinch.Tests/Numbers/AvailableRegions.cs +++ b/tests/Sinch.Tests/Numbers/AvailableRegions.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; diff --git a/tests/Sinch.Tests/Numbers/HooksTests.cs b/tests/Sinch.Tests/Numbers/HooksTests.cs index 224dbc51..a20559be 100644 --- a/tests/Sinch.Tests/Numbers/HooksTests.cs +++ b/tests/Sinch.Tests/Numbers/HooksTests.cs @@ -1,4 +1,4 @@ -using System.Text.Json; +using System.Text.Json; using FluentAssertions; using Sinch.Numbers.Hooks; using Xunit; @@ -26,7 +26,7 @@ public void DeserializeEvent() @enum.EventType.Should().Be(EventType.LinkTo10DlcCampaign); @enum.FailureCode.Should().Be(FailureCode.CampaignNotAvailable); } - + [Fact] public void DeserializeEventWithCustomEnum() { diff --git a/tests/Sinch.Tests/Numbers/NumberTestBase.cs b/tests/Sinch.Tests/Numbers/NumberTestBase.cs index 6ca127c0..417aaeaa 100644 --- a/tests/Sinch.Tests/Numbers/NumberTestBase.cs +++ b/tests/Sinch.Tests/Numbers/NumberTestBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Numbers; namespace Sinch.Tests.Numbers diff --git a/tests/Sinch.Tests/Sms/BatchesTests.cs b/tests/Sinch.Tests/Sms/BatchesTests.cs index c08765b3..9f61a5d8 100644 --- a/tests/Sinch.Tests/Sms/BatchesTests.cs +++ b/tests/Sinch.Tests/Sms/BatchesTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; diff --git a/tests/Sinch.Tests/Sms/DeliveryReportsTests.cs b/tests/Sinch.Tests/Sms/DeliveryReportsTests.cs index 7f9732a9..a2480864 100644 --- a/tests/Sinch.Tests/Sms/DeliveryReportsTests.cs +++ b/tests/Sinch.Tests/Sms/DeliveryReportsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net; @@ -189,7 +189,7 @@ public async Task ListAuto() } } })); - + HttpMessageHandlerMock .Expect(HttpMethod.Get, uri) @@ -212,7 +212,7 @@ public async Task ListAuto() } } })); - + HttpMessageHandlerMock .Expect(HttpMethod.Get, uri) @@ -235,7 +235,7 @@ public async Task ListAuto() } } })); - + var response = Sms.DeliveryReports.ListAuto(new SMS.DeliveryReports.List.ListDeliveryReportsRequest { Page = 0, diff --git a/tests/Sinch.Tests/Sms/GroupTests.cs b/tests/Sinch.Tests/Sms/GroupTests.cs index 0f87f3bc..f4e60338 100644 --- a/tests/Sinch.Tests/Sms/GroupTests.cs +++ b/tests/Sinch.Tests/Sms/GroupTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; diff --git a/tests/Sinch.Tests/Sms/HooksTests.cs b/tests/Sinch.Tests/Sms/HooksTests.cs index 27e2e86a..76479001 100644 --- a/tests/Sinch.Tests/Sms/HooksTests.cs +++ b/tests/Sinch.Tests/Sms/HooksTests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Text.Json; using FluentAssertions; using Sinch.SMS.DeliveryReports; diff --git a/tests/Sinch.Tests/Sms/InboundsTests.cs b/tests/Sinch.Tests/Sms/InboundsTests.cs index e8685b32..78bc1120 100644 --- a/tests/Sinch.Tests/Sms/InboundsTests.cs +++ b/tests/Sinch.Tests/Sms/InboundsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net; using System.Net.Http; @@ -90,7 +90,7 @@ public async Task List() response.Count.Should().Be(2); response.Inbounds.Should().HaveCount(1); } - + [Fact] public async Task ListAuto() { @@ -139,7 +139,7 @@ public async Task ListAuto() Page = 0 }; - var response = Sms.Inbounds.ListAuto(request); + var response = Sms.Inbounds.ListAuto(request); var list = new List(); await foreach (var inbound in response) { diff --git a/tests/Sinch.Tests/Sms/SmsClientTests.cs b/tests/Sinch.Tests/Sms/SmsClientTests.cs index 15ce1107..deb773e0 100644 --- a/tests/Sinch.Tests/Sms/SmsClientTests.cs +++ b/tests/Sinch.Tests/Sms/SmsClientTests.cs @@ -1,4 +1,4 @@ -using System.Net; +using System.Net; using System.Net.Http; using System.Threading.Tasks; using FluentAssertions; diff --git a/tests/Sinch.Tests/Sms/SmsTestBase.cs b/tests/Sinch.Tests/Sms/SmsTestBase.cs index e8d0df52..e7f4eacf 100644 --- a/tests/Sinch.Tests/Sms/SmsTestBase.cs +++ b/tests/Sinch.Tests/Sms/SmsTestBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.SMS; namespace Sinch.Tests.Sms diff --git a/tests/Sinch.Tests/TestBase.cs b/tests/Sinch.Tests/TestBase.cs index 3b9dbe29..8ed76bd3 100644 --- a/tests/Sinch.Tests/TestBase.cs +++ b/tests/Sinch.Tests/TestBase.cs @@ -1,4 +1,4 @@ -using System.Net.Http; +using System.Net.Http; using System.Text.Json; using NSubstitute; using RichardSzalay.MockHttp; @@ -19,7 +19,7 @@ public class TestBase protected TestBase() { var httpClient = new HttpClient(HttpMessageHandlerMock); - _tokenManager.GetAuthToken().Returns( Token); + _tokenManager.GetAuthToken().Returns(Token); _tokenManager.Scheme.Returns("Bearer"); HttpCamelCase = new Http(_tokenManager, httpClient, null, JsonNamingPolicy.CamelCase); HttpSnakeCase = new Http(_tokenManager, httpClient, null, SnakeCaseNamingPolicy.Instance); diff --git a/tests/Sinch.Tests/TestData.cs b/tests/Sinch.Tests/TestData.cs index f8454abb..fee372ac 100644 --- a/tests/Sinch.Tests/TestData.cs +++ b/tests/Sinch.Tests/TestData.cs @@ -1,4 +1,4 @@ -namespace Sinch.Tests +namespace Sinch.Tests { internal class TestData { diff --git a/tests/Sinch.Tests/UtilsTests.cs b/tests/Sinch.Tests/UtilsTests.cs index b32e617f..a7e50489 100644 --- a/tests/Sinch.Tests/UtilsTests.cs +++ b/tests/Sinch.Tests/UtilsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using FluentAssertions; using Sinch.Core; diff --git a/tests/Sinch.Tests/Verification/VerificationHooksTests.cs b/tests/Sinch.Tests/Verification/VerificationHooksTests.cs index 3cadb2b4..f2c9d6ed 100644 --- a/tests/Sinch.Tests/Verification/VerificationHooksTests.cs +++ b/tests/Sinch.Tests/Verification/VerificationHooksTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.Json; using FluentAssertions; using Newtonsoft.Json.Linq; diff --git a/tests/Sinch.Tests/Verification/VerificationTestBase.cs b/tests/Sinch.Tests/Verification/VerificationTestBase.cs index b846e700..49f40bed 100644 --- a/tests/Sinch.Tests/Verification/VerificationTestBase.cs +++ b/tests/Sinch.Tests/Verification/VerificationTestBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using Sinch.Verification; namespace Sinch.Tests.Verification diff --git a/tests/Sinch.Tests/Verification/VerificationTests.cs b/tests/Sinch.Tests/Verification/VerificationTests.cs index ddfef249..9b71ed55 100644 --- a/tests/Sinch.Tests/Verification/VerificationTests.cs +++ b/tests/Sinch.Tests/Verification/VerificationTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Json; using System.Text.Json; diff --git a/tests/Sinch.Tests/Voice/VoiceClientTests.cs b/tests/Sinch.Tests/Voice/VoiceClientTests.cs index e8fecafd..06bb72cd 100644 --- a/tests/Sinch.Tests/Voice/VoiceClientTests.cs +++ b/tests/Sinch.Tests/Voice/VoiceClientTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using FluentAssertions; using Sinch.Voice; using Sinch.Voice.Callouts; @@ -16,7 +16,7 @@ public void InitVoiceWithGlobalRegion() var baseUrl = Helpers.GetPrivateField(voiceClient.Callouts, "_baseAddress"); baseUrl.Should().BeEquivalentTo(new Uri("https://calling.api.sinch.com/")); } - + [Fact] public void InitVoiceWithEastAsia1Region() { diff --git a/tests/Sinch.Tests/e2e/Auth/AuthTests.cs b/tests/Sinch.Tests/e2e/Auth/AuthTests.cs index 47e3516a..998e8d7b 100644 --- a/tests/Sinch.Tests/e2e/Auth/AuthTests.cs +++ b/tests/Sinch.Tests/e2e/Auth/AuthTests.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using FluentAssertions; using Xunit; diff --git a/tests/Sinch.Tests/e2e/Conversation/CapabilitiesTests.cs b/tests/Sinch.Tests/e2e/Conversation/CapabilitiesTests.cs index c5fc045c..a5f9b616 100644 --- a/tests/Sinch.Tests/e2e/Conversation/CapabilitiesTests.cs +++ b/tests/Sinch.Tests/e2e/Conversation/CapabilitiesTests.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using FluentAssertions; using Sinch.Conversation.Capability; using Sinch.Conversation.Common; diff --git a/tests/Sinch.Tests/e2e/Conversation/ContactsTests.cs b/tests/Sinch.Tests/e2e/Conversation/ContactsTests.cs index 26315835..9031e2e4 100644 --- a/tests/Sinch.Tests/e2e/Conversation/ContactsTests.cs +++ b/tests/Sinch.Tests/e2e/Conversation/ContactsTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; using FluentAssertions; using Sinch.Conversation; diff --git a/tests/Sinch.Tests/e2e/Conversation/ConversationsTests.cs b/tests/Sinch.Tests/e2e/Conversation/ConversationsTests.cs index 5548348f..d6c815b8 100644 --- a/tests/Sinch.Tests/e2e/Conversation/ConversationsTests.cs +++ b/tests/Sinch.Tests/e2e/Conversation/ConversationsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/tests/Sinch.Tests/e2e/Conversation/EventsTests.cs b/tests/Sinch.Tests/e2e/Conversation/EventsTests.cs index cb5cbc82..5e94e9f1 100644 --- a/tests/Sinch.Tests/e2e/Conversation/EventsTests.cs +++ b/tests/Sinch.Tests/e2e/Conversation/EventsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Globalization; @@ -115,7 +115,7 @@ public async Task List() }); response.Should().BeEquivalentTo(new ListEventsResponse() { - Events = new List() { _conversationEvent, _conversationEvent }, + Events = new List() { _conversationEvent, _conversationEvent }, NextPageToken = "def" }); } diff --git a/tests/Sinch.Tests/e2e/Conversation/TemplatesTests.cs b/tests/Sinch.Tests/e2e/Conversation/TemplatesTests.cs index a0bcaacc..64511fbf 100644 --- a/tests/Sinch.Tests/e2e/Conversation/TemplatesTests.cs +++ b/tests/Sinch.Tests/e2e/Conversation/TemplatesTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Threading.Tasks; using FluentAssertions; diff --git a/tests/Sinch.Tests/e2e/Conversation/Transcoding.cs b/tests/Sinch.Tests/e2e/Conversation/Transcoding.cs index 832e2081..f3fa96f4 100644 --- a/tests/Sinch.Tests/e2e/Conversation/Transcoding.cs +++ b/tests/Sinch.Tests/e2e/Conversation/Transcoding.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Text.Json.Nodes; diff --git a/tests/Sinch.Tests/e2e/Conversation/WebhooksTests.cs b/tests/Sinch.Tests/e2e/Conversation/WebhooksTests.cs index c3f67b4d..6d368534 100644 --- a/tests/Sinch.Tests/e2e/Conversation/WebhooksTests.cs +++ b/tests/Sinch.Tests/e2e/Conversation/WebhooksTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using FluentAssertions; @@ -78,7 +78,7 @@ public async Task Get() var response = await SinchClientMockServer.Conversation.Webhooks.Get("123"); response.Should().BeEquivalentTo(_webhookResponse); } - + [Fact] public async Task Delete() { diff --git a/tests/Sinch.Tests/e2e/NumbersTests.cs b/tests/Sinch.Tests/e2e/NumbersTests.cs index f9b798cc..e55c78e8 100644 --- a/tests/Sinch.Tests/e2e/NumbersTests.cs +++ b/tests/Sinch.Tests/e2e/NumbersTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FluentAssertions; diff --git a/tests/Sinch.Tests/e2e/Sms/DeliveryReportsTests.cs b/tests/Sinch.Tests/e2e/Sms/DeliveryReportsTests.cs index b8a6c16d..3ac9ae6d 100644 --- a/tests/Sinch.Tests/e2e/Sms/DeliveryReportsTests.cs +++ b/tests/Sinch.Tests/e2e/Sms/DeliveryReportsTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FluentAssertions; @@ -37,7 +37,7 @@ public async Task List() { var response = await SinchClientMockStudio.Sms.DeliveryReports.List(new SMS.DeliveryReports.List.ListDeliveryReportsRequest() { - + Page = 0, }); response.DeliveryReports.Count().Should().Be(5); diff --git a/tests/Sinch.Tests/e2e/Sms/GroupTests.cs b/tests/Sinch.Tests/e2e/Sms/GroupTests.cs index 8bb5f29a..0053f70b 100644 --- a/tests/Sinch.Tests/e2e/Sms/GroupTests.cs +++ b/tests/Sinch.Tests/e2e/Sms/GroupTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/tests/Sinch.Tests/e2e/Sms/InboundsTests.cs b/tests/Sinch.Tests/e2e/Sms/InboundsTests.cs index 737a1bc2..7dbcac36 100644 --- a/tests/Sinch.Tests/e2e/Sms/InboundsTests.cs +++ b/tests/Sinch.Tests/e2e/Sms/InboundsTests.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using FluentAssertions; using Sinch.SMS.Inbounds.List; using Xunit; diff --git a/tests/Sinch.Tests/e2e/Sms/SmsTests.cs b/tests/Sinch.Tests/e2e/Sms/SmsTests.cs index 94b0b91b..be85cf66 100644 --- a/tests/Sinch.Tests/e2e/Sms/SmsTests.cs +++ b/tests/Sinch.Tests/e2e/Sms/SmsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/tests/Sinch.Tests/e2e/TestBase.cs b/tests/Sinch.Tests/e2e/TestBase.cs index 80d452ad..86adf023 100644 --- a/tests/Sinch.Tests/e2e/TestBase.cs +++ b/tests/Sinch.Tests/e2e/TestBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using DotNetEnv; namespace Sinch.Tests.e2e diff --git a/tests/Sinch.Tests/e2e/Verification/ReportVerificationTests.cs b/tests/Sinch.Tests/e2e/Verification/ReportVerificationTests.cs index 17d46fe0..f3028e4d 100644 --- a/tests/Sinch.Tests/e2e/Verification/ReportVerificationTests.cs +++ b/tests/Sinch.Tests/e2e/Verification/ReportVerificationTests.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using FluentAssertions; using Sinch.Verification.Common; using Sinch.Verification.Report.Request; @@ -113,7 +113,7 @@ public async Task ReportCalloutByIdentity() CallComplete = true, }); } - + [Fact] public async Task ReportSmsById() { diff --git a/tests/Sinch.Tests/e2e/Verification/VerificationStartTests.cs b/tests/Sinch.Tests/e2e/Verification/VerificationStartTests.cs index 2890f6a3..98a0a5d6 100644 --- a/tests/Sinch.Tests/e2e/Verification/VerificationStartTests.cs +++ b/tests/Sinch.Tests/e2e/Verification/VerificationStartTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; using FluentAssertions; using Sinch.Verification.Common; diff --git a/tests/Sinch.Tests/e2e/Verification/VerificationStatusTests.cs b/tests/Sinch.Tests/e2e/Verification/VerificationStatusTests.cs index c28d833a..7c075d81 100644 --- a/tests/Sinch.Tests/e2e/Verification/VerificationStatusTests.cs +++ b/tests/Sinch.Tests/e2e/Verification/VerificationStatusTests.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using FluentAssertions; using Sinch.Verification.Common; using Sinch.Verification.Report.Response; diff --git a/tests/Sinch.Tests/e2e/Verification/VerificationTestBase.cs b/tests/Sinch.Tests/e2e/Verification/VerificationTestBase.cs index 50658bcc..179606a4 100644 --- a/tests/Sinch.Tests/e2e/Verification/VerificationTestBase.cs +++ b/tests/Sinch.Tests/e2e/Verification/VerificationTestBase.cs @@ -1,4 +1,4 @@ -using Sinch.Auth; +using Sinch.Auth; using Sinch.Verification; namespace Sinch.Tests.e2e.Verification diff --git a/tests/Sinch.Tests/e2e/Voice/ApplicationsTests.cs b/tests/Sinch.Tests/e2e/Voice/ApplicationsTests.cs index a743e69a..b16d837b 100644 --- a/tests/Sinch.Tests/e2e/Voice/ApplicationsTests.cs +++ b/tests/Sinch.Tests/e2e/Voice/ApplicationsTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; using FluentAssertions; using Sinch.Voice; diff --git a/tests/Sinch.Tests/e2e/Voice/CalloutTests.cs b/tests/Sinch.Tests/e2e/Voice/CalloutTests.cs index 111215bf..d73f2cf3 100644 --- a/tests/Sinch.Tests/e2e/Voice/CalloutTests.cs +++ b/tests/Sinch.Tests/e2e/Voice/CalloutTests.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using FluentAssertions; using Sinch.Voice; using Sinch.Voice.Callouts.Callout; diff --git a/tests/Sinch.Tests/e2e/Voice/CallsTests.cs b/tests/Sinch.Tests/e2e/Voice/CallsTests.cs index 6c2a4ce6..7a75b6de 100644 --- a/tests/Sinch.Tests/e2e/Voice/CallsTests.cs +++ b/tests/Sinch.Tests/e2e/Voice/CallsTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Threading.Tasks; using FluentAssertions; diff --git a/tests/Sinch.Tests/e2e/Voice/ConferencesTests.cs b/tests/Sinch.Tests/e2e/Voice/ConferencesTests.cs index 0fa7a83b..033faf91 100644 --- a/tests/Sinch.Tests/e2e/Voice/ConferencesTests.cs +++ b/tests/Sinch.Tests/e2e/Voice/ConferencesTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using FluentAssertions; @@ -64,7 +64,7 @@ public async Task ManageParticipant() }); await op.Should().NotThrowAsync(); } - + [Fact] public async Task KickParticipant() { diff --git a/tests/Sinch.Tests/e2e/Voice/VoiceTestBase.cs b/tests/Sinch.Tests/e2e/Voice/VoiceTestBase.cs index 2df5372e..881f3bac 100644 --- a/tests/Sinch.Tests/e2e/Voice/VoiceTestBase.cs +++ b/tests/Sinch.Tests/e2e/Voice/VoiceTestBase.cs @@ -1,4 +1,4 @@ -using Sinch.Auth; +using Sinch.Auth; using Sinch.Voice; namespace Sinch.Tests.e2e.Voice From 16a290ba48e81ea618fb9d283f81e0dbea499663 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 13:50:05 +0200 Subject: [PATCH 05/11] chore(ci): update checkout and setupdotnet actions to v4 --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eef86121..eb6585d8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -35,7 +35,7 @@ jobs: - 6044:6044 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -54,7 +54,7 @@ jobs: - name: Setup .NET SDK ${{ matrix.dotnet-version.version }} id: dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet-version.version }} From d85bc0be18becdc958cf555e6e31975c3cfecdea Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 14:37:32 +0200 Subject: [PATCH 06/11] chore: diag ci --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eb6585d8..026fff5e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -74,7 +74,7 @@ jobs: run: dotnet restore - name: Check Formatting - run: dotnet format --verify-no-changes + run: dotnet format --verify-no-changes --verbosity diagnostic - name: Build run: dotnet build -p:Version=${{ steps.gitversion.outputs.semVer }} --configuration Release --no-restore From 3b9e462e05af4587c161875542ed2b4f987610c4 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 14:50:25 +0200 Subject: [PATCH 07/11] refactor(ci): remove matrix for net versions --- .github/workflows/build.yaml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 026fff5e..cb837342 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,13 +12,6 @@ env: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - dotnet-version: [ - { version: '6.0.x', tfm: 'net6.0' }, - { version: '7.0.x', tfm: 'net7.0' }, - { version: '8.0.x', tfm: 'net8.0' }, - ] services: doppleganger: @@ -52,11 +45,11 @@ jobs: with: useConfigFile: true - - name: Setup .NET SDK ${{ matrix.dotnet-version.version }} + - name: Setup .NET SDK id: dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ matrix.dotnet-version.version }} + dotnet-version: '8.0.x' - name: Checkout Wiremock fixtures repo uses: actions/checkout@v3 @@ -80,7 +73,7 @@ jobs: run: dotnet build -p:Version=${{ steps.gitversion.outputs.semVer }} --configuration Release --no-restore - name: Test - run: dotnet test --no-restore --verbosity normal --framework ${{ matrix.dotnet-version.tfm }} + run: dotnet test --no-restore --verbosity normal # --include-symbols? - name: Pack From 344bcc13ac7ff85054efe9e5dbf12b0a16cf9f73 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 14:54:51 +0200 Subject: [PATCH 08/11] feat(ci): setup three sdk versions --- .github/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cb837342..7f512481 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -49,7 +49,10 @@ jobs: id: dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: | + 6.0.x + 7.0.x + 8.0.x - name: Checkout Wiremock fixtures repo uses: actions/checkout@v3 From 7bb37484707c9b80a1eef1075f908b94a9a751c4 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 15:07:49 +0200 Subject: [PATCH 09/11] chore(git): use crlf in line endigns --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..db2a596a --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=crlf \ No newline at end of file From 3c6801227087fa5b2d4af173a23f9cb9953655f1 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Wed, 3 Apr 2024 15:13:21 +0200 Subject: [PATCH 10/11] Revert "refactor(ci): remove matrix for net versions" This reverts commit 3b9e462e --- .github/workflows/build.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7f512481..026fff5e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,6 +12,13 @@ env: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: [ + { version: '6.0.x', tfm: 'net6.0' }, + { version: '7.0.x', tfm: 'net7.0' }, + { version: '8.0.x', tfm: 'net8.0' }, + ] services: doppleganger: @@ -45,14 +52,11 @@ jobs: with: useConfigFile: true - - name: Setup .NET SDK + - name: Setup .NET SDK ${{ matrix.dotnet-version.version }} id: dotnet uses: actions/setup-dotnet@v4 with: - dotnet-version: | - 6.0.x - 7.0.x - 8.0.x + dotnet-version: ${{ matrix.dotnet-version.version }} - name: Checkout Wiremock fixtures repo uses: actions/checkout@v3 @@ -76,7 +80,7 @@ jobs: run: dotnet build -p:Version=${{ steps.gitversion.outputs.semVer }} --configuration Release --no-restore - name: Test - run: dotnet test --no-restore --verbosity normal + run: dotnet test --no-restore --verbosity normal --framework ${{ matrix.dotnet-version.tfm }} # --include-symbols? - name: Pack From 021ead33e9fb16f2c79372588e84e8ded0e35832 Mon Sep 17 00:00:00 2001 From: Dovchik Date: Thu, 4 Apr 2024 11:35:48 +0200 Subject: [PATCH 11/11] refactor: move back to lf line ending --- .editorconfig | 2 +- .gitattributes | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 6006b22c..484bf8ba 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,5 @@ [*] -end_of_line = crlf +end_of_line = lf insert_final_newline = true charset = utf-8 trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes index db2a596a..fcadb2cf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -* text eol=crlf \ No newline at end of file +* text eol=lf