MessageService.Get Method

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

Overloads

Get(IEnumerable, bool, bool) Gets a list of Message objects from the repository.
Get(int, bool, bool) Gets the specified Message.

Get(IEnumerable, bool, bool)

Gets a list of Message objects from the repository.

public static IEnumerable<Message> Get(IEnumerable<int> ids, bool sudo = false, bool trashed = false)

Parameters

ids
System.Collections.Generic.IEnumerable

Ids of the messages to get.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return trashed messages, otherwise false.

Returns

System.Collections.Generic.IEnumerable

Returns a list of Message objects.

Get(int, bool, bool)

Gets the specified Message.

public static Message Get(int id, bool sudo = false, bool trashed = false)

Parameters

id
int

Id of the post.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return app even if trashed, otherwise false.

Returns

Message

Returns an instance of the Message class.