1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.buckosoft.BuckoVidLib.domain.rest.admin;
20
21 import java.util.ArrayList;
22 import java.util.List;
23
24 import javax.xml.bind.annotation.XmlElement;
25 import javax.xml.bind.annotation.XmlRootElement;
26
27
28
29
30
31 @XmlRootElement(name="RefreshStatus")
32 public class RestRefreshStatus {
33 private int percentComplete;
34 private List<RestStatusString> messages;
35
36
37
38 public int getPercentComplete() {
39 return percentComplete;
40 }
41
42
43
44 public void setPercentComplete(int percentComplete) {
45 this.percentComplete = percentComplete;
46 }
47
48
49
50 @XmlElement(name="StatusString")
51 public List<RestStatusString> getMessages() {
52 return messages;
53 }
54
55
56
57 public void setMessages(List<RestStatusString> messages) {
58 this.messages = messages;
59 }
60
61 public void addMessage(String type, String message) {
62 if (messages == null)
63 messages = new ArrayList<RestStatusString>();
64 this.messages.add(0, new RestStatusString(type, message));
65 }
66 }