C# Class Crosschat.Server.Application.Services.ChatService

Inheritance: Crosschat.Server.Application.Seedwork.AppService
Exibir arquivo Open project: EgorBo/CrossChat-Xamarin.Forms

Public Methods

Method Description
Ban ( ISession session, BanRequest request ) : BanResponse
ChatService ( ISessionManager sessionManager, ISettings settings, IFileStorage fileStorage, ProfileChangesNotificator profileChangesNotificator, IUnitOfWorkFactory unitOfWorkFactory ) : System.Collections.Generic
Devoice ( ISession session, DevoiceRequest request ) : DevoiceResponse
GetLastMessages ( ISession session, LastMessageRequest request ) : LastMessageResponse
GetOnlineUsers ( ISession session, GetOnlineUsersRequest request ) : GetOnlineUsersResponse
GrantModership ( ISession session, GrantModershipRequest request ) : GrantModershipResponse
PublicMessage ( ISession session, PublicMessageRequest msgRequest ) : void

NOTE: we don't need an app-level ack for this method :-)

RemoveModership ( ISession session, RemoveModershipRequest request ) : RemoveModershipResponse
ResetPhoto ( ISession session, ResetPhotoRequest request ) : ResetPhotoResponse

Resets user's photo to default one

SendImage ( ISession session, SendImageRequest request ) : SendImageResponse

Private Methods

Method Description
SessionManagerOnAuthenticatedUserConnected ( object sender, SessionEventArgs e ) : void
SessionManagerOnAuthenticatedUserDisconnected ( object sender, SessionEventArgs e ) : void

Method Details

Ban() public method

public Ban ( ISession session, BanRequest request ) : BanResponse
session ISession
request Crosschat.Server.Application.DataTransferObjects.Requests.BanRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.BanResponse

ChatService() public method

public ChatService ( ISessionManager sessionManager, ISettings settings, IFileStorage fileStorage, ProfileChangesNotificator profileChangesNotificator, IUnitOfWorkFactory unitOfWorkFactory ) : System.Collections.Generic
sessionManager ISessionManager
settings ISettings
fileStorage IFileStorage
profileChangesNotificator Crosschat.Server.Application.Services.Helpers.ProfileChangesNotificator
unitOfWorkFactory IUnitOfWorkFactory
return System.Collections.Generic

Devoice() public method

public Devoice ( ISession session, DevoiceRequest request ) : DevoiceResponse
session ISession
request Crosschat.Server.Application.DataTransferObjects.Requests.DevoiceRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.DevoiceResponse

GetLastMessages() public method

public GetLastMessages ( ISession session, LastMessageRequest request ) : LastMessageResponse
session ISession
request LastMessageRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.LastMessageResponse

GetOnlineUsers() public method

public GetOnlineUsers ( ISession session, GetOnlineUsersRequest request ) : GetOnlineUsersResponse
session ISession
request GetOnlineUsersRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.GetOnlineUsersResponse

GrantModership() public method

public GrantModership ( ISession session, GrantModershipRequest request ) : GrantModershipResponse
session ISession
request Crosschat.Server.Application.DataTransferObjects.Requests.GrantModershipRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.GrantModershipResponse

PublicMessage() public method

NOTE: we don't need an app-level ack for this method :-)
public PublicMessage ( ISession session, PublicMessageRequest msgRequest ) : void
session ISession
msgRequest Crosschat.Server.Application.DataTransferObjects.Requests.PublicMessageRequest
return void

RemoveModership() public method

public RemoveModership ( ISession session, RemoveModershipRequest request ) : RemoveModershipResponse
session ISession
request Crosschat.Server.Application.DataTransferObjects.Requests.RemoveModershipRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.RemoveModershipResponse

ResetPhoto() public method

Resets user's photo to default one
public ResetPhoto ( ISession session, ResetPhotoRequest request ) : ResetPhotoResponse
session ISession
request Crosschat.Server.Application.DataTransferObjects.Requests.ResetPhotoRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.ResetPhotoResponse

SendImage() public method

public SendImage ( ISession session, SendImageRequest request ) : SendImageResponse
session ISession
request Crosschat.Server.Application.DataTransferObjects.Requests.SendImageRequest
return Crosschat.Server.Application.DataTransferObjects.Requests.SendImageResponse