C# 클래스 UniversityChat.Chat.ChatChannels

파일 보기 프로젝트 열기: jschefter/UniversityChat

공개 메소드들

메소드 설명
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