Subversion Repositories SmartDukaan

Rev

Rev 35771 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34495 ranu 1
package com.spice.profitmandi.dao.model;
2
 
35771 ranu 3
import java.util.ArrayList;
4
import java.util.List;
34495 ranu 5
import java.util.Objects;
6
 
7
public class InStockItemDetailModel {
8
    int itemId;
9
    int catalogId;
10
    int availability;
11
    int fofoId;
12
    String itemDescription;
35771 ranu 13
    boolean hasActivatedImei;
14
    List<String> activatedImeis = new ArrayList<>();
35776 ranu 15
    String stockType = "IN_STOCK"; // IN_STOCK or GRN_PENDING
34495 ranu 16
 
17
    public int getItemId() {
18
        return itemId;
19
    }
20
 
21
    public void setItemId(int itemId) {
22
        this.itemId = itemId;
23
    }
24
 
25
    public int getCatalogId() {
26
        return catalogId;
27
    }
28
 
29
    public void setCatalogId(int catalogId) {
30
        this.catalogId = catalogId;
31
    }
32
 
33
    public int getAvailability() {
34
        return availability;
35
    }
36
 
37
    public void setAvailability(int availability) {
38
        this.availability = availability;
39
    }
40
 
41
    public int getFofoId() {
42
        return fofoId;
43
    }
44
 
45
    public void setFofoId(int fofoId) {
46
        this.fofoId = fofoId;
47
    }
48
 
49
    public String getItemDescription() {
50
        return itemDescription;
51
    }
52
 
53
    public void setItemDescription(String itemDescription) {
54
        this.itemDescription = itemDescription;
55
    }
56
 
35771 ranu 57
    public boolean isHasActivatedImei() {
58
        return hasActivatedImei;
59
    }
60
 
61
    public void setHasActivatedImei(boolean hasActivatedImei) {
62
        this.hasActivatedImei = hasActivatedImei;
63
    }
64
 
65
    public List<String> getActivatedImeis() {
66
        return activatedImeis;
67
    }
68
 
69
    public void setActivatedImeis(List<String> activatedImeis) {
70
        this.activatedImeis = activatedImeis;
71
    }
72
 
35776 ranu 73
    public String getStockType() {
74
        return stockType;
75
    }
76
 
77
    public void setStockType(String stockType) {
78
        this.stockType = stockType;
79
    }
80
 
34495 ranu 81
    @Override
82
    public String toString() {
83
        return "InStockItemDetailModel{" +
84
                "itemId=" + itemId +
85
                ", catalogId=" + catalogId +
86
                ", availability=" + availability +
87
                ", fofoId=" + fofoId +
88
                ", itemDescription='" + itemDescription + '\'' +
89
                '}';
90
    }
91
 
92
    @Override
93
    public boolean equals(Object o) {
94
        if (this == o) return true;
95
        if (o == null || getClass() != o.getClass()) return false;
96
        InStockItemDetailModel that = (InStockItemDetailModel) o;
97
        return itemId == that.itemId && catalogId == that.catalogId && availability == that.availability && fofoId == that.fofoId && Objects.equals(itemDescription, that.itemDescription);
98
    }
99
 
100
    @Override
101
    public int hashCode() {
102
        return Objects.hash(itemId, catalogId, availability, fofoId, itemDescription);
103
    }
104
}