Tours endpoint

This commit is contained in:
Filip Izydorczyk
2021-01-19 11:33:14 +01:00
parent 6a4ea45900
commit d217536f2c
3 changed files with 92 additions and 24 deletions

View File

@ -0,0 +1,26 @@
package com.plannaplan.responses.models;
import com.plannaplan.types.AppState;
/**
* Api response for config tours entpoint
*/
public class ConfigTourResponse {
private String currentTour;
/**
* @param appState to send as a response
*/
public ConfigTourResponse(AppState appState) {
this.currentTour = appState.toString();
}
/**
* @return current app state as string
*/
public String getCurrentTour() {
return currentTour;
}
}