Table of Contents

Class EmbeddedImage

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

Encapsulates information about an embedded image.

public record EmbeddedImage : IEquatable<EmbeddedImage>

Inheritance

Implements

Inherited Members

Constructors

EmbeddedImage(Blob, string, AspectRatio?)

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

[JsonConstructor]
public EmbeddedImage(Blob image, string altText, AspectRatio? aspectRatio = null)

Parameters

image Blob

A idunno.AtProto.Blob containing details of the uploaded image.

altText string

The AltText (for accessibility) for the image.

aspectRatio AspectRatio?

The image's aspect ratio.

Exceptions

ArgumentNullException

Thrown when image or altText is null.

EmbeddedImage(EmbeddedImage)

protected EmbeddedImage(EmbeddedImage original)

Parameters

original EmbeddedImage

EmbeddedImage(Blob, string, AspectRatio?)

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

[JsonConstructor]
public EmbeddedImage(Blob image, string altText, AspectRatio? aspectRatio = null)

Parameters

image Blob

A idunno.AtProto.Blob containing details of the uploaded image.

altText string

The AltText (for accessibility) for the image.

aspectRatio AspectRatio?

The image's aspect ratio.

Exceptions

ArgumentNullException

Thrown when image or altText is null.

EmbeddedImage(EmbeddedImage)

protected EmbeddedImage(EmbeddedImage original)

Parameters

original EmbeddedImage

EmbeddedImage(Blob, string, AspectRatio?)

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

[JsonConstructor]
public EmbeddedImage(Blob image, string altText, AspectRatio? aspectRatio = null)

Parameters

image Blob

A idunno.AtProto.Blob containing details of the uploaded image.

altText string

The AltText (for accessibility) for the image.

aspectRatio AspectRatio?

The image's aspect ratio.

Exceptions

ArgumentNullException

Thrown when image or altText is null.

EmbeddedImage(EmbeddedImage)

protected EmbeddedImage(EmbeddedImage original)

Parameters

original EmbeddedImage

Properties

AltText

Gets AltText (for accessibility) for the image.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }

Property Value

string

AltText

Gets AltText (for accessibility) for the image.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }

Property Value

string

AltText

Gets AltText (for accessibility) for the image.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }

Property Value

string

AspectRatio

The image's aspect ratio, if any.

[JsonInclude]
public AspectRatio? AspectRatio { get; init; }

Property Value

AspectRatio?

AspectRatio

The image's aspect ratio, if any.

[JsonInclude]
public AspectRatio? AspectRatio { get; init; }

Property Value

AspectRatio?

AspectRatio

The image's aspect ratio, if any.

[JsonInclude]
public AspectRatio? AspectRatio { get; init; }

Property Value

AspectRatio?

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

Image

Gets a idunno.AtProto.Blob containing details of the uploaded image.

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

Property Value

Blob

Image

Gets a idunno.AtProto.Blob containing details of the uploaded image.

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

Property Value

Blob

Image

Gets a idunno.AtProto.Blob containing details of the uploaded image.

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

Property Value

Blob

Methods

<Clone>$()

public virtual EmbeddedImage <Clone>$()

Returns

EmbeddedImage

<Clone>$()

public virtual EmbeddedImage <Clone>$()

Returns

EmbeddedImage

<Clone>$()

public virtual EmbeddedImage <Clone>$()

Returns

EmbeddedImage

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedImage?)

public virtual bool Equals(EmbeddedImage? other)

Parameters

other EmbeddedImage?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedImage?)

public virtual bool Equals(EmbeddedImage? other)

Parameters

other EmbeddedImage?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedImage?)

public virtual bool Equals(EmbeddedImage? other)

Parameters

other EmbeddedImage?

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 ==(EmbeddedImage?, EmbeddedImage?)

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

Parameters

left EmbeddedImage?
right EmbeddedImage?

Returns

bool

operator ==(EmbeddedImage?, EmbeddedImage?)

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

Parameters

left EmbeddedImage?
right EmbeddedImage?

Returns

bool

operator ==(EmbeddedImage?, EmbeddedImage?)

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

Parameters

left EmbeddedImage?
right EmbeddedImage?

Returns

bool

operator !=(EmbeddedImage?, EmbeddedImage?)

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

Parameters

left EmbeddedImage?
right EmbeddedImage?

Returns

bool

operator !=(EmbeddedImage?, EmbeddedImage?)

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

Parameters

left EmbeddedImage?
right EmbeddedImage?

Returns

bool

operator !=(EmbeddedImage?, EmbeddedImage?)

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

Parameters

left EmbeddedImage?
right EmbeddedImage?

Returns

bool