Table of Contents

Class StarterPack

Namespace
idunno.Bluesky.Graph
Assembly
idunno.Bluesky.dll

Encapsulates a Bluesky starter pack.

[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToBaseType)]
[JsonDerivedType(typeof(StarterPack), "app.bsky.graph.starterpack")]
public record StarterPack : BlueskyTimestampedRecord, IEquatable<AtProtoRecord>, IEquatable<BlueskyRecord>, IEquatable<BlueskyTimestampedRecord>, IEquatable<StarterPack>

Inheritance

AtProtoRecord

Implements

Inherited Members

AtProtoRecord.Equals(AtProtoRecord?)
AtProtoRecord.GetHashCode()
AtProtoRecord.ToString()
AtProtoRecord.PrintMembers(StringBuilder)
AtProtoRecord.Equals(object?)
AtProtoRecord.<Clone>$()
AtProtoRecord.EqualityContract
AtProtoRecord.ExtensionData

Constructors

StarterPack(string, string?, AtUri, IReadOnlyList<FeedItem>?, DateTimeOffset, DateTimeOffset?)

Creates a new instance of idunno.Bluesky.Graph.StarterPack.

[JsonConstructor]
public StarterPack(string name, string? description, AtUri list, IReadOnlyList<FeedItem>? feeds, DateTimeOffset createdAt, DateTimeOffset? updatedAt)

Parameters

name string

The name of the starter pack.

description string?

The description of the starter pack.

list AtUri

The idunno.AtProto.AtUri of the starter pack.

feeds IReadOnlyList<FeedItem>?

A collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.

createdAt DateTimeOffset

The System.DateTimeOffset the starter pack was created on.

updatedAt DateTimeOffset?

The System.DateTimeOffset the starter pack was last updated.

Exceptions

ArgumentException

Thrown if name is null or empty.

ArgumentNullException

Thrown if list is null.

ArgumentOutOfRangeException

Thrown if name is > 50 graphemes or > 500 UTF-8 bytes, if description is > 300 graphemes or > 3000 UTF-8 bytes, or if more than 3 feeds are provided in feeds.

StarterPack(StarterPack)

protected StarterPack(StarterPack original)

Parameters

original StarterPack

StarterPack(string, string?, AtUri, IReadOnlyList<FeedItem>?, DateTimeOffset, DateTimeOffset?)

Creates a new instance of idunno.Bluesky.Graph.StarterPack.

[JsonConstructor]
public StarterPack(string name, string? description, AtUri list, IReadOnlyList<FeedItem>? feeds, DateTimeOffset createdAt, DateTimeOffset? updatedAt)

Parameters

name string

The name of the starter pack.

description string?

The description of the starter pack.

list AtUri

The idunno.AtProto.AtUri of the starter pack.

feeds IReadOnlyList<FeedItem>?

A collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.

createdAt DateTimeOffset

The System.DateTimeOffset the starter pack was created on.

updatedAt DateTimeOffset?

The System.DateTimeOffset the starter pack was last updated.

Exceptions

ArgumentException

Thrown if name is null or empty.

ArgumentNullException

Thrown if list is null.

ArgumentOutOfRangeException

Thrown if name is > 50 graphemes or > 500 UTF-8 bytes, if description is > 300 graphemes or > 3000 UTF-8 bytes, or if more than 3 feeds are provided in feeds.

StarterPack(StarterPack)

protected StarterPack(StarterPack original)

Parameters

original StarterPack

StarterPack(string, string?, AtUri, IReadOnlyList<FeedItem>?, DateTimeOffset, DateTimeOffset?)

Creates a new instance of idunno.Bluesky.Graph.StarterPack.

[JsonConstructor]
public StarterPack(string name, string? description, AtUri list, IReadOnlyList<FeedItem>? feeds, DateTimeOffset createdAt, DateTimeOffset? updatedAt)

Parameters

name string

The name of the starter pack.

description string?

The description of the starter pack.

list AtUri

The idunno.AtProto.AtUri of the starter pack.

feeds IReadOnlyList<FeedItem>?

A collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.

createdAt DateTimeOffset

The System.DateTimeOffset the starter pack was created on.

updatedAt DateTimeOffset?

The System.DateTimeOffset the starter pack was last updated.

Exceptions

ArgumentException

Thrown if name is null or empty.

ArgumentNullException

Thrown if list is null.

ArgumentOutOfRangeException

Thrown if name is > 50 graphemes or > 500 UTF-8 bytes, if description is > 300 graphemes or > 3000 UTF-8 bytes, or if more than 3 feeds are provided in feeds.

StarterPack(StarterPack)

protected StarterPack(StarterPack original)

Parameters

original StarterPack

Properties

Description

Gets the description of the starter pack

[JsonInclude]
public string? Description { get; init; }

Property Value

string?

Exceptions

ArgumentOutOfRangeException

Thrown when the value exceeds 300 graphemes or 3000 UTF-8 bytes.

Description

Gets the description of the starter pack

[JsonInclude]
public string? Description { get; init; }

Property Value

string?

Exceptions

ArgumentOutOfRangeException

Thrown when the value exceeds 300 graphemes or 3000 UTF-8 bytes.

Description

Gets the description of the starter pack

[JsonInclude]
public string? Description { get; init; }

Property Value

string?

Exceptions

ArgumentOutOfRangeException

Thrown when the value exceeds 300 graphemes or 3000 UTF-8 bytes.

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Feeds

Gets a collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.

[JsonInclude]
public IReadOnlyList<FeedItem>? Feeds { get; init; }

Property Value

IReadOnlyList<FeedItem>?

Feeds

Gets a collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.

[JsonInclude]
public IReadOnlyList<FeedItem>? Feeds { get; init; }

Property Value

IReadOnlyList<FeedItem>?

Feeds

Gets a collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.

[JsonInclude]
public IReadOnlyList<FeedItem>? Feeds { get; init; }

Property Value

IReadOnlyList<FeedItem>?

List

Gets the idunno.AtProto.AtUri of the starter pack.

[JsonInclude]
public AtUri List { get; set; }

Property Value

AtUri

Exceptions

ArgumentNullException

Thrown when value is null.

List

Gets the idunno.AtProto.AtUri of the starter pack.

[JsonInclude]
public AtUri List { get; set; }

Property Value

AtUri

Exceptions

ArgumentNullException

Thrown when value is null.

List

Gets the idunno.AtProto.AtUri of the starter pack.

[JsonInclude]
public AtUri List { get; set; }

Property Value

AtUri

Exceptions

ArgumentNullException

Thrown when value is null.

Name

Gets the name of the starter pack.

[JsonInclude]
[JsonRequired]
public string Name { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when value is null or empty.

ArgumentOutOfRangeException

Thrown when value exceeds 50 graphemes or 500 UTF-8 bytes.

Name

Gets the name of the starter pack.

[JsonInclude]
[JsonRequired]
public string Name { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when value is null or empty.

ArgumentOutOfRangeException

Thrown when value exceeds 50 graphemes or 500 UTF-8 bytes.

Name

Gets the name of the starter pack.

[JsonInclude]
[JsonRequired]
public string Name { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when value is null or empty.

ArgumentOutOfRangeException

Thrown when value exceeds 50 graphemes or 500 UTF-8 bytes.

UpdatedAt

The System.DateTimeOffset the starter pack was last updated.

[JsonInclude]
public DateTimeOffset? UpdatedAt { get; init; }

Property Value

DateTimeOffset?

UpdatedAt

The System.DateTimeOffset the starter pack was last updated.

[JsonInclude]
public DateTimeOffset? UpdatedAt { get; init; }

Property Value

DateTimeOffset?

UpdatedAt

The System.DateTimeOffset the starter pack was last updated.

[JsonInclude]
public DateTimeOffset? UpdatedAt { get; init; }

Property Value

DateTimeOffset?

Methods

<Clone>$()

public override StarterPack <Clone>$()

Returns

StarterPack

<Clone>$()

public override StarterPack <Clone>$()

Returns

StarterPack

<Clone>$()

public override StarterPack <Clone>$()

Returns

StarterPack

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(StarterPack?)

public virtual bool Equals(StarterPack? other)

Parameters

other StarterPack?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(StarterPack?)

public virtual bool Equals(StarterPack? other)

Parameters

other StarterPack?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(StarterPack?)

public virtual bool Equals(StarterPack? other)

Parameters

other StarterPack?

Returns

bool

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override 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 ==(StarterPack?, StarterPack?)

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

Parameters

left StarterPack?
right StarterPack?

Returns

bool

operator ==(StarterPack?, StarterPack?)

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

Parameters

left StarterPack?
right StarterPack?

Returns

bool

operator ==(StarterPack?, StarterPack?)

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

Parameters

left StarterPack?
right StarterPack?

Returns

bool

operator !=(StarterPack?, StarterPack?)

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

Parameters

left StarterPack?
right StarterPack?

Returns

bool

operator !=(StarterPack?, StarterPack?)

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

Parameters

left StarterPack?
right StarterPack?

Returns

bool

operator !=(StarterPack?, StarterPack?)

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

Parameters

left StarterPack?
right StarterPack?

Returns

bool