Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

/**
 * A live scheme / offer / product attached to a notification. When the partner taps the
 * notification, the mobile app deep-links to that entity's detail page.
 */
public class LinkedEntity {

        private String type;   // SCHEME | OFFER | PRODUCT
        private int id;
        private String label;  // display text captured at attach-time (denormalized)

        public LinkedEntity() {
        }

        public LinkedEntity(String type, int id, String label) {
                this.type = type;
                this.id = id;
                this.label = label;
        }

        public String getType() {
                return type;
        }

        public void setType(String type) {
                this.type = type;
        }

        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public String getLabel() {
                return label;
        }

        public void setLabel(String label) {
                this.label = label;
        }
}