package com.beem.project.beem.service.aidl;

import  com.beem.project.beem.service.Contact;
import  com.beem.project.beem.service.Message;
import  com.beem.project.beem.service.aidl.IMessageListener;

/**
 * An aidl interface for Chat session.
 */
interface IChat {
    
    	/**
    	 * Send a message.
    	 * @param message	the message to send
    	 */
	void sendMessage(in Message message);
	
	/**
	 * Get the participant of the chat
	 * @return the participant
	 */
	Contact getParticipant();
	
	String getState();
	
	void setOpen(in boolean isOpen);
	
	boolean isOpen();
	
	void setState(in String state);
	
	List<Message> getMessages();

}