package event;

import client.RaspberryLifeClient;

/**
 * Created by Peter Mösenthin.
 */
public class NewClientEvent {

    public static final int TYPE_WEB_SOCKET = 0;
    public static final int TYPE_JAVA_SOCKET = 1;

    private int type;

    private RaspberryLifeClient client;

    public NewClientEvent(int type, RaspberryLifeClient client) {
        this.type = type;
        this.client = client;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public RaspberryLifeClient getClient() {
        return client;
    }

    public void setClient(RaspberryLifeClient client) {
        this.client = client;
    }
}

@@ -130,73 +130,52 @@
 lic 
-static final int TYPE_WEB_SOCKET = 0;%0A    public static final int
+enum Type %7B%0A        TYPE_WEB_SOCKET,%0A       
  TYP
@@ -191,13 +191,14 @@
 CKET
- = 1;
+%0A    %7D
 %0A%0A  
@@ -207,19 +207,20 @@
 private 
-int
+Type
  type;%0A%0A
@@ -286,19 +286,20 @@
 ntEvent(
-int
+Type
  type, R
@@ -401,19 +401,20 @@
  public 
-int
+Type
  getType
@@ -474,11 +474,12 @@
 ype(
-int
+Type
  typ

change message type to enum