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.EqualityContractAtProtoRecord.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
namestring-
The name of the starter pack.
descriptionstring?-
The description of the starter pack.
listAtUri-
The idunno.AtProto.AtUri of the starter pack.
feedsIReadOnlyList<FeedItem>?-
A collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.
createdAtDateTimeOffset-
The System.DateTimeOffset the starter pack was created on.
updatedAtDateTimeOffset?-
The System.DateTimeOffset the starter pack was last updated.
Exceptions
- ArgumentException
-
Thrown if
nameis null or empty. - ArgumentNullException
-
Thrown if
listis null. - ArgumentOutOfRangeException
-
Thrown if
nameis > 50 graphemes or > 500 UTF-8 bytes, ifdescriptionis > 300 graphemes or > 3000 UTF-8 bytes, or if more than 3 feeds are provided infeeds.
StarterPack(StarterPack)
protected StarterPack(StarterPack original)Parameters
originalStarterPack
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
namestring-
The name of the starter pack.
descriptionstring?-
The description of the starter pack.
listAtUri-
The idunno.AtProto.AtUri of the starter pack.
feedsIReadOnlyList<FeedItem>?-
A collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.
createdAtDateTimeOffset-
The System.DateTimeOffset the starter pack was created on.
updatedAtDateTimeOffset?-
The System.DateTimeOffset the starter pack was last updated.
Exceptions
- ArgumentException
-
Thrown if
nameis null or empty. - ArgumentNullException
-
Thrown if
listis null. - ArgumentOutOfRangeException
-
Thrown if
nameis > 50 graphemes or > 500 UTF-8 bytes, ifdescriptionis > 300 graphemes or > 3000 UTF-8 bytes, or if more than 3 feeds are provided infeeds.
StarterPack(StarterPack)
protected StarterPack(StarterPack original)Parameters
originalStarterPack
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
namestring-
The name of the starter pack.
descriptionstring?-
The description of the starter pack.
listAtUri-
The idunno.AtProto.AtUri of the starter pack.
feedsIReadOnlyList<FeedItem>?-
A collection of idunno.Bluesky.Feed.GeneratorViews for any feeds in the starter pack.
createdAtDateTimeOffset-
The System.DateTimeOffset the starter pack was created on.
updatedAtDateTimeOffset?-
The System.DateTimeOffset the starter pack was last updated.
Exceptions
- ArgumentException
-
Thrown if
nameis null or empty. - ArgumentNullException
-
Thrown if
listis null. - ArgumentOutOfRangeException
-
Thrown if
nameis > 50 graphemes or > 500 UTF-8 bytes, ifdescriptionis > 300 graphemes or > 3000 UTF-8 bytes, or if more than 3 feeds are provided infeeds.
StarterPack(StarterPack)
protected StarterPack(StarterPack original)Parameters
originalStarterPack
Properties
Description
Gets the description of the starter pack
[JsonInclude]
public string? Description { get; init; }Property Value
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
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
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the value exceeds 300 graphemes or 3000 UTF-8 bytes.
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
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
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
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
List
Gets the idunno.AtProto.AtUri of the starter pack.
[JsonInclude]
public AtUri List { get; set; }Property Value
- AtUri
Exceptions
- ArgumentNullException
-
Thrown when
valueis null.
List
Gets the idunno.AtProto.AtUri of the starter pack.
[JsonInclude]
public AtUri List { get; set; }Property Value
- AtUri
Exceptions
- ArgumentNullException
-
Thrown when
valueis null.
List
Gets the idunno.AtProto.AtUri of the starter pack.
[JsonInclude]
public AtUri List { get; set; }Property Value
- AtUri
Exceptions
- ArgumentNullException
-
Thrown when
valueis null.
Name
Gets the name of the starter pack.
[JsonInclude]
[JsonRequired]
public string Name { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when
valueis null or empty. - ArgumentOutOfRangeException
-
Thrown when
valueexceeds 50 graphemes or 500 UTF-8 bytes.
Name
Gets the name of the starter pack.
[JsonInclude]
[JsonRequired]
public string Name { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when
valueis null or empty. - ArgumentOutOfRangeException
-
Thrown when
valueexceeds 50 graphemes or 500 UTF-8 bytes.
Name
Gets the name of the starter pack.
[JsonInclude]
[JsonRequired]
public string Name { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when
valueis null or empty. - ArgumentOutOfRangeException
-
Thrown when
valueexceeds 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
UpdatedAt
The System.DateTimeOffset the starter pack was last updated.
[JsonInclude]
public DateTimeOffset? UpdatedAt { get; init; }Property Value
UpdatedAt
The System.DateTimeOffset the starter pack was last updated.
[JsonInclude]
public DateTimeOffset? UpdatedAt { get; init; }Property Value
Methods
<Clone>$()
public override StarterPack <Clone>$()Returns
<Clone>$()
public override StarterPack <Clone>$()Returns
<Clone>$()
public override StarterPack <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(StarterPack?)
public virtual bool Equals(StarterPack? other)Parameters
otherStarterPack?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(StarterPack?)
public virtual bool Equals(StarterPack? other)Parameters
otherStarterPack?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(StarterPack?)
public virtual bool Equals(StarterPack? other)Parameters
otherStarterPack?
Returns
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
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 ==(StarterPack?, StarterPack?)
public static bool operator ==(StarterPack? left, StarterPack? right)Parameters
leftStarterPack?rightStarterPack?
Returns
operator ==(StarterPack?, StarterPack?)
public static bool operator ==(StarterPack? left, StarterPack? right)Parameters
leftStarterPack?rightStarterPack?
Returns
operator ==(StarterPack?, StarterPack?)
public static bool operator ==(StarterPack? left, StarterPack? right)Parameters
leftStarterPack?rightStarterPack?
Returns
operator !=(StarterPack?, StarterPack?)
public static bool operator !=(StarterPack? left, StarterPack? right)Parameters
leftStarterPack?rightStarterPack?
Returns
operator !=(StarterPack?, StarterPack?)
public static bool operator !=(StarterPack? left, StarterPack? right)Parameters
leftStarterPack?rightStarterPack?
Returns
operator !=(StarterPack?, StarterPack?)
public static bool operator !=(StarterPack? left, StarterPack? right)Parameters
leftStarterPack?rightStarterPack?