Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37512 ranu 1
package com.spice.profitmandi.common.model;
2
 
3
/**
4
 * A live scheme / offer / product attached to a notification. When the partner taps the
5
 * notification, the mobile app deep-links to that entity's detail page.
6
 */
7
public class LinkedEntity {
8
 
9
	private String type;   // SCHEME | OFFER | PRODUCT
10
	private int id;
11
	private String label;  // display text captured at attach-time (denormalized)
12
 
13
	public LinkedEntity() {
14
	}
15
 
16
	public LinkedEntity(String type, int id, String label) {
17
		this.type = type;
18
		this.id = id;
19
		this.label = label;
20
	}
21
 
22
	public String getType() {
23
		return type;
24
	}
25
 
26
	public void setType(String type) {
27
		this.type = type;
28
	}
29
 
30
	public int getId() {
31
		return id;
32
	}
33
 
34
	public void setId(int id) {
35
		this.id = id;
36
	}
37
 
38
	public String getLabel() {
39
		return label;
40
	}
41
 
42
	public void setLabel(String label) {
43
		this.label = label;
44
	}
45
}