package ru.nsu.ccfit.bogush;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.net.Socket;

public class User {
	private static final Logger logger = LogManager.getLogger();

	private Server server;
	private Socket socket;
	private String name;

	public User(Server server, Socket socket) {
		logger.traceEntry("User");
		this.server = server;
		this.socket = socket;
		logger.traceExit("User", null);
	}
}

@@ -27,270 +27,171 @@
 h;%0A%0A
-import org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0A%0Aimport java.net.Socket
+public class User %7B%0A%09private String nickname
 ;%0A%0A
+%09
 public 
-class User %7B%0A%09private static final Logger logger = LogManager.getLogger();%0A%0A%09private Server server;%0A%09private Socket socket;%0A%09private String 
+User(String nickname) %7B%0A%09%09this.nickname = nickname;%0A%09%7D%0A%0A%09public String getNickname() %7B%0A%09%09return nick
 name;
+%0A%09%7D
 %0A%0A%09p
@@ -200,153 +200,136 @@
 lic 
-User(Server server, Socket socket) %7B%0A%09%09logger.traceEntry(%22User%22);%0A%09%09this.server = server;%0A%09%09this.socket = socket;%0A%09%09logger.traceExit(%22User%22, null
+void setNickname(String nickname) %7B%0A%09%09this.nickname = nickname;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return getNickname(
 );%0A%09

Implement User