PostRepo Class

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

Repo for posts.

public static class PostRepo
Inheritance:
System.Object → PostRepo

Methods

Delete(int) Permanently deletes a Post object from the repository.
Get(int) Gets a Post object from the repository.
GetOption(int) Gets the specified PollOption.
GetOptions(int) Gets a list of PollOption for the specified Post.
Insert(Post) Inserts a Post object into the repository.
Pin(int, int) Pin the specified post.
Restore(int) Restores a trashed Post, i.e. clears the IsTrashed flag.
Search(PostQuery) Performs a search according to the specified PostQuery object.
SelectOption(int, int) Select the specified poll option.
SetOptions(int, IEnumerableOption>) Set poll options for the specified poll/post. Note that this will replace existing options.
Trash(int) Trashes a Post, i.e. sets the IsTrashed flag.
Unpin(int) Unpin the specified post.
Update(Post) Updates an existing Post in the datasource.
UpdateOptions(int, IEnumerableOption>) Update the poll options for the specified poll/post.