ConversationService.GetOneOnOne Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
GetOneOnOne(int, int, bool, bool)
Returns existing one-on-one conversation between 2 people, or null
if no such conversation exists.
public static Conversation GetOneOnOne(int first, int second, bool sudo = false, bool trashed = false)
Parameters
- first
- int
Id of first user
- second
- int
If of second user
- sudo
- bool
true
to perform action as super user, otherwise false
.
- trashed
- bool
true
to return conversation even if trashed, otherwise false
.
Returns
Conversation
Returns an instance of the Conversation class.