/**********************************************************************************
 *
 *           S5TECH(c) NETWORK APPLICATION DOCUMENTATION AND LICENSE
 *                        Version 1.6, September 2014
 *                          http://www.s5tech.com/
 *
 * Permission to copy, modify, and distribute this software and its documentation,
 * with or without modification, for any purpose and without fee or royalty is
 * hereby granted.
 * 
 * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
 * NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
 * THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
 * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
 * 
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
 * CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
 * 
 * The name and trademarks of  copyright holders may NOT be used in advertising or
 * publicity pertaining to the software without specific, written prior permission.
 * Title to copyright in this software and any associated documentation will at
 * all times remain with copyright holders.
 * 
 * FOR INFORMATION ABOUT OBTAINING, INSTALLING AND RUNNING THIS SOFTWARE WRITE AN
 * EMAIL TO assist@s5tech.com
 * 
 * S5Tech Development Team 2015-01-15
 * S5Tech S.P.A, Via Caboto 10, 20100 Legnano - Italy
 * 		
 *********************************************************************************/
 
package com.s5tech.net.type;

import java.io.Serializable;
import java.util.Date;


/**
 * Local class that maps the {@link TimeInfo} type
 * @author S5Tech Development Team
 */
public class TimeData implements Serializable {

	private static final long serialVersionUID = 5317990246041877059L;

	private Date activationTime;
	private boolean activationNow;
	private long durationSecs;
	private long intervalSecs;
	
	public TimeData(Date activationTime, long durationSecs, long intervalSecs, boolean activationNow) {
		super();
		this.activationTime = activationTime;
		this.durationSecs = durationSecs;
		this.intervalSecs = intervalSecs;
		this.activationNow = activationNow;
	}

	public Date getActivationTime() {
		return activationTime;
	}

	public void setActivationTime(Date activationTime) {
		this.activationTime = activationTime;
	}

	public long getDurationSecs() {
		return durationSecs;
	}

	public void setDurationSecs(long durationSecs) {
		this.durationSecs = durationSecs;
	}

	public long getIntervalSecs() {
		return intervalSecs;
	}

	public void setIntervalSecs(long intervalSecs) {
		this.intervalSecs = intervalSecs;
	}

	public boolean isActivationNow() {
		return activationNow;
	}

	public void setActivationNow(boolean activationNow) {
		this.activationNow = activationNow;
	}
	
}
