[New] Added StrolchRootElementListResult
This commit is contained in:
parent
5c4a455665
commit
d99c029433
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue