/**
 * Day.java
 * Created Jun 10, 2008
 * Copyright (c) TANDBERG Television 2007-2008
 */
package com.tandbergtv.watchpoint.pmm.web.schedule;

import com.tandbergtv.watchpoint.pmm.entities.TitleListType;

/**
 * Represents an entry in a timeline
 *  
 * @author Sahil Verma
 */
public class TimelineEntry {
	
	private boolean isAlert;
	
	private TitleListType type;
	
	private String id;

	/**
	 * Creates a TimelineEntry
	 */
	public TimelineEntry() {
	}

	/**
	 * Creates a TimelineEntry
	 * @param type
	 * @param id
	 */
	public TimelineEntry(String id, TitleListType type) {
		this.id = id;
		this.type = type;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return this.id;
	}
	
	/**
	 * Returns true if this entry is for a planner
	 * @return
	 */
	public boolean getIsPlanner() {
		return (this.type == TitleListType.PLANNER);
	}

	/**
	 * @return the isAlert
	 */
	public boolean getIsAlert() {
		return this.isAlert;
	}

	/**
	 * @param isAlert the isAlert to set
	 */
	public void setIsAlert(boolean isAlert) {
		this.isAlert = isAlert;
	}
}
