Post Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

An individual post.

[Boost(0.8F)]
public class Post : Expando, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, IAppEntity, ITrashable, IHasAttachments, IHasEmbeds, ILikeable, IStarrable, IFollowable, ITaggable, ICommentable, ISpaceEntity, IEntity, ICloneable, IPinnable, IValidatableObject
Inheritance:
System.Object → ExpandoPost
Attributes:
BoostAttribute
Implements:
IExpando, IAppEntity, ITrashable, IHasAttachments, IHasEmbeds, ILikeable, IStarrable, IFollowable, ITaggable, ICommentable, ISpaceEntity, IEntity, IPinnable

Constructors

Post() Initializes a new instance of the Post class.

Properties

AppId Gets the id of the App where the post is located.
AttachmentIds Gets the ids of all files attached to the Post.
Color Gets or sets the post color (for pinned posts).
CommentIds Gets the ids of all comments for the entity.
CreatedAt Gets or sets the time (UTC) the post was initially created.
CreatedById Gets or sets the id of the User that posted the Post.
EmbedIds Gets the ids of all Embeds attached to the Post.
FollowedByIds Gets the ids of the Users that follow the Post.
Html Gets or sets the post text as html.
Id Gets the post id.
LikedByIds Gets the ids of the Users that like the Post.
ModifiedAt Gets or sets the time (UTC) the Post was last updated.
ModifiedById Gets or sets the id of the User that last updated the Post.
PinnedAt Gets or sets the time (UTC) the Post was pinned.
PinnedById Gets or sets the id of the User that pinned the Post.
Poll Gets the poll associated with this post (if any).
SpaceId Gets the id of the Space where the post lives.
StarredByIds Gets the ids of the users that have starred the Post.
Tags Gets the list of unique tags in this comment.
Text Gets or sets the post text.
Timestamp Gets the timestamp.
TrashedAt Gets the time (UTC) the Post was trashed.
TrashedById Gets the id of the User that trashed this Post.
Type Gets the type of the entity.

Methods

Clone() Creates a new object that is a copy of the current instance.
GetExcerpt(Boolean) Gets an excerpt or summary suitable for display in lists and search results.
GetIcon() Gets an icon suitable for display in the user interface.
GetTitle() Gets a title suitable for display in lists and search results.
ToString()
Validate(ValidationContext) Performs custom validation.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
App(Post) Gets the app where the post is located.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
AvatarImg(Post, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)