[New] Added StrolchRootElementListResult

This commit is contained in:
Robert von Burg 2019-06-19 13:13:01 +02:00
parent 5c4a455665
commit d99c029433
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
package li.strolch.service;
import java.util.List;
import li.strolch.model.StrolchRootElement;
import li.strolch.service.api.ServiceResult;
import li.strolch.service.api.ServiceResultState;
public class StrolchRootElementListResult extends ServiceResult {
private List<StrolchRootElement> rootElements;
public StrolchRootElementListResult(ServiceResultState state) {
super(state);
}
public StrolchRootElementListResult(ServiceResultState state, String msg) {
super(state, msg);
}
public StrolchRootElementListResult(List<StrolchRootElement> rootElements) {
super(ServiceResultState.SUCCESS);
this.rootElements = rootElements;
}
public List<StrolchRootElement> getRootElements() {
return this.rootElements;
}
}