C# Класс UniversityChat.Chat.ChatChannels

Показать файл Открыть проект

Открытые методы

Метод Описание
AddRoom ( string roomName ) : void

adds a new room to the rooms repository.

AddUserToRoom ( string roomName, User user ) : void

Add a user to an existing room

DeleteRoom ( string roomName ) : void

delete a room from the rooms repository.

GetRoomList ( ) : ICollection

Get the names of all existing rooms.

GetUsernamesInRoom ( string roomName ) : string[]
GetUsersOfRoom ( string roomName ) : ICollection

gets the users currently connected to a room.

RemoveUserFromRoom ( string roomName, User user ) : void

Remove a user from an existing room.

Приватные методы

Метод Описание
GetRoomByName ( string channelName ) : System.Guid
GetRoomNamesThatUserIsConnectedTo ( User user ) : ICollection

gets the names of the rooms a particular user is connected to.

Описание методов

AddRoom() публичный статический Метод

adds a new room to the rooms repository.
public static AddRoom ( string roomName ) : void
roomName string the name of the room to be added
Результат void

AddUserToRoom() публичный статический Метод

Add a user to an existing room
public static AddUserToRoom ( string roomName, User user ) : void
roomName string the name of the room the user is being added to.
user UniversityChat.Model.User the user being added to room
Результат void

DeleteRoom() публичный статический Метод

delete a room from the rooms repository.
public static DeleteRoom ( string roomName ) : void
roomName string the name of the room to be deleted
Результат void

GetRoomList() публичный статический Метод

Get the names of all existing rooms.
public static GetRoomList ( ) : ICollection
Результат ICollection

GetUsernamesInRoom() публичный статический Метод

public static GetUsernamesInRoom ( string roomName ) : string[]
roomName string
Результат string[]

GetUsersOfRoom() публичный статический Метод

gets the users currently connected to a room.
public static GetUsersOfRoom ( string roomName ) : ICollection
roomName string the name of the room that user names should be gotten for.
Результат ICollection

RemoveUserFromRoom() публичный статический Метод

Remove a user from an existing room.
public static RemoveUserFromRoom ( string roomName, User user ) : void
roomName string the name of the room the user is being removed from.
user UniversityChat.Model.User the user
Результат void