Skip to content

Commit 347a927

Browse files
committed
merge v1.3.0-next into current
2 parents 66d1186 + 83bdc7d commit 347a927

File tree

205 files changed

+959
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+959
-239
lines changed

src/Sinch/Auth/ApplicationSignedAuth.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Sinch.Auth
77
{
8-
internal class ApplicationSignedAuth : ISinchAuth
8+
internal sealed class ApplicationSignedAuth : ISinchAuth
99
{
1010
private readonly string _appSecret;
1111
private readonly string _appKey;

src/Sinch/Auth/AuthApiError.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Auth
44
{
5-
internal class AuthApiError
5+
internal sealed class AuthApiError
66
{
77
public string? Error { get; set; }
88

src/Sinch/Auth/BasicAuth.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Sinch.Auth
66
{
7-
internal class BasicAuth : ISinchAuth
7+
internal sealed class BasicAuth : ISinchAuth
88
{
99
private readonly string _appKey;
1010
private readonly string _appSecret;

src/Sinch/Auth/BearerAuth.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Sinch.Auth
55
{
6-
public class BearerAuth : ISinchAuth
6+
public sealed class BearerAuth : ISinchAuth
77
{
88
private readonly string _apiToken;
99

src/Sinch/Auth/OAuth.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Sinch.Auth
1313
{
14-
internal class OAuth : ISinchAuth
14+
internal sealed class OAuth : ISinchAuth
1515
{
1616
private readonly HttpClient _httpClient;
1717
private readonly string _keyId;
@@ -78,7 +78,7 @@ public async Task<string> GetAuthToken(bool force = false)
7878
return _token;
7979
}
8080

81-
private class AuthResponse
81+
private sealed class AuthResponse
8282
{
8383
[JsonPropertyName("access_token")]
8484

src/Sinch/Conversation/Apps/App.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Sinch.Conversation.Apps
66
{
7-
public class App
7+
public sealed class App
88
{
99
/// <summary>
1010
/// An array of channel credentials. The order of the credentials defines the app channel priority.

src/Sinch/Conversation/Apps/Apps.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public interface ISinchConversationApps
8080
Task<App> Update(string appId, UpdateAppRequest request, CancellationToken cancellationToken = default);
8181
}
8282

83-
internal class Apps : ISinchConversationApps
83+
internal sealed class Apps : ISinchConversationApps
8484
{
8585
private readonly Uri _baseAddress;
8686
private readonly IHttp _http;
@@ -165,7 +165,7 @@ public Task<App> Update(string appId, UpdateAppRequest request, CancellationToke
165165
cancellationToken: cancellationToken);
166166
}
167167

168-
private class ListResponse
168+
private sealed class ListResponse
169169
{
170170
// ReSharper disable once CollectionNeverUpdated.Local
171171
public List<App>? Apps { get; set; }

src/Sinch/Conversation/Apps/QueueStats.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Apps
44
{
5-
public class QueueStats
5+
public sealed class QueueStats
66
{
77
/// <summary>
88
/// The current size of the App&#39;s MT queue.

src/Sinch/Conversation/Capability/Capabilities.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Task<LookupCapabilityResponse> Lookup(LookupCapabilityRequest request,
3030
CancellationToken cancellationToken = default);
3131
}
3232

33-
internal class Capabilities : ISinchConversationCapabilities
33+
internal sealed class Capabilities : ISinchConversationCapabilities
3434
{
3535
private readonly Uri _baseAddress;
3636
private readonly IHttp _http;

src/Sinch/Conversation/Capability/LookupCapabilityRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Capability
44
{
5-
public class LookupCapabilityRequest
5+
public sealed class LookupCapabilityRequest
66
{
77
/// <summary>
88
/// The ID of the app to use for capability lookup.

src/Sinch/Conversation/Capability/LookupCapabilityResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Capability
44
{
5-
public class LookupCapabilityResponse
5+
public sealed class LookupCapabilityResponse
66
{
77
/// <summary>
88
/// The ID of the app to use for capability lookup.

src/Sinch/Conversation/Common/Agent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Sinch.Conversation.Common
55
/// <summary>
66
/// Represents an agent that is involved in a conversation.
77
/// </summary>
8-
public class Agent
8+
public sealed class Agent
99
{
1010
/// <summary>
1111
/// Agent's display name

src/Sinch/Conversation/Common/ChannelIdentity.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Common
44
{
5-
public class ChannelIdentity
5+
public sealed class ChannelIdentity
66
{
77
/// <summary>
88
/// Required if using a channel that uses app-scoped channel identities. Currently, FB Messenger, Viber Bot, Instagram,

src/Sinch/Conversation/Common/Identified.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Sinch.Conversation.Common
44
{
5-
public class Identified : IRecipient
5+
public sealed class Identified : IRecipient
66
{
77
public IdentifiedBy? IdentifiedBy { get; set; }
88
}
99

10-
public class IdentifiedBy
10+
public sealed class IdentifiedBy
1111
{
1212
public List<ChannelIdentity>? ChannelIdentities { get; set; }
1313
}

src/Sinch/Conversation/Contacts/Contacts.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Task<ChannelProfile> GetChannelProfile(GetChannelProfileRequest request,
134134
Task<Contact> Merge(string destinationId, string sourceId, CancellationToken cancellationToken = default);
135135
}
136136

137-
internal class Contacts : ISinchConversationContacts
137+
internal sealed class Contacts : ISinchConversationContacts
138138
{
139139
private readonly Uri _baseAddress;
140140
private readonly IHttp _http;

src/Sinch/Conversation/Contacts/Create/CreateContactRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Sinch.Conversation.Contacts.Create
66
{
7-
public class CreateContactRequest
7+
public sealed class CreateContactRequest
88
{
99
/// <summary>
1010
/// List of channel identities. Array must contain at least one item.

src/Sinch/Conversation/Contacts/GetChannelProfile/ChannelProfile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Sinch.Conversation.Contacts.GetChannelProfile
22
{
3-
public class ChannelProfile
3+
public sealed class ChannelProfile
44
{
55
/// <summary>
66
/// The profile name.

src/Sinch/Conversation/Contacts/GetChannelProfile/GetChannelProfileRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Contacts.GetChannelProfile
44
{
5-
public class GetChannelProfileRequest
5+
public sealed class GetChannelProfileRequest
66
{
77
/// <summary>
88
/// The recipient to check profile information. Requires either contact_id or identified_by.

src/Sinch/Conversation/Contacts/List/ListContactsResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Contacts.List
44
{
5-
public class ListContactsResponse
5+
public sealed class ListContactsResponse
66
{
77
/// <summary>
88
/// Token that should be included in the next list contacts request to fetch the next page.

src/Sinch/Conversation/Contacts/List/ListContractsRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Sinch.Conversation.Contacts.List
22
{
3-
public class ListContactsRequest
3+
public sealed class ListContactsRequest
44
{
55
/// <summary>
66
/// Optional. The maximum number of contacts to fetch. The default is 10 and the maximum is 20.

src/Sinch/Conversation/Conversations/Conversations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Task<InjectEventResponse> InjectEvent(InjectEventRequest injectEventRequest,
104104
CancellationToken cancellationToken = default);
105105
}
106106

107-
internal class ConversationsClient : ISinchConversationConversations
107+
internal sealed class ConversationsClient : ISinchConversationConversations
108108
{
109109
private readonly Uri _baseAddress;
110110
private readonly IHttp _http;

src/Sinch/Conversation/Conversations/Create/CreateConversationRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Sinch.Conversation.Conversations.Create
55
{
6-
public class CreateConversationRequest
6+
public sealed class CreateConversationRequest
77
{
88
/// <summary>
99
/// Gets or Sets ActiveChannel

src/Sinch/Conversation/Conversations/InjectEvent/InjectEventRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Sinch.Conversation.Conversations.InjectEvent
77
{
8-
public class InjectEventRequest
8+
public sealed class InjectEventRequest
99
{
1010
// Thank you System.Text.Json -_-
1111
[JsonConstructor]

src/Sinch/Conversation/Conversations/InjectEvent/InjectEventResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Conversations.InjectEvent
44
{
5-
public class InjectEventResponse
5+
public sealed class InjectEventResponse
66
{
77
public string? EventId { get; set; }
88

src/Sinch/Conversation/Events/AppEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Sinch.Conversation.Events
77
{
8-
public class AppEvent
8+
public sealed class AppEvent
99
{
1010
[JsonConstructor]
1111
[Obsolete("Needed for System.Text.Json", true)]

src/Sinch/Conversation/Events/AppEvents/AgentJoinedEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Events.AppEvents
44
{
5-
public class AgentJoinedEvent
5+
public sealed class AgentJoinedEvent
66
{
77
public Agent? Agent { get; set; }
88
}

src/Sinch/Conversation/Events/AppEvents/AgentLeftEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Events.AppEvents
44
{
5-
public class AgentLeftEvent
5+
public sealed class AgentLeftEvent
66
{
77
public Agent? Agent { get; set; }
88
}

src/Sinch/Conversation/Events/AppEvents/CommentReplyEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Sinch.Conversation.Events.AppEvents
22
{
3-
public class CommentReplyEvent
3+
public sealed class CommentReplyEvent
44
{
55
/// <summary>
66
/// The text of the comment reply.

src/Sinch/Conversation/Events/ContactEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Sinch.Conversation.Events
88
/// <summary>
99
/// The content of the events.
1010
/// </summary>
11-
public class ContactEvent
11+
public sealed class ContactEvent
1212
{
1313
// Thank you System.Text.Json -_-
1414
[JsonConstructor]

src/Sinch/Conversation/Events/ContactEvents/CommentEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Sinch.Conversation.Events.ContactEvents
33
/// <summary>
44
/// The user sent a comment outside of the main conversation context
55
/// </summary>
6-
public class CommentEvent
6+
public sealed class CommentEvent
77
{
88
/// <summary>
99
/// Required. The text of the comment.

src/Sinch/Conversation/Events/ContactEvents/ConversationDeletedEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Sinch.Conversation.Events.ContactEvents
33
/// <summary>
44
/// An empty object. Represents a conversation deleted by the contact.
55
/// </summary>
6-
public class ConversationDeletedEvent
6+
public sealed class ConversationDeletedEvent
77
{
88

99
}

src/Sinch/Conversation/Events/ContactMessageEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Sinch.Conversation.Events
77
{
8-
public class ContactMessageEvent
8+
public sealed class ContactMessageEvent
99
{
1010
// Thank you System.Text.Json -_-
1111
[JsonConstructor]

src/Sinch/Conversation/Events/ConversationEvent.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Sinch.Conversation.Events
99
/// <summary>
1010
/// An event on a particular channel.
1111
/// </summary>
12-
public class ConversationEvent
12+
public sealed class ConversationEvent
1313
{
1414
/// <summary>
1515
/// Gets or Sets Direction
@@ -84,7 +84,7 @@ public override string ToString()
8484
}
8585
}
8686

87-
public class ConversationEventEvent
87+
public sealed class ConversationEventEvent
8888
{
8989
// Thank you System.Text.Json -_-
9090
[JsonConstructor]
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Sinch.Conversation.Events.EventTypes
22
{
3-
public class ComposingEndEvent
3+
public sealed class ComposingEndEvent
44
{
55
}
66
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Sinch.Conversation.Events.EventTypes
22
{
3-
public class ComposingEvent
3+
public sealed class ComposingEvent
44
{
55
}
66
}

src/Sinch/Conversation/Events/EventTypes/GenericEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Sinch.Conversation.Events.EventTypes
55
/// <summary>
66
/// Event that contains only a flexible payload field.
77
/// </summary>
8-
public class GenericEvent
8+
public sealed class GenericEvent
99
{
1010
/// <summary>
1111
/// Arbitrary data set to the event. A valid JSON object.

src/Sinch/Conversation/Events/Events.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ IAsyncEnumerable<ConversationEvent> ListAuto(ListEventsRequest request,
5757
CancellationToken cancellationToken = default);
5858
}
5959

60-
internal class Events : ISinchConversationEvents
60+
internal sealed class Events : ISinchConversationEvents
6161
{
6262
private readonly Uri _baseAddress;
6363
private readonly IHttp _http;

src/Sinch/Conversation/Events/ListEventsRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Sinch.Conversation.Events
22
{
3-
public class ListEventsRequest
3+
public sealed class ListEventsRequest
44
{
55
public string? ConversationId { get; set; }
66

src/Sinch/Conversation/Events/ListEventsResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Sinch.Conversation.Events
44
{
5-
public class ListEventsResponse
5+
public sealed class ListEventsResponse
66
{
77
/// <summary>
88
/// List of <see cref="ConversationEvent"/>

src/Sinch/Conversation/Events/Send/SendEventResponse.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Sinch.Conversation.Events.Send
55
{
6-
public class SendEventResponse
6+
public sealed class SendEventResponse
77
{
88
/// <summary>
99
/// Accepted timestamp.

src/Sinch/Conversation/Hooks/Models/DocumentFieldClassification.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public override string ToString()
3131

3232
}
3333

34-
public class DocumentFieldData
34+
public sealed class DocumentFieldData
3535
{
3636
/// <summary>
3737
/// The data array contains the string(s) assigned to the corresponding document field.

0 commit comments

Comments
 (0)