Subversion Repositories SmartDukaan

Rev

Rev 4585 | 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>();
4987 mandeep.dh 18
	private List<PLBDetails> plbDetails = new ArrayList<PLBDetails>();
490 rajveer 19
 
20
	public void add(Update update){
21
		updates.add(update);
22
	}
23
 
24
	public List<Update> getUpdates(){
25
		return updates;
26
	}
27
 
28
	public String getwarehouseId() {
29
		return warehouseId;
30
	}
31
 
32
	public void setwarehouseId(String warehouseId) {
33
		this.warehouseId = warehouseId;
34
	}
35
 
36
	public String getlastTimestamp() {
37
		return lastTimestamp;
38
	}
39
 
40
	public void setlastTimestamp(String lastTimestamp) {
41
		this.lastTimestamp = lastTimestamp;
42
	}
43
 
4987 mandeep.dh 44
    public String toString() {
45
        return this.warehouseId + ":" + this.lastTimestamp + ":"
46
                + this.currentTimestamp + ":" + this.totalUpdates + ":"
47
                + this.updates.toString() + ":"
48
                + this.billingUpdates.toString() + ":" + plbDetails.toString();
49
    }
490 rajveer 50
 
51
	public void setCurrentTimestamp(String currentTimestamp) {
52
		this.currentTimestamp = currentTimestamp;
53
	}
54
 
55
	public String getCurrentTimestamp() {
56
		return currentTimestamp;
57
	}
58
 
59
	public void setTotalUpdates(String totalUpdates) {
60
		this.totalUpdates = totalUpdates;
61
	}
62
 
63
	public String getTotalUpdates() {
64
		return totalUpdates;
65
	}
3420 chandransh 66
 
67
    public void setError(String error) {
68
        this.error = error;
69
    }
70
 
71
    public String getError() {
72
        return error;
73
    }
4585 rajveer 74
 
75
	public void setBillingUpdates(List<BillingUpdate> billingUpdates) {
76
		this.billingUpdates = billingUpdates;
77
	}
78
 
79
	public void add(BillingUpdate update){
80
		this.billingUpdates.add(update);
81
	}
82
 
83
	public List<BillingUpdate> getBillingUpdates() {
84
		return billingUpdates;
85
	}
4987 mandeep.dh 86
 
87
    public List<PLBDetails> getPlbDetails() {
88
        return plbDetails;
89
    }
90
 
91
    public void add(PLBDetails update){
92
        this.plbDetails.add(update);
93
    }
94
 
95
    public void setPlbDetails(List<PLBDetails> plbDetails) {
96
        this.plbDetails = plbDetails;
97
    }
490 rajveer 98
}