1 |
torben |
2517 |
package dk.thoerup.webservice;
|
2 |
|
|
|
3 |
|
|
import java.io.Serializable;
|
4 |
|
|
|
5 |
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
6 |
|
|
|
7 |
torben |
2518 |
@XmlRootElement(name = "testresponse")
|
8 |
torben |
2517 |
public class TestResponse implements Serializable {
|
9 |
|
|
private static final long serialVersionUID = 1L;
|
10 |
|
|
|
11 |
|
|
private int id;
|
12 |
|
|
private String name;
|
13 |
|
|
|
14 |
|
|
public TestResponse() { //no-arg constructor MUST be present for moxy to work
|
15 |
|
|
}
|
16 |
|
|
|
17 |
|
|
public TestResponse(int i, String n) {
|
18 |
|
|
this.id = i;
|
19 |
|
|
this.name = n;
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
public int getId() {
|
23 |
|
|
return id;
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
public String getName() {
|
27 |
|
|
return name;
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
public void setId(int i) {
|
31 |
|
|
this.id = i;
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
public void setName(String n) {
|
35 |
|
|
this.name = n;
|
36 |
|
|
}
|
37 |
|
|
} |