Back to project page BluetoothSPP.
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.
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; } }