/**
 * ProgressEvent.java
 * Created Aug 11, 2008
 * Copyright (c) TANDBERG Television 2007-2008
 */
package com.tandbergtv.watchpoint.pmm.core;

import com.tandbergtv.workflow.core.event.WorkflowEvent;

/**
 * Indicates that a progress update has been generated for a title
 * 
 * @author Sahil Verma
 */
public class ProgressEvent extends WorkflowEvent {

	private Long titleId;
	
	private Long scheduleId;
	
	private String status;

	/**
	 * Creates a ProgressEvent
	 * @param titleId
	 */
	public ProgressEvent(Object source, Long titleId, String status) {
		this(source, null, titleId, status);
	}

	/**
	 * Creates a ProgressEvent
	 * @param scheduleId
	 * @param titleId
	 */
	public ProgressEvent(Object source, Long scheduleId, Long titleId, String status) {
		super(source);
		this.scheduleId = scheduleId;
		this.titleId = titleId;
		this.status = status;
	}

	/**
	 * @return the titleId
	 */
	public Long getTitleId() {
		return this.titleId;
	}

	/**
	 * @return the scheduleId
	 */
	public Long getScheduleId() {
		return this.scheduleId;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return this.status;
	}
}
