Skip to content

Commit

Permalink
chore: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dovchik committed Nov 28, 2024
1 parent a70088f commit 2da9179
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Sinch/Auth/OAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CreateTemplateRequest
/// Gets or Sets Translations
/// </summary>
#if NET7_0_OR_GREATER
public required List<TemplateTranslation> Translations { get; set; }
public required List<TemplateTranslation> Translations { get; set; }
#else
public List<TemplateTranslation> Translations { get; set; } = null!;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Sinch/Conversation/TemplatesV2/Template.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Template
/// be unique for a given project.
/// </summary>
#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
Expand Down
2 changes: 1 addition & 1 deletion src/Sinch/Conversation/Webhooks/Webhook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public string? Secret
/// Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden.
/// </summary>
#if NET7_0_OR_GREATER
public required string Target
public required string Target
#else
public string Target
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Sinch/SMS/Groups/Replace/ReplaceGroupRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed class ReplaceGroupRequest
/// <see href="https://community.sinch.com/t5/Glossary/E-164/ta-p/7537">E.164</see> format MSISDNs.
/// </summary>
#if NET7_0_OR_GREATER
public required List<string> Members { get; init; }
public required List<string> Members { get; init; }
#else
public List<string> Members { get; set; } = null!;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Sinch/SMS/Hooks/IncomingTextSms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class IncomingTextSms : IIncomingSms
/// </summary>
[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
Expand Down

0 comments on commit 2da9179

Please sign in to comment.