Subversion Repositories SmartDukaan

Rev

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;
3420 chandransh 15
	private String error;
490 rajveer 16
	private List<Update> updates = new ArrayList<Update>();
4585 rajveer 17
	private List<BillingUpdate> billingUpdates = new ArrayList<BillingUpdate>();
490 rajveer 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(){
4585 rajveer 44
		return this.warehouseId+":"+this.lastTimestamp+":"+this.currentTimestamp+":"+this.totalUpdates+":"+ this.updates.toString()+":"+ this.billingUpdates.toString();
490 rajveer 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
	}
3420 chandransh 62
 
63
    public void setError(String error) {
64
        this.error = error;
65
    }
66
 
67
    public String getError() {
68
        return error;
69
    }
4585 rajveer 70
 
71
	public void setBillingUpdates(List<BillingUpdate> billingUpdates) {
72
		this.billingUpdates = billingUpdates;
73
	}
74
 
75
	public void add(BillingUpdate update){
76
		this.billingUpdates.add(update);
77
	}
78
 
79
	public List<BillingUpdate> getBillingUpdates() {
80
		return billingUpdates;
81
	}
490 rajveer 82
}