Class EmbeddedVideo
- Namespace
- idunno.Bluesky.Embed
- Assembly
- idunno.Bluesky.dll
Defines the record structure for embedding videos in a post.
public record EmbeddedVideo : EmbeddedMediaBase, IEquatable<AtProtoRecord>, IEquatable<EmbeddedBase>, IEquatable<EmbeddedMediaBase>, IEquatable<EmbeddedVideo>Inheritance
-
AtProtoRecord
Implements
Inherited Members
-
AtProtoRecord.Equals(AtProtoRecord?)AtProtoRecord.GetHashCode()AtProtoRecord.ToString()AtProtoRecord.PrintMembers(StringBuilder)AtProtoRecord.Equals(object?)AtProtoRecord.<Clone>$()AtProtoRecord.EqualityContractAtProtoRecord.ExtensionData
Constructors
EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?, string?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
[JsonConstructor]
public EmbeddedVideo(Blob video, ICollection<Caption>? captions = null, string? altText = null, AspectRatio? aspectRatio = null, string? presentation = null)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionsICollection<Caption>?-
A collection of idunno.Bluesky.Embed.Captions for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
presentationstring?-
A hint to the client about how to present the video.
Exceptions
- ArgumentNullException
-
Thrown when
videois null.
EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
public EmbeddedVideo(Blob video, ICollection<Caption>? captions, string? altText, AspectRatio? aspectRatio)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionsICollection<Caption>?-
A collection of idunno.Bluesky.Embed.Captions for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois null.
EmbeddedVideo(Blob, Caption, string?, AspectRatio?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
public EmbeddedVideo(Blob video, Caption caption, string? altText, AspectRatio? aspectRatio)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionCaption-
A idunno.Bluesky.Embed.Caption for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videoorcaptionis null.
EmbeddedVideo(EmbeddedVideo)
protected EmbeddedVideo(EmbeddedVideo original)Parameters
originalEmbeddedVideo
EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?, string?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
[JsonConstructor]
public EmbeddedVideo(Blob video, ICollection<Caption>? captions = null, string? altText = null, AspectRatio? aspectRatio = null, string? presentation = null)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionsICollection<Caption>?-
A collection of idunno.Bluesky.Embed.Captions for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
presentationstring?-
A hint to the client about how to present the video.
Exceptions
- ArgumentNullException
-
Thrown when
videois null.
EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
public EmbeddedVideo(Blob video, ICollection<Caption>? captions, string? altText, AspectRatio? aspectRatio)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionsICollection<Caption>?-
A collection of idunno.Bluesky.Embed.Captions for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois null.
EmbeddedVideo(Blob, Caption, string?, AspectRatio?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
public EmbeddedVideo(Blob video, Caption caption, string? altText, AspectRatio? aspectRatio)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionCaption-
A idunno.Bluesky.Embed.Caption for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videoorcaptionis null.
EmbeddedVideo(EmbeddedVideo)
protected EmbeddedVideo(EmbeddedVideo original)Parameters
originalEmbeddedVideo
EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?, string?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
[JsonConstructor]
public EmbeddedVideo(Blob video, ICollection<Caption>? captions = null, string? altText = null, AspectRatio? aspectRatio = null, string? presentation = null)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionsICollection<Caption>?-
A collection of idunno.Bluesky.Embed.Captions for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
presentationstring?-
A hint to the client about how to present the video.
Exceptions
- ArgumentNullException
-
Thrown when
videois null.
EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
public EmbeddedVideo(Blob video, ICollection<Caption>? captions, string? altText, AspectRatio? aspectRatio)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionsICollection<Caption>?-
A collection of idunno.Bluesky.Embed.Captions for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois null.
EmbeddedVideo(Blob, Caption, string?, AspectRatio?)
Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo
public EmbeddedVideo(Blob video, Caption caption, string? altText, AspectRatio? aspectRatio)Parameters
videoBlob-
The idunno.AtProto.Blob containing the video.
captionCaption-
A idunno.Bluesky.Embed.Caption for the video, if any.
altTextstring?-
The alternative text for the video, if any.
aspectRatioAspectRatio?-
The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videoorcaptionis null.
EmbeddedVideo(EmbeddedVideo)
protected EmbeddedVideo(EmbeddedVideo original)Parameters
originalEmbeddedVideo
Properties
AltText
Gets the alternative text for the video, if any.
[JsonInclude]
[JsonPropertyName("alt")]
public string? AltText { get; init; }Property Value
AltText
Gets the alternative text for the video, if any.
[JsonInclude]
[JsonPropertyName("alt")]
public string? AltText { get; init; }Property Value
AltText
Gets the alternative text for the video, if any.
[JsonInclude]
[JsonPropertyName("alt")]
public string? AltText { get; init; }Property Value
AspectRatio
Gets the idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
[JsonInclude]
public AspectRatio? AspectRatio { get; init; }Property Value
AspectRatio
Gets the idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
[JsonInclude]
public AspectRatio? AspectRatio { get; init; }Property Value
AspectRatio
Gets the idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.
[JsonInclude]
public AspectRatio? AspectRatio { get; init; }Property Value
Captions
Gets a collection of idunno.Bluesky.Embed.Captions for the video, if any.
[JsonInclude]
public ICollection<Caption>? Captions { get; init; }Property Value
Captions
Gets a collection of idunno.Bluesky.Embed.Captions for the video, if any.
[JsonInclude]
public ICollection<Caption>? Captions { get; init; }Property Value
Captions
Gets a collection of idunno.Bluesky.Embed.Captions for the video, if any.
[JsonInclude]
public ICollection<Caption>? Captions { get; init; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Presentation
Gets a hint to the client about how to present the video. Known values are provided by idunno.Bluesky.Embed.VideoPresentationKnownValues, but may contain any value.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Presentation { get; init; }Property Value
Presentation
Gets a hint to the client about how to present the video. Known values are provided by idunno.Bluesky.Embed.VideoPresentationKnownValues, but may contain any value.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Presentation { get; init; }Property Value
Presentation
Gets a hint to the client about how to present the video. Known values are provided by idunno.Bluesky.Embed.VideoPresentationKnownValues, but may contain any value.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Presentation { get; init; }Property Value
Video
Gets the idunno.AtProto.Blob information for the video.
[JsonInclude]
public Blob Video { get; init; }Property Value
- Blob
Video
Gets the idunno.AtProto.Blob information for the video.
[JsonInclude]
public Blob Video { get; init; }Property Value
- Blob
Video
Gets the idunno.AtProto.Blob information for the video.
[JsonInclude]
public Blob Video { get; init; }Property Value
- Blob
Methods
<Clone>$()
public override EmbeddedVideo <Clone>$()Returns
<Clone>$()
public override EmbeddedVideo <Clone>$()Returns
<Clone>$()
public override EmbeddedVideo <Clone>$()Returns
Equals(EmbeddedVideo?)
Determines whether the specified idunno.Bluesky.Embed.EmbeddedVideo is equal to the current instance.
public virtual bool Equals(EmbeddedVideo? other)Parameters
otherEmbeddedVideo?-
The idunno.Bluesky.Embed.EmbeddedVideo to compare against the current instance.
Returns
Remarks
idunno.Bluesky.Embed.EmbeddedVideo.Captions is compared by its contents rather than by reference.
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedMediaBase?)
public override sealed bool Equals(EmbeddedMediaBase? other)Parameters
otherEmbeddedMediaBase?
Returns
Equals(EmbeddedVideo?)
Determines whether the specified idunno.Bluesky.Embed.EmbeddedVideo is equal to the current instance.
public virtual bool Equals(EmbeddedVideo? other)Parameters
otherEmbeddedVideo?-
The idunno.Bluesky.Embed.EmbeddedVideo to compare against the current instance.
Returns
Remarks
idunno.Bluesky.Embed.EmbeddedVideo.Captions is compared by its contents rather than by reference.
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedMediaBase?)
public override sealed bool Equals(EmbeddedMediaBase? other)Parameters
otherEmbeddedMediaBase?
Returns
Equals(EmbeddedVideo?)
Determines whether the specified idunno.Bluesky.Embed.EmbeddedVideo is equal to the current instance.
public virtual bool Equals(EmbeddedVideo? other)Parameters
otherEmbeddedVideo?-
The idunno.Bluesky.Embed.EmbeddedVideo to compare against the current instance.
Returns
Remarks
idunno.Bluesky.Embed.EmbeddedVideo.Captions is compared by its contents rather than by reference.
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedMediaBase?)
public override sealed bool Equals(EmbeddedMediaBase? other)Parameters
otherEmbeddedMediaBase?
Returns
GetHashCode()
Returns the hash code for the current instance.
public override int GetHashCode()Returns
- int
-
The hash code for the current instance.
GetHashCode()
Returns the hash code for the current instance.
public override int GetHashCode()Returns
- int
-
The hash code for the current instance.
GetHashCode()
Returns the hash code for the current instance.
public override int GetHashCode()Returns
- int
-
The hash code for the current instance.
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override 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 ==(EmbeddedVideo?, EmbeddedVideo?)
public static bool operator ==(EmbeddedVideo? left, EmbeddedVideo? right)Parameters
leftEmbeddedVideo?rightEmbeddedVideo?
Returns
operator ==(EmbeddedVideo?, EmbeddedVideo?)
public static bool operator ==(EmbeddedVideo? left, EmbeddedVideo? right)Parameters
leftEmbeddedVideo?rightEmbeddedVideo?
Returns
operator ==(EmbeddedVideo?, EmbeddedVideo?)
public static bool operator ==(EmbeddedVideo? left, EmbeddedVideo? right)Parameters
leftEmbeddedVideo?rightEmbeddedVideo?
Returns
operator !=(EmbeddedVideo?, EmbeddedVideo?)
public static bool operator !=(EmbeddedVideo? left, EmbeddedVideo? right)Parameters
leftEmbeddedVideo?rightEmbeddedVideo?
Returns
operator !=(EmbeddedVideo?, EmbeddedVideo?)
public static bool operator !=(EmbeddedVideo? left, EmbeddedVideo? right)Parameters
leftEmbeddedVideo?rightEmbeddedVideo?
Returns
operator !=(EmbeddedVideo?, EmbeddedVideo?)
public static bool operator !=(EmbeddedVideo? left, EmbeddedVideo? right)Parameters
leftEmbeddedVideo?rightEmbeddedVideo?