Back to project page BLEMeshChat.
The source code is released under:
GNU General Public License
If you think the Android project BLEMeshChat 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 pro.dbro.ble.protocol; /* w w w . ja v a2 s. c om*/ import android.support.annotation.NonNull; import android.support.annotation.Nullable; import java.util.Date; /** * An identity for a remote peer * Created by davidbrodsky on 10/13/14. */ public class IdentityPacket { public final byte[] publicKey; public final Date dateSeen; public final String alias; public final byte[] rawPacket; public IdentityPacket(@NonNull final byte[] publicKey, @Nullable String alias, @NonNull Date dateSeen, @NonNull final byte[] rawPacket) { // dateSeen is allowed null because it's meaningless for OwnedIdentities this.publicKey = publicKey; this.alias = alias == null ? null : alias.trim(); this.dateSeen = dateSeen; this.rawPacket = rawPacket; } }