Subversion Repositories SmartDukaan

Rev

Rev 1023 | Rev 3420 | 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
 
17
	public void add(Update update){
18
		updates.add(update);
19
	}
20
 
21
	public List<Update> getUpdates(){
22
		return updates;
23
	}
24
 
25
	public String getwarehouseId() {
26
		return warehouseId;
27
	}
28
 
29
	public void setwarehouseId(String warehouseId) {
30
		this.warehouseId = warehouseId;
31
	}
32
 
33
	public String getlastTimestamp() {
34
		return lastTimestamp;
35
	}
36
 
37
	public void setlastTimestamp(String lastTimestamp) {
38
		this.lastTimestamp = lastTimestamp;
39
	}
40
 
41
	public String toString(){
42
		return this.warehouseId+":"+this.lastTimestamp+":"+this.currentTimestamp+":"+this.totalUpdates+":"+ this.updates.toString();
43
	}
44
 
45
	public void setCurrentTimestamp(String currentTimestamp) {
46
		this.currentTimestamp = currentTimestamp;
47
	}
48
 
49
	public String getCurrentTimestamp() {
50
		return currentTimestamp;
51
	}
52
 
53
	public void setTotalUpdates(String totalUpdates) {
54
		this.totalUpdates = totalUpdates;
55
	}
56
 
57
	public String getTotalUpdates() {
58
		return totalUpdates;
59
	}
60
}