C# Class Skimur.App.Services.Impl.MessageService

Inheritance: IMessageService
Exibir arquivo Open project: skimur/skimur

Public Methods

Method Description
DeleteMention ( System.Guid userId, System.Guid postId, System.Guid commentId ) : void
DeleteNotificationsForComment ( System.Guid commentId ) : void
GetAllMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetCommentRepliesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetMentionsForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetMessageById ( System.Guid id ) : Message
GetMessagesByIds ( List ids ) : List
GetMessagesForThread ( System.Guid messageId ) : List
GetModeratorMailForSubs ( List subs, int skip = null, int take = null ) : SeekedList
GetNumberOfUnreadMessagesForUser ( System.Guid userId ) : int
GetPostRepliesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetPrivateMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetSentMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetSentModeratorMailForSubs ( List subs, int skip = null, int take = null ) : SeekedList
GetUnreadMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
GetUnreadModeratorMailForSubs ( List subs, int skip = null, int take = null ) : SeekedList
InsertMention ( System.Guid userId, System.Guid authorUserId, System.Guid postId, System.Guid commentId ) : void
InsertMessage ( Message message ) : void
MarkMessagesAsRead ( List messages ) : void
MarkMessagesAsUnread ( List messages ) : void
MessageService ( IDbConnectionProvider conn ) : System

Private Methods

Method Description
QueryMessagesForUser ( System.Guid userId, Action query, int skip, int take ) : SeekedList

Method Details

DeleteMention() public method

public DeleteMention ( System.Guid userId, System.Guid postId, System.Guid commentId ) : void
userId System.Guid
postId System.Guid
commentId System.Guid
return void

DeleteNotificationsForComment() public method

public DeleteNotificationsForComment ( System.Guid commentId ) : void
commentId System.Guid
return void

GetAllMessagesForUser() public method

public GetAllMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetCommentRepliesForUser() public method

public GetCommentRepliesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetMentionsForUser() public method

public GetMentionsForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetMessageById() public method

public GetMessageById ( System.Guid id ) : Message
id System.Guid
return Message

GetMessagesByIds() public method

public GetMessagesByIds ( List ids ) : List
ids List
return List

GetMessagesForThread() public method

public GetMessagesForThread ( System.Guid messageId ) : List
messageId System.Guid
return List

GetModeratorMailForSubs() public method

public GetModeratorMailForSubs ( List subs, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
return SeekedList

GetNumberOfUnreadMessagesForUser() public method

public GetNumberOfUnreadMessagesForUser ( System.Guid userId ) : int
userId System.Guid
return int

GetPostRepliesForUser() public method

public GetPostRepliesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetPrivateMessagesForUser() public method

public GetPrivateMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetSentMessagesForUser() public method

public GetSentMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetSentModeratorMailForSubs() public method

public GetSentModeratorMailForSubs ( List subs, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
return SeekedList

GetUnreadMessagesForUser() public method

public GetUnreadMessagesForUser ( System.Guid userId, int skip = null, int take = null ) : SeekedList
userId System.Guid
skip int
take int
return SeekedList

GetUnreadModeratorMailForSubs() public method

public GetUnreadModeratorMailForSubs ( List subs, int skip = null, int take = null ) : SeekedList
subs List
skip int
take int
return SeekedList

InsertMention() public method

public InsertMention ( System.Guid userId, System.Guid authorUserId, System.Guid postId, System.Guid commentId ) : void
userId System.Guid
authorUserId System.Guid
postId System.Guid
commentId System.Guid
return void

InsertMessage() public method

public InsertMessage ( Message message ) : void
message Message
return void

MarkMessagesAsRead() public method

public MarkMessagesAsRead ( List messages ) : void
messages List
return void

MarkMessagesAsUnread() public method

public MarkMessagesAsUnread ( List messages ) : void
messages List
return void

MessageService() public method

public MessageService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
return System