C# Class Crosschat.Client.Model.Managers.ChatManager

Inheritance: ManagerBase
Show file Open project: EgorBo/CrossChat-Xamarin.Forms Class Usage Examples

Public Methods

Method Description
Ban ( int playerId, string reason ) : Task

Kick & ban (only for admins)

BringVoiceBack ( int playerId ) : Task

Shut somebody up (only for moders)

ChatManager ( ConnectionManager connectionManager, ChatServiceProxy chatServiceProxy, AccountManager accountManager ) : System
Devoice ( int playerId, string reason ) : Task

Shut somebody up (only for moders)

ReloadChat ( ) : System.Threading.Tasks.Task

Reloads only messages and subject

ReloadUsers ( ) : System.Threading.Tasks.Task

Reloads only online players

ResetPhoto ( int playerId ) : Task

Reset photo (only for moders)

SendImage ( byte image ) : System.Threading.Tasks.Task
SendMessage ( string message ) : void

Send a public message

UnBan ( int playerId ) : Task

Kick & ban (only for admins)

Protected Methods

Method Description
OnUnknownDtoReceived ( BaseDto dto ) : void

Method Details

Ban() public method

Kick & ban (only for admins)
public Ban ( int playerId, string reason ) : Task
playerId int
reason string
return Task

BringVoiceBack() public method

Shut somebody up (only for moders)
public BringVoiceBack ( int playerId ) : Task
playerId int
return Task

ChatManager() public method

public ChatManager ( ConnectionManager connectionManager, ChatServiceProxy chatServiceProxy, AccountManager accountManager ) : System
connectionManager ConnectionManager
chatServiceProxy Crosschat.Client.Model.Proxies.ChatServiceProxy
accountManager AccountManager
return System

Devoice() public method

Shut somebody up (only for moders)
public Devoice ( int playerId, string reason ) : Task
playerId int
reason string
return Task

OnUnknownDtoReceived() protected method

protected OnUnknownDtoReceived ( BaseDto dto ) : void
dto BaseDto
return void

ReloadChat() public method

Reloads only messages and subject
public ReloadChat ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ReloadUsers() public method

Reloads only online players
public ReloadUsers ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ResetPhoto() public method

Reset photo (only for moders)
public ResetPhoto ( int playerId ) : Task
playerId int
return Task

SendImage() public method

public SendImage ( byte image ) : System.Threading.Tasks.Task
image byte
return System.Threading.Tasks.Task

SendMessage() public method

Send a public message
public SendMessage ( string message ) : void
message string
return void

UnBan() public method

Kick & ban (only for admins)
public UnBan ( int playerId ) : Task
playerId int
return Task