Class PostSelfLabels
- Namespace
- idunno.Bluesky
- Assembly
- idunno.Bluesky.dll
Properties for labels to apply to a post.
public sealed record PostSelfLabels : IEquatable<PostSelfLabels>Inheritance
Implements
Inherited Members
Constructors
PostSelfLabels()
Creates a new instance of idunno.Bluesky.PostSelfLabels
public PostSelfLabels()PostSelfLabels(SelfLabels)
Creates a new instance of idunno.Bluesky.PostSelfLabels
public PostSelfLabels(SelfLabels labels)Parameters
labelsSelfLabels-
The AtProto idunno.AtProto.Labels.SelfLabels to extract specific Bluesky post self labels from.
PostSelfLabels()
Creates a new instance of idunno.Bluesky.PostSelfLabels
public PostSelfLabels()PostSelfLabels(SelfLabels)
Creates a new instance of idunno.Bluesky.PostSelfLabels
public PostSelfLabels(SelfLabels labels)Parameters
labelsSelfLabels-
The AtProto idunno.AtProto.Labels.SelfLabels to extract specific Bluesky post self labels from.
PostSelfLabels()
Creates a new instance of idunno.Bluesky.PostSelfLabels
public PostSelfLabels()PostSelfLabels(SelfLabels)
Creates a new instance of idunno.Bluesky.PostSelfLabels
public PostSelfLabels(SelfLabels labels)Parameters
labelsSelfLabels-
The AtProto idunno.AtProto.Labels.SelfLabels to extract specific Bluesky post self labels from.
Properties
GraphicMedia
Gets or sets a flag indicating the post media contains graphic media. This behaves like idunno.Bluesky.PostSelfLabels.Porn but is for violence or gore.
public bool GraphicMedia { get; set; }Property Value
GraphicMedia
Gets or sets a flag indicating the post media contains graphic media. This behaves like idunno.Bluesky.PostSelfLabels.Porn but is for violence or gore.
public bool GraphicMedia { get; set; }Property Value
GraphicMedia
Gets or sets a flag indicating the post media contains graphic media. This behaves like idunno.Bluesky.PostSelfLabels.Porn but is for violence or gore.
public bool GraphicMedia { get; set; }Property Value
Nudity
Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.
public bool Nudity { get; set; }Property Value
Nudity
Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.
public bool Nudity { get; set; }Property Value
Nudity
Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.
public bool Nudity { get; set; }Property Value
Porn
Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.
public bool Porn { get; set; }Property Value
Porn
Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.
public bool Porn { get; set; }Property Value
Porn
Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.
public bool Porn { get; set; }Property Value
SexualContent
Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.PostSelfLabels.Porn but is meant to handle less intense sexual content.
public bool SexualContent { get; set; }Property Value
SexualContent
Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.PostSelfLabels.Porn but is meant to handle less intense sexual content.
public bool SexualContent { get; set; }Property Value
SexualContent
Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.PostSelfLabels.Porn but is meant to handle less intense sexual content.
public bool SexualContent { get; set; }Property Value
Methods
<Clone>$()
public PostSelfLabels <Clone>$()Returns
<Clone>$()
public PostSelfLabels <Clone>$()Returns
<Clone>$()
public PostSelfLabels <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostSelfLabels?)
public bool Equals(PostSelfLabels? other)Parameters
otherPostSelfLabels?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostSelfLabels?)
public bool Equals(PostSelfLabels? other)Parameters
otherPostSelfLabels?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostSelfLabels?)
public bool Equals(PostSelfLabels? other)Parameters
otherPostSelfLabels?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
ToSelfLabels()
Converts this instance of idunno.Bluesky.PostSelfLabels to an instance of idunno.AtProto.Labels.SelfLabels.
public SelfLabels ToSelfLabels()Returns
- SelfLabels
-
A new instance of idunno.AtProto.Labels.SelfLabels containing the post specific labels set in this instance.
ToSelfLabels()
Converts this instance of idunno.Bluesky.PostSelfLabels to an instance of idunno.AtProto.Labels.SelfLabels.
public SelfLabels ToSelfLabels()Returns
- SelfLabels
-
A new instance of idunno.AtProto.Labels.SelfLabels containing the post specific labels set in this instance.
ToSelfLabels()
Converts this instance of idunno.Bluesky.PostSelfLabels to an instance of idunno.AtProto.Labels.SelfLabels.
public SelfLabels ToSelfLabels()Returns
- SelfLabels
-
A new instance of idunno.AtProto.Labels.SelfLabels containing the post specific labels set in this instance.
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(PostSelfLabels?, PostSelfLabels?)
public static bool operator ==(PostSelfLabels? left, PostSelfLabels? right)Parameters
leftPostSelfLabels?rightPostSelfLabels?
Returns
operator ==(PostSelfLabels?, PostSelfLabels?)
public static bool operator ==(PostSelfLabels? left, PostSelfLabels? right)Parameters
leftPostSelfLabels?rightPostSelfLabels?
Returns
operator ==(PostSelfLabels?, PostSelfLabels?)
public static bool operator ==(PostSelfLabels? left, PostSelfLabels? right)Parameters
leftPostSelfLabels?rightPostSelfLabels?
Returns
explicit operator SelfLabels(PostSelfLabels)
Converts postSelfLabels to an instance of idunno.AtProto.Labels.SelfLabels.
public static explicit operator SelfLabels(PostSelfLabels postSelfLabels)Parameters
postSelfLabelsPostSelfLabels-
The instance of idunno.Bluesky.PostSelfLabels to convert.1
Returns
- SelfLabels
-
A new instance of idunno.AtProto.Labels.SelfLabels containing the post specific labels from
postSelfLabels.
Exceptions
- ArgumentNullException
-
Thrown when
postSelfLabelsis null.
explicit operator SelfLabels(PostSelfLabels)
Converts postSelfLabels to an instance of idunno.AtProto.Labels.SelfLabels.
public static explicit operator SelfLabels(PostSelfLabels postSelfLabels)Parameters
postSelfLabelsPostSelfLabels-
The instance of idunno.Bluesky.PostSelfLabels to convert.1
Returns
- SelfLabels
-
A new instance of idunno.AtProto.Labels.SelfLabels containing the post specific labels from
postSelfLabels.
Exceptions
- ArgumentNullException
-
Thrown when
postSelfLabelsis null.
explicit operator SelfLabels(PostSelfLabels)
Converts postSelfLabels to an instance of idunno.AtProto.Labels.SelfLabels.
public static explicit operator SelfLabels(PostSelfLabels postSelfLabels)Parameters
postSelfLabelsPostSelfLabels-
The instance of idunno.Bluesky.PostSelfLabels to convert.1
Returns
- SelfLabels
-
A new instance of idunno.AtProto.Labels.SelfLabels containing the post specific labels from
postSelfLabels.
Exceptions
- ArgumentNullException
-
Thrown when
postSelfLabelsis null.
operator !=(PostSelfLabels?, PostSelfLabels?)
public static bool operator !=(PostSelfLabels? left, PostSelfLabels? right)Parameters
leftPostSelfLabels?rightPostSelfLabels?
Returns
operator !=(PostSelfLabels?, PostSelfLabels?)
public static bool operator !=(PostSelfLabels? left, PostSelfLabels? right)Parameters
leftPostSelfLabels?rightPostSelfLabels?
Returns
operator !=(PostSelfLabels?, PostSelfLabels?)
public static bool operator !=(PostSelfLabels? left, PostSelfLabels? right)Parameters
leftPostSelfLabels?rightPostSelfLabels?