Subversion Repositories SmartDukaan

Rev

Rev 34495 | Go to most recent revision | 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<>();
34495 ranu 15
 
16
    public int getItemId() {
17
        return itemId;
18
    }
19
 
20
    public void setItemId(int itemId) {
21
        this.itemId = itemId;
22
    }
23
 
24
    public int getCatalogId() {
25
        return catalogId;
26
    }
27
 
28
    public void setCatalogId(int catalogId) {
29
        this.catalogId = catalogId;
30
    }
31
 
32
    public int getAvailability() {
33
        return availability;
34
    }
35
 
36
    public void setAvailability(int availability) {
37
        this.availability = availability;
38
    }
39
 
40
    public int getFofoId() {
41
        return fofoId;
42
    }
43
 
44
    public void setFofoId(int fofoId) {
45
        this.fofoId = fofoId;
46
    }
47
 
48
    public String getItemDescription() {
49
        return itemDescription;
50
    }
51
 
52
    public void setItemDescription(String itemDescription) {
53
        this.itemDescription = itemDescription;
54
    }
55
 
35771 ranu 56
    public boolean isHasActivatedImei() {
57
        return hasActivatedImei;
58
    }
59
 
60
    public void setHasActivatedImei(boolean hasActivatedImei) {
61
        this.hasActivatedImei = hasActivatedImei;
62
    }
63
 
64
    public List<String> getActivatedImeis() {
65
        return activatedImeis;
66
    }
67
 
68
    public void setActivatedImeis(List<String> activatedImeis) {
69
        this.activatedImeis = activatedImeis;
70
    }
71
 
34495 ranu 72
    @Override
73
    public String toString() {
74
        return "InStockItemDetailModel{" +
75
                "itemId=" + itemId +
76
                ", catalogId=" + catalogId +
77
                ", availability=" + availability +
78
                ", fofoId=" + fofoId +
79
                ", itemDescription='" + itemDescription + '\'' +
80
                '}';
81
    }
82
 
83
    @Override
84
    public boolean equals(Object o) {
85
        if (this == o) return true;
86
        if (o == null || getClass() != o.getClass()) return false;
87
        InStockItemDetailModel that = (InStockItemDetailModel) o;
88
        return itemId == that.itemId && catalogId == that.catalogId && availability == that.availability && fofoId == that.fofoId && Objects.equals(itemDescription, that.itemDescription);
89
    }
90
 
91
    @Override
92
    public int hashCode() {
93
        return Objects.hash(itemId, catalogId, availability, fofoId, itemDescription);
94
    }
95
}