// Path: airomem-chatsample/airomem-chatsample-view/src/main/java/pl/setblack/airomem/chatsample/view/ChatView.java
// public interface ChatView {
// 
//     List<MessageView> getRecentMessages();
// }
// 
// Path: airomem-chatsample/airomem-chatsample-view/src/main/java/pl/setblack/airomem/chatsample/view/MessageView.java
// @XmlRootElement
// public interface MessageView {
// 
//     @XmlElement
//     String getContent();
//     
//     @XmlElement
//     AuthorView getAuthorView();
//     
//     @XmlAttribute
//     LocalDateTime getTime();
//     
//     String getAuthorNick();
// }


import pl.setblack.airomem.chatsample.view.MessageView;
import java.util.List;
import javax.ejb.Local;
import pl.setblack.airomem.chatsample.view.ChatView;

/*
 *  Created by Jarek Ratajski
 */
package pl.setblack.airomem.chatsample.execute;


/**
 *
 * @author jarek ratajski
 */
@Local
public interface ChatController {

    void addMessage(String nick, String message);


// Path: airomem-chatsample/airomem-chatsample-view/src/main/java/pl/setblack/airomem/chatsample/view/ChatView.java
// public interface ChatView {
// 
//     List<MessageView> getRecentMessages();
// }
// 
// Path: airomem-chatsample/airomem-chatsample-view/src/main/java/pl/setblack/airomem/chatsample/view/MessageView.java
// @XmlRootElement
// public interface MessageView {
// 
//     @XmlElement
//     String getContent();
//     
//     @XmlElement
//     AuthorView getAuthorView();
//     
//     @XmlAttribute
//     LocalDateTime getTime();
//     
//     String getAuthorNick();
// }


// Path: airomem-chatsample/airomem-chatsample-view/src/main/java/pl/setblack/airomem/chatsample/execute/ChatController.java
import pl.setblack.airomem.chatsample.view.MessageView;
import java.util.List;
import javax.ejb.Local;
import pl.setblack.airomem.chatsample.view.ChatView;

/*
 *  Created by Jarek Ratajski
 */
package pl.setblack.airomem.chatsample.execute;


/**
 *
 * @author jarek ratajski
 */
@Local
public interface ChatController {

    void addMessage(String nick, String message);


    List<MessageView> getRecentMessages();
