Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
f1d2d2224This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.makelangelo.plotter.plottercontrols;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* {@link ConversationEvent} describes a single entry in a {@link ConversationHistory}.
* @author Dan Royer
* @since 7.28.0
*/
public class ConversationEvent {
public String whoSpoke;
public String whatWasSaid;
public Date when;
public ConversationEvent(String src,String msg) {
whoSpoke=src;
whatWasSaid=msg;
when = new Date();
}
@Override
public String toString() {
String time = new SimpleDateFormat("HH:mm:ss.SSS").format(when);
return "["+time+"] " + whoSpoke +": "+whatWasSaid;
}
}