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
langstring-
The language for the caption file.
fileBlob-
The blob containing the caption file.
Exceptions
- ArgumentException
-
Thrown when
langis null or whitespace. - ArgumentNullException
-
Thrown when
fileis null.
Caption(Caption)
protected Caption(Caption original)Parameters
originalCaption
Caption(string, Blob)
Creates a new instance of idunno.Bluesky.Embed.Caption.
[JsonConstructor]
public Caption(string lang, Blob file)Parameters
langstring-
The language for the caption file.
fileBlob-
The blob containing the caption file.
Exceptions
- ArgumentException
-
Thrown when
langis null or whitespace. - ArgumentNullException
-
Thrown when
fileis null.
Caption(Caption)
protected Caption(Caption original)Parameters
originalCaption
Caption(string, Blob)
Creates a new instance of idunno.Bluesky.Embed.Caption.
[JsonConstructor]
public Caption(string lang, Blob file)Parameters
langstring-
The language for the caption file.
fileBlob-
The blob containing the caption file.
Exceptions
- ArgumentException
-
Thrown when
langis null or whitespace. - ArgumentNullException
-
Thrown when
fileis null.
Caption(Caption)
protected Caption(Caption original)Parameters
originalCaption
Properties
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
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
Lang
Gets the language for the caption file.
[JsonInclude]
[JsonRequired]
public string Lang { get; init; }Property Value
Lang
Gets the language for the caption file.
[JsonInclude]
[JsonRequired]
public string Lang { get; init; }Property Value
Methods
<Clone>$()
public virtual Caption <Clone>$()Returns
<Clone>$()
public virtual Caption <Clone>$()Returns
<Clone>$()
public virtual Caption <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Caption?)
public virtual bool Equals(Caption? other)Parameters
otherCaption?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Caption?)
public virtual bool Equals(Caption? other)Parameters
otherCaption?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Caption?)
public virtual bool Equals(Caption? other)Parameters
otherCaption?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(Caption?, Caption?)
public static bool operator ==(Caption? left, Caption? right)Parameters
Returns
operator ==(Caption?, Caption?)
public static bool operator ==(Caption? left, Caption? right)Parameters
Returns
operator ==(Caption?, Caption?)
public static bool operator ==(Caption? left, Caption? right)Parameters
Returns
operator !=(Caption?, Caption?)
public static bool operator !=(Caption? left, Caption? right)Parameters
Returns
operator !=(Caption?, Caption?)
public static bool operator !=(Caption? left, Caption? right)Parameters
Returns
operator !=(Caption?, Caption?)
public static bool operator !=(Caption? left, Caption? right)