Table of Contents

Class Caption

Namespace
idunno.Bluesky.Embed
Assembly
idunno.Bluesky.dll

Holds caption information for a video.

public record Caption : IEquatable<Caption>

Inheritance

Implements

Inherited Members

Remarks

Captions are in the VTT format.

Constructors

Caption(string, Blob)

Creates a new instance of idunno.Bluesky.Embed.Caption.

[JsonConstructor]
public Caption(string lang, Blob file)

Parameters

lang string

The language for the caption file.

file Blob

The blob containing the caption file.

Exceptions

ArgumentException

Thrown when lang is null or whitespace.

ArgumentNullException

Thrown when file is null.

Caption(Caption)

protected Caption(Caption original)

Parameters

original Caption

Caption(string, Blob)

Creates a new instance of idunno.Bluesky.Embed.Caption.

[JsonConstructor]
public Caption(string lang, Blob file)

Parameters

lang string

The language for the caption file.

file Blob

The blob containing the caption file.

Exceptions

ArgumentException

Thrown when lang is null or whitespace.

ArgumentNullException

Thrown when file is null.

Caption(Caption)

protected Caption(Caption original)

Parameters

original Caption

Caption(string, Blob)

Creates a new instance of idunno.Bluesky.Embed.Caption.

[JsonConstructor]
public Caption(string lang, Blob file)

Parameters

lang string

The language for the caption file.

file Blob

The blob containing the caption file.

Exceptions

ArgumentException

Thrown when lang is null or whitespace.

ArgumentNullException

Thrown when file is null.

Caption(Caption)

protected Caption(Caption original)

Parameters

original Caption

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

File

Gets the blob containing the caption file.

[JsonInclude]
[JsonRequired]
public Blob File { get; init; }

Property Value

Blob

File

Gets the blob containing the caption file.

[JsonInclude]
[JsonRequired]
public Blob File { get; init; }

Property Value

Blob

File

Gets the blob containing the caption file.

[JsonInclude]
[JsonRequired]
public Blob File { get; init; }

Property Value

Blob

Lang

Gets the language for the caption file.

[JsonInclude]
[JsonRequired]
public string Lang { get; init; }

Property Value

string

Lang

Gets the language for the caption file.

[JsonInclude]
[JsonRequired]
public string Lang { get; init; }

Property Value

string

Lang

Gets the language for the caption file.

[JsonInclude]
[JsonRequired]
public string Lang { get; init; }

Property Value

string

Methods

<Clone>$()

public virtual Caption <Clone>$()

Returns

Caption

<Clone>$()

public virtual Caption <Clone>$()

Returns

Caption

<Clone>$()

public virtual Caption <Clone>$()

Returns

Caption

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Caption?)

public virtual bool Equals(Caption? other)

Parameters

other Caption?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Caption?)

public virtual bool Equals(Caption? other)

Parameters

other Caption?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Caption?)

public virtual bool Equals(Caption? other)

Parameters

other Caption?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Caption?, Caption?)

public static bool operator ==(Caption? left, Caption? right)

Parameters

left Caption?
right Caption?

Returns

bool

operator ==(Caption?, Caption?)

public static bool operator ==(Caption? left, Caption? right)

Parameters

left Caption?
right Caption?

Returns

bool

operator ==(Caption?, Caption?)

public static bool operator ==(Caption? left, Caption? right)

Parameters

left Caption?
right Caption?

Returns

bool

operator !=(Caption?, Caption?)

public static bool operator !=(Caption? left, Caption? right)

Parameters

left Caption?
right Caption?

Returns

bool

operator !=(Caption?, Caption?)

public static bool operator !=(Caption? left, Caption? right)

Parameters

left Caption?
right Caption?

Returns

bool

operator !=(Caption?, Caption?)

public static bool operator !=(Caption? left, Caption? right)

Parameters

left Caption?
right Caption?

Returns

bool