Android Open Source - BluetoothSPP Message






From Project

Back to project page BluetoothSPP.

License

The source code is released under:

MIT License

If you think the Android project BluetoothSPP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.outofjungle.bluetoothspp.app.models;
/* w  ww.ja  v  a2  s  .co  m*/
/**
 * Created by vvenkat on 6/3/14.
 */

public class Message {
  protected String text;
  protected Writer writer;

  public Message(String text, Writer writer) {
    this.text = text;
    this.writer = writer;
  }

  public String getText() {
    return text;
  }

  public Enum<Writer> getWriter() {
    return writer;
  }

  public boolean isPhone() {
    return Writer.ANDROID == writer;
  }

  public boolean isArduino() {
    return Writer.ARDUINO == writer;
  }
}




Java Source Code List

com.outofjungle.bluetoothspp.app.ConnectActivity.java
com.outofjungle.bluetoothspp.app.ConsoleActivity.java
com.outofjungle.bluetoothspp.app.DeviceAdapter.java
com.outofjungle.bluetoothspp.app.MessageAdapter.java
com.outofjungle.bluetoothspp.app.models.Message.java
com.outofjungle.bluetoothspp.app.models.Writer.java