Subversion Repositories SmartDukaan

Rev

Rev 1367 | Rev 4585 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
490 rajveer 1
package in.shop2020.support.models;
2
 
3
import java.util.ArrayList;
4
import java.util.List;
5
 
6
import com.thoughtworks.xstream.annotations.XStreamAlias;
7
 
8
@XStreamAlias("inventoryupdate")
9
public class InventoryUpdate {
10
 
11
	private String warehouseId;
12
	private String lastTimestamp;
13
	private String currentTimestamp;
14
	private String totalUpdates;
3420 chandransh 15
	private String error;
490 rajveer 16
	private List<Update> updates = new ArrayList<Update>();
17
 
18
	public void add(Update update){
19
		updates.add(update);
20
	}
21
 
22
	public List<Update> getUpdates(){
23
		return updates;
24
	}
25
 
26
	public String getwarehouseId() {
27
		return warehouseId;
28
	}
29
 
30
	public void setwarehouseId(String warehouseId) {
31
		this.warehouseId = warehouseId;
32
	}
33
 
34
	public String getlastTimestamp() {
35
		return lastTimestamp;
36
	}
37
 
38
	public void setlastTimestamp(String lastTimestamp) {
39
		this.lastTimestamp = lastTimestamp;
40
	}
41
 
42
	public String toString(){
43
		return this.warehouseId+":"+this.lastTimestamp+":"+this.currentTimestamp+":"+this.totalUpdates+":"+ this.updates.toString();
44
	}
45
 
46
	public void setCurrentTimestamp(String currentTimestamp) {
47
		this.currentTimestamp = currentTimestamp;
48
	}
49
 
50
	public String getCurrentTimestamp() {
51
		return currentTimestamp;
52
	}
53
 
54
	public void setTotalUpdates(String totalUpdates) {
55
		this.totalUpdates = totalUpdates;
56
	}
57
 
58
	public String getTotalUpdates() {
59
		return totalUpdates;
60
	}
3420 chandransh 61
 
62
    public void setError(String error) {
63
        this.error = error;
64
    }
65
 
66
    public String getError() {
67
        return error;
68
    }
490 rajveer 69
}