package tim.prune.correlate;

import tim.prune.data.MediaObject;
import tim.prune.data.TimeDifference;

/**
 * Class to hold the contents of a single row
 * in the selection table for correlation
 */
public class MediaSelectionTableRow
{
	private final MediaObject _media;
	private final TimeDifference _timeDiff;

	/**
	 * Constructor
	 * @param inMedia media item
	 * @param inNumSecs number of seconds time difference as long
	 */
	public MediaSelectionTableRow(MediaObject inMedia, long inNumSecs)
	{
		_media = inMedia;
		_timeDiff = new TimeDifference(inNumSecs);
	}

	/**
	 * @return Media object
	 */
	public MediaObject getMedia() {
		return _media;
	}

	/**
	 * @return time difference
	 */
	public TimeDifference getTimeDiff() {
		return _timeDiff;
	}
}
