Table of Contents

Class SponsorBlockSettings

Namespace
Nyra.Entities
Assembly
Nyra.dll

SponsorBlock settings to change, members left null keep their current value.

public sealed record SponsorBlockSettings : IEquatable<SponsorBlockSettings>
Inheritance
SponsorBlockSettings
Implements
Inherited Members

Properties

ActionTypes

The action types to fetch segments for, a matched segment is always skipped by seeking, null keeps the current setting.

[JsonPropertyName("actionTypes")]
public IReadOnlyList<string>? ActionTypes { get; init; }

Property Value

IReadOnlyList<string>

Categories

The categories to skip, null keeps the current setting.

[JsonPropertyName("categories")]
public IReadOnlyList<string>? Categories { get; init; }

Property Value

IReadOnlyList<string>

Enabled

Whether the server skips segments, null keeps the current setting.

[JsonPropertyName("enabled")]
public bool? Enabled { get; init; }

Property Value

bool?

SkipMarginMilliseconds

The margin applied when skipping, in milliseconds, null keeps the current setting.

[JsonPropertyName("skipMarginMs")]
public int? SkipMarginMilliseconds { get; init; }

Property Value

int?

Methods

Equals(SponsorBlockSettings?)

Indicates whether the settings carry the same members.

public bool Equals(SponsorBlockSettings? other)

Parameters

other SponsorBlockSettings

The settings to compare with.

Returns

bool

Whether the members match, the lists compared by content.

GetHashCode()

Returns a hash of the settings' comparable members.

public override int GetHashCode()

Returns

int

The hash code.