// Path: src/com/eldorado/remoteresources/android/common/Status.java
// public enum Status {
// 	OK, ERROR
// }


import com.eldorado.remoteresources.android.common.Status;
/*
 * (C) Copyright 2014 Instituto de Pesquisas Eldorado (http://www.eldorado.org.br/).
 *
 * This file is part of the software Remote Resources
 *
 * All rights reserved. This file and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 3.0 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 *
 * This file is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 */

package com.eldorado.remoteresources.android.common.connection.messages.control;


/**
 * This control message acknowledges a control message. If there are any need to
 * data to be sent to client, it can be done through data field.
 * 
 * The ack message sequence number is the same of the message that originated
 * this ack
 * 
 * @author Marcelo Marzola Bossoni
 * 
 */
public class AcknowledgmentMessage extends ControlMessage {

	private static final long serialVersionUID = -2892553829246464532L;

	private final Status status;

	private final Object data;

	public AcknowledgmentMessage(int reqMessageSequenceNumber, Status status,
			Object data) {
		super(reqMessageSequenceNumber, ControlMessageType.ACKNOWLEDGMENT);
		this.status = status;
		this.data = data;
	}

	/**
	 * The acknowledgment status
	 * 
	 * @return
	 */
// Path: src/com/eldorado/remoteresources/android/common/Status.java
// public enum Status {
// 	OK, ERROR
// }


// Path: src/com/eldorado/remoteresources/android/common/connection/messages/control/AcknowledgmentMessage.java
import com.eldorado.remoteresources.android.common.Status;

/*
 * (C) Copyright 2014 Instituto de Pesquisas Eldorado (http://www.eldorado.org.br/).
 *
 * This file is part of the software Remote Resources
 *
 * All rights reserved. This file and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 3.0 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 *
 * This file is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 */

package com.eldorado.remoteresources.android.common.connection.messages.control;


/**
 * This control message acknowledges a control message. If there are any need to
 * data to be sent to client, it can be done through data field.
 * 
 * The ack message sequence number is the same of the message that originated
 * this ack
 * 
 * @author Marcelo Marzola Bossoni
 * 
 */
public class AcknowledgmentMessage extends ControlMessage {

	private static final long serialVersionUID = -2892553829246464532L;

	private final Status status;

	private final Object data;

	public AcknowledgmentMessage(int reqMessageSequenceNumber, Status status,
			Object data) {
		super(reqMessageSequenceNumber, ControlMessageType.ACKNOWLEDGMENT);
		this.status = status;
		this.data = data;
	}

	/**
	 * The acknowledgment status
	 * 
	 * @return
	 */
	public Status getStatus() {