Subversion Repositories SmartDukaan

Rev

Rev 490 | Rev 1367 | 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;
15
	private List<Update> updates = new ArrayList<Update>();
16
//	private String update;
17
//	private String skuId;
18
 
19
	public void add(Update update){
20
		updates.add(update);
21
	}
22
 
23
	public List<Update> getUpdates(){
24
		return updates;
25
	}
26
 
27
	public String getwarehouseId() {
28
		return warehouseId;
29
	}
30
 
31
	public void setwarehouseId(String warehouseId) {
32
		this.warehouseId = warehouseId;
33
	}
34
 
35
	public String getlastTimestamp() {
36
		return lastTimestamp;
37
	}
38
 
39
	public void setlastTimestamp(String lastTimestamp) {
40
		this.lastTimestamp = lastTimestamp;
41
	}
42
 
43
	public String toString(){
44
		return this.warehouseId+":"+this.lastTimestamp+":"+this.currentTimestamp+":"+this.totalUpdates+":"+ this.updates.toString();
45
	}
46
 
47
	public void setCurrentTimestamp(String currentTimestamp) {
48
		this.currentTimestamp = currentTimestamp;
49
	}
50
 
51
	public String getCurrentTimestamp() {
52
		return currentTimestamp;
53
	}
54
 
55
	public void setTotalUpdates(String totalUpdates) {
56
		this.totalUpdates = totalUpdates;
57
	}
58
 
59
	public String getTotalUpdates() {
60
		return totalUpdates;
61
	}
62
 
63
 
64
//	public void setUpdate(Update update) {
65
//		this.update = update;
66
//	}
67
//	
68
//	public Update getUpdate() {
69
//		return update;
70
//	}
71
 
72
 
73
 
74
}