2525
2626namespace OpenQA . Selenium . BiDi . Storage ;
2727
28- internal class GetCookiesCommand ( GetCookiesCommandParameters @params )
28+ internal sealed class GetCookiesCommand ( GetCookiesCommandParameters @params )
2929 : Command < GetCookiesCommandParameters , GetCookiesResult > ( @params , "storage.getCookies" ) ;
3030
31- internal record GetCookiesCommandParameters( CookieFilter ? Filter , PartitionDescriptor ? Partition ) : CommandParameters ;
31+ internal sealed record GetCookiesCommandParameters( CookieFilter ? Filter , PartitionDescriptor ? Partition ) : CommandParameters ;
3232
33- public record GetCookiesOptions : CommandOptions
33+ public sealed record GetCookiesOptions : CommandOptions
3434{
3535 public CookieFilter ? Filter { get ; set ; }
3636
3737 public PartitionDescriptor ? Partition { get ; set ; }
3838}
3939
40- public record GetCookiesResult : EmptyResult , IReadOnlyList < Network . Cookie >
40+ public sealed record GetCookiesResult : EmptyResult , IReadOnlyList < Network . Cookie >
4141{
4242 private readonly IReadOnlyList < Network . Cookie > _cookies ;
4343
@@ -58,7 +58,7 @@ internal GetCookiesResult(IReadOnlyList<Network.Cookie> cookies, PartitionKey pa
5858 IEnumerator IEnumerable . GetEnumerator ( ) => ( _cookies as IEnumerable ) . GetEnumerator ( ) ;
5959}
6060
61- public class CookieFilter
61+ public sealed record CookieFilter
6262{
6363 public string ? Name { get ; set ; }
6464
@@ -84,9 +84,9 @@ public class CookieFilter
8484[ JsonDerivedType ( typeof ( StorageKeyPartitionDescriptor ) , "storageKey" ) ]
8585public abstract record PartitionDescriptor ;
8686
87- public record ContextPartitionDescriptor ( BrowsingContext . BrowsingContext Context ) : PartitionDescriptor ;
87+ public sealed record ContextPartitionDescriptor ( BrowsingContext . BrowsingContext Context ) : PartitionDescriptor ;
8888
89- public record StorageKeyPartitionDescriptor : PartitionDescriptor
89+ public sealed record StorageKeyPartitionDescriptor : PartitionDescriptor
9090{
9191 public string ? UserContext { get ; set ; }
9292
0 commit comments