From 2da9179dd4c2b9cd0d4f4d74c51fe7f63b6a56f6 Mon Sep 17 00:00:00 2001 From: dovchik Date: Thu, 28 Nov 2024 11:52:01 +0100 Subject: [PATCH] chore: fix format --- src/Sinch/Auth/OAuth.cs | 2 +- src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs | 2 +- src/Sinch/Conversation/TemplatesV2/Template.cs | 2 +- src/Sinch/Conversation/Webhooks/Webhook.cs | 2 +- src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs | 2 +- src/Sinch/SMS/Hooks/IncomingTextSms.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Sinch/Auth/OAuth.cs b/src/Sinch/Auth/OAuth.cs index 5791942d..f05f5d58 100644 --- a/src/Sinch/Auth/OAuth.cs +++ b/src/Sinch/Auth/OAuth.cs @@ -82,7 +82,7 @@ private class AuthResponse { [JsonPropertyName("access_token")] #if NET7_0_OR_GREATER - public required string AccessToken { get; set; } + public required string AccessToken { get; set; } #else public string AccessToken { get; set; } = null!; #endif diff --git a/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs b/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs index 7115b754..bd23cdcf 100644 --- a/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs +++ b/src/Sinch/Conversation/TemplatesV2/CreateTemplateRequest.cs @@ -19,7 +19,7 @@ public class CreateTemplateRequest /// Gets or Sets Translations /// #if NET7_0_OR_GREATER - public required List Translations { get; set; } + public required List Translations { get; set; } #else public List Translations { get; set; } = null!; #endif diff --git a/src/Sinch/Conversation/TemplatesV2/Template.cs b/src/Sinch/Conversation/TemplatesV2/Template.cs index 75aa536b..bff4a125 100644 --- a/src/Sinch/Conversation/TemplatesV2/Template.cs +++ b/src/Sinch/Conversation/TemplatesV2/Template.cs @@ -11,7 +11,7 @@ public class Template /// be unique for a given project. /// #if NET7_0_OR_GREATER -public required string Id { get; set; } + public required string Id { get; set; } #else public string Id { get; set; } = null!; #endif diff --git a/src/Sinch/Conversation/Webhooks/Webhook.cs b/src/Sinch/Conversation/Webhooks/Webhook.cs index ffa5101f..8627b992 100644 --- a/src/Sinch/Conversation/Webhooks/Webhook.cs +++ b/src/Sinch/Conversation/Webhooks/Webhook.cs @@ -92,7 +92,7 @@ public string? Secret /// Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden. /// #if NET7_0_OR_GREATER - public required string Target + public required string Target #else public string Target #endif diff --git a/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs b/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs index 7dbd0078..0356ecce 100644 --- a/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs +++ b/src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs @@ -21,7 +21,7 @@ public sealed class ReplaceGroupRequest /// E.164 format MSISDNs. /// #if NET7_0_OR_GREATER - public required List Members { get; init; } + public required List Members { get; init; } #else public List Members { get; set; } = null!; #endif diff --git a/src/Sinch/SMS/Hooks/IncomingTextSms.cs b/src/Sinch/SMS/Hooks/IncomingTextSms.cs index cc8afb51..e9984ac2 100644 --- a/src/Sinch/SMS/Hooks/IncomingTextSms.cs +++ b/src/Sinch/SMS/Hooks/IncomingTextSms.cs @@ -16,7 +16,7 @@ public class IncomingTextSms : IIncomingSms /// [JsonPropertyName("body")] #if NET7_0_OR_GREATER - public required virtual string Body { get; set; } + public required virtual string Body { get; set; } #else public virtual string Body { get; set; } = null!; #endif