채팅방
package dev_java.network3;
//단톡방예시
import java.util.List;
import java.util.Vector;
public class Room {
List<TalkServerThread> userList = new Vector<TalkServerThread>();
List<String> nameList = new Vector<String>();
String title = null;//단톡방 이름
String state = null;//대기실, 참여중
int max=0;//최대정원수
int current;//현재 정원수
public Room() {}
public Room(String title,int current) {
this.title = title;
this.current = current;
}
public Room(String title, String state, int current) {
this.title = title;
this.state = state;
this.current = current;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public int getMax() {
return max;
}
public void setMax(int max) {
this.max = max;
}
public int getCurrent() {
return current;
}
public void setCurrent(int current) {
this.current = current;
}
}
'프로젝트' 카테고리의 다른 글
바나나 프젝 깃과 연동 (0) | 2023.01.03 |
---|---|
세미프로젝트-채팅프로그램 만들기 (0) | 2022.12.27 |
댓글