Back to project page bluedroid-mp.
The source code is released under:
Apache License
If you think the Android project bluedroid-mp 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 uk.ac.gcu.bluedroid; /*from w w w.j a v a 2 s. c om*/ import java.io.Serializable; import uk.ac.gcu.bluedroid.util.Util; public class Wrapper implements Serializable { public static final int ACK = 0; public static final int MESSAGE = 1; public int type; public Long time; public String message; public String hash; public final String _class; public Wrapper(String _class, int type) { this.time = System.currentTimeMillis(); this.type = type; this._class = _class; } public Wrapper(String _class, int type, String message) { this(_class, type); this.message = message; this.hash = Util.hash(message); } }