Add outline of activity class, has bugs
This commit is contained in:
34
src/Common/src/main/java/greenify/common/ActivityDTO.java
Normal file
34
src/Common/src/main/java/greenify/common/ActivityDTO.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package greenify.common;
|
||||
|
||||
public class ActivityDTO {
|
||||
private Long id;
|
||||
private String name;
|
||||
private String description;
|
||||
private int score;
|
||||
|
||||
public ActivityDTO() {
|
||||
}
|
||||
|
||||
public ActivityDTO(Long id, String name, String description, int score) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description=description;
|
||||
this.score= score;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public int getScore() {
|
||||
return score;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user