EntityService Class


Service layer for entities.

public static class EntityService
System.Object → EntityService


Delete(IEntity, bool) Permanently delete a thrashed entity.
FindApp(IEntity) Get the App where the specified entity is located.
FindSpace(IEntity) Get the Space where the specified entity is located.
Follow(TFollowable, int?, bool) Follow the specified entity.
GetLikeCount() Gets the total number of likes in the system.
GetMentions(IEntity) Gets the list of mentions for the given entity.
GetStarCount() Gets the total number of stars in the system.
GetTagCount(bool) Gets the total number of tags in the system.
GetTags(IEntity) Gets the list of tags for the given entity.
Like(TLikeable, int?, bool) Like the specified entity.
Restore(IEntity, bool) Restore a thrashed entity.
Search(EntityQuery) Performs a search according to the specified EntityQuery object.
Search(TrashQuery) Returns a list of trashed entities from the recycle bin matching the supplied query.
Share(IEntity, string) Share the specified entity with people @mentioned in the text.
Star(TStarrable, int?, bool) Star the specified entity.
Unfollow(TFollowable, int?, bool) Unfollow the specified entity.
Unlike(TLikeable, int?, bool) Unlike the specified entity.
Unstar(TStarrable, int?, bool) Unstar the specified entity.
Unvisit(IVisitable, int?) Removes a visit.
Visit(IVisitable, int?) Mark the specified entity as visited.