Some more work done on the feature object

This commit is contained in:
Merel Steenbergen
2019-03-14 15:08:49 +01:00
parent 5f4069fcad
commit e79280e470
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package greenify.client.rest;
import greenify.common.ActivityDTO;
import greenify.common.ApplicationException;
import greenify.common.UserDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
public class ActivityService {
Logger logger = LoggerFactory.getLogger(greenify.server.service.ActivityService.class);
@Autowired
UserRepository userRepository;
/**
* Adds the activity to the history of the user and adds the score.
* @param name the name of the activity
* @return a activityDTO of activity.
*/
public ActivityDTO addActivity(String name) {
}
}

View File

@@ -0,0 +1,6 @@
package greenify.server.service;
public class ActivityService {
}