// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.olio.communication.bluetooth.channel_messages; import java.nio.ByteBuffer; import java.nio.ByteOrder; // Referenced classes of package com.olio.communication.bluetooth.channel_messages: // ControlWriteable public class OlioNotification implements ControlWriteable { public static final byte OLIO_NOTIFICATION_INDICATOR_BYTE = 0; private int mNotificationId; public OlioNotification(byte abyte0[]) { mNotificationId = ByteBuffer.wrap(abyte0).order(ByteOrder.LITTLE_ENDIAN).getInt(4); } public static boolean isOlioNotification(byte abyte0[]) { return abyte0.length >= 8 && ByteBuffer.wrap(abyte0).order(ByteOrder.LITTLE_ENDIAN).get() == 0; } public byte[] controlBytes() { ByteBuffer bytebuffer = ByteBuffer.allocate(6).order(ByteOrder.LITTLE_ENDIAN); bytebuffer.put((byte)0); bytebuffer.putInt(mNotificationId); bytebuffer.put((byte)0); return bytebuffer.array(); } }