From 41f853e5cd5aed3d82e3fd925500883367b706cf Mon Sep 17 00:00:00 2001 From: Ho Dac Hai <hai.hodac@student.unimelb.edu.au> Date: Mon, 21 Oct 2019 22:41:18 +1100 Subject: [PATCH] Replace User.java --- src/server/User.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/server/User.java b/src/server/User.java index a79c8c6..543f26e 100644 --- a/src/server/User.java +++ b/src/server/User.java @@ -7,11 +7,10 @@ import remote.IDrawingUpdate; public class User { private String username; - private remote.IChatUpdate IChatUpdate; - private remote.IDrawingUpdate IDrawingUpdate; - private remote.IClientUpdate IClientUpdate; + private IChatUpdate IChatUpdate; + private IDrawingUpdate IDrawingUpdate; + private IClientUpdate IClientUpdate; private boolean isAdmin; - public User(String username, remote.IChatUpdate IChatUpdate, remote.IClientUpdate IClientUpdate, remote.IDrawingUpdate IDrawingUpdate) public User(String username, IChatUpdate IChatUpdate, IClientUpdate IClientUpdate, IDrawingUpdate IDrawingUpdate) { @@ -42,11 +41,7 @@ public class User return this.IChatUpdate; } - public remote.IClientUpdate getIClientUpdate() - { - return this.IClientUpdate; - } - - public remote.IDrawingUpdate getIDrawingUpdate() { return this.IDrawingUpdate; } + public IDrawingUpdate getIDrawingUpdate() { return this.IDrawingUpdate; } + public IClientUpdate getIClientUpdate() { return this.IClientUpdate; } } -- GitLab