package de.haw_hamburg.vs_ws2015.spahl_haug.events_rest.dto;

public class EventDTO {
    private String type; // Event Type e.g. bank transfer, rent, got to jail, estate transfer
    private String name;
    private String reason;
    private PlayerDTO player;

    public EventDTO() {}

    public EventDTO(String type, String name, String reason, PlayerDTO player) {
        this.type = type;
        this.name = name;
        this.reason = reason;
        this.player = player;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public String getReason() {
        return reason;
    }

    public PlayerDTO getPlayer() {
        return player;
    }
}

@@ -79,20 +79,17 @@
 ntDTO %7B%0A
-    
+%09
 private 
@@ -170,20 +170,17 @@
 ransfer%0A
-    
+%09
 private 
@@ -192,20 +192,17 @@
 g name;%0A
-    
+%09
 private 
@@ -220,20 +220,17 @@
 on;%0A
-    
+%09
 private 
 Play
@@ -229,31 +229,51 @@
 ate 
-PlayerDTO player;%0A%0A    
+String player;%0A%09private String resource;%0A%0A%09
 publ
@@ -290,20 +290,17 @@
 O() %7B%7D%0A%0A
-    
+%09
 public E
@@ -307,16 +307,22 @@
 ventDTO(
+final 
 String t
@@ -325,16 +325,22 @@
 ng type,
+ final
  String 
@@ -344,16 +344,22 @@
 ng name,
+ final
  String 
@@ -365,26 +365,51 @@
  reason,
- PlayerDTO
+final String resource, final String
  player)
@@ -411,24 +411,18 @@
 ayer) %7B%0A
-        
+%09%09
 this.typ
@@ -431,24 +431,18 @@
 = type;%0A
-        
+%09%09
 this.nam
@@ -451,24 +451,18 @@
 = name;%0A
-        
+%09%09
 this.rea
@@ -475,24 +475,46 @@
 reason;%0A
-        
+%09%09this.resource = resource;%0A%09%09
 this.pla
@@ -527,27 +527,21 @@
 player;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 public S
@@ -554,32 +554,26 @@
 getType() %7B%0A
-        
+%09%09
 return type;
@@ -573,27 +573,21 @@
 n type;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 public S
@@ -600,32 +600,26 @@
 getName() %7B%0A
-        
+%09%09
 return name;
@@ -619,27 +619,21 @@
 n name;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 public S
@@ -648,32 +648,26 @@
 tReason() %7B%0A
-        
+%09%09
 return reaso
@@ -673,35 +673,26 @@
 on;%0A
-    %7D%0A%0A    public PlayerDTO
+%09%7D%0A%0A%09public String
  get
@@ -706,16 +706,10 @@
 ) %7B%0A
-        
+%09%09
 retu
@@ -723,12 +723,64 @@
 er;%0A
-    %7D
+%09%7D%0A%0A%09public String getResource() %7B%0A%09%09return resource;%0A%09%7D%0A
 %0A%7D%0A

fix eventDTO