public class FlooMessage implements Base {
  String name = "msg";
  public int req_id = Utils.getRequestId();
  String data;

  public FlooMessage(String chatContents) {
    data = chatContents;
  }
}
public class SetBuf implements Base {
  public String name = "set_buf";
  public int req_id = Utils.getRequestId();
  public Integer id;
  public String buf;
  public String md5;
  public String encoding;

  public SetBuf(Buf buf) {
    this.md5 = buf.md5;
    this.id = buf.id;
    this.buf = buf.serialize();
    this.encoding = buf.encoding.toString();
  }
}