Skip to content

Commit b9d0963

Browse files
author
Grzegorz Siewruk
committed
result
1 parent 07309d4 commit b9d0963

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* @created 2020-09-28 : 16:14
3+
* @project MixewayScanner
4+
* @author siewer
5+
*/
6+
package pl.orange.bst.mixer.openvas.helper;
7+
8+
import pl.orange.bst.mixer.openvas.pojo.Authenticate;
9+
import pl.orange.bst.mixer.openvas.pojo.GetResults;
10+
import pl.orange.bst.mixer.openvas.pojo.Report;
11+
import pl.orange.bst.mixer.openvas.pojo.User;
12+
13+
import javax.xml.bind.annotation.XmlAccessType;
14+
import javax.xml.bind.annotation.XmlAccessorType;
15+
import javax.xml.bind.annotation.XmlElement;
16+
import javax.xml.bind.annotation.XmlRootElement;
17+
18+
@XmlRootElement(name="commands")
19+
@XmlAccessorType(XmlAccessType.FIELD)
20+
public class CommandsGetResults {
21+
22+
private Authenticate authenticate;
23+
@XmlElement(name="get_results")
24+
private GetResults getResults;
25+
public Authenticate getAuthenticate() {
26+
return authenticate;
27+
}
28+
public void setAuthenticate(Authenticate authenticate) {
29+
this.authenticate = authenticate;
30+
}
31+
32+
public CommandsGetResults(){}
33+
34+
public CommandsGetResults(User user, int start, String report_id){
35+
this.authenticate = new Authenticate(user);
36+
this.getResults = new GetResults(report_id, start);
37+
}
38+
39+
}

0 commit comments

Comments
 (0)