less than 1 minute read

Code Block~

package net.sickhack.remote_touch.model;

import java.util.concurrent.ConcurrentHashMap;

public class Room {
	String roomId;
	long timestamp;
	ConcurrentHashMap<String, MemberStatus> members = new ConcurrentHashMap<>();

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	@Override
	public String toString() {
		return "Room [roomId=" + roomId + ", members=" + members + "]";
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public ConcurrentHashMap<String, MemberStatus> getMembers() {
		return members;
	}

	public void setMembers(ConcurrentHashMap<String, MemberStatus> members) {
		this.members = members;
	}

}

Tags: ,

Updated: