PostService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service layer for posts.

public static class PostService
Inheritance:
System.Object → PostService

Methods

Delete(Int32, Boolean) Permanently deletes a Post and associated data.
Get(Int32, Boolean) Gets the specified Post.
GetOptions(Int32) Gets the poll attached to the the specified Post.
GetPosts(Int32, Query) Get messages posted to the specified app.
GetVoters(Int32) Gets the list of voters for the specified PollOption.
Insert(Post, App, IEnumerable, IEnumerable, IEnumerableOption>, Boolean) Inserts a Post.
Move(Int32, App, Boolean) Moves a Post to another App.
Pin(Int32, Nullable) Pin the specified post.
Restore(Int32, Boolean) Restores a trashed Post, i.e. clears the IsTrashed flag.
Search(PostQuery) Performs a search according to the specified PostQuery object.
Trash(Int32, Boolean) Sends a Post to the trash, i.e. sets the IsTrashed flag.
Unpin(Int32) Unpin the specified post.
Update(Post, IEnumerable, IEnumerableOption>, IEnumerable, Boolean) Updates a Post.
Vote(Int32, Nullable) Vote for the specified PollOption.