package com.videonext.mplayer.api.events;

import com.videonext.mplayer.api.ControllerEvent;

public class ChangeStateEvent extends ControllerEvent {

	private static final long serialVersionUID = 1L;

	private int state;
	private int resultCode;
	private String resultString;
	
	public ChangeStateEvent(Object source, int state, int resultCode, String resultString) {
		super(source);
		// TODO Auto-generated constructor stub
		this.state        = state;
		this.resultCode   = resultCode;
		this.resultString = resultString; 
	}
	
	public int getCurrentState() {
		return state;
	}
	
	public int getResultCode() {
		return resultCode;
	}
	
	public String getResultString() {
		return resultString;
	}

	public String toString() {
		return "State:" +Integer.toString(state);
		
	}
}
