C# Class Blog.Services.Helpers.Wcf.ChatMessagesResource

Inheritance: IChatMessagesResource
Datei anzeigen Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
AddChatMessage ( ChatMessage chatMessage ) : ChatMessage
GetChatMessagesByUserIds ( int fromUserId, int toUserId ) : List
GetChatMessagesByUsernames ( string fromUsername, string toUsername ) : List
GetChatMessagesListByUserId ( int userId ) : ChatMessagesList
GetChatMessagesListByUsername ( string username ) : ChatMessagesList
GetHeartBeat ( ) : bool
GetMoreChatMessagesByUserIds ( int fromUserId, int toUserId, int skip = 25 ) : List
GetMoreChatMessagesByUsernames ( string fromUsername, string toUsername, int skip = 25 ) : List

Method Details

AddChatMessage() public method

public AddChatMessage ( ChatMessage chatMessage ) : ChatMessage
chatMessage Blog.Common.Contracts.ChatMessage
return Blog.Common.Contracts.ChatMessage

GetChatMessagesByUserIds() public method

public GetChatMessagesByUserIds ( int fromUserId, int toUserId ) : List
fromUserId int
toUserId int
return List

GetChatMessagesByUsernames() public method

public GetChatMessagesByUsernames ( string fromUsername, string toUsername ) : List
fromUsername string
toUsername string
return List

GetChatMessagesListByUserId() public method

public GetChatMessagesListByUserId ( int userId ) : ChatMessagesList
userId int
return Blog.Common.Contracts.ViewModels.ChatMessagesList

GetChatMessagesListByUsername() public method

public GetChatMessagesListByUsername ( string username ) : ChatMessagesList
username string
return Blog.Common.Contracts.ViewModels.ChatMessagesList

GetHeartBeat() public method

public GetHeartBeat ( ) : bool
return bool

GetMoreChatMessagesByUserIds() public method

public GetMoreChatMessagesByUserIds ( int fromUserId, int toUserId, int skip = 25 ) : List
fromUserId int
toUserId int
skip int
return List

GetMoreChatMessagesByUsernames() public method

public GetMoreChatMessagesByUsernames ( string fromUsername, string toUsername, int skip = 25 ) : List
fromUsername string
toUsername string
skip int
return List