1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-10 07:31:34 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/CalendarEventSpec.java
Andreas Shimokawa cb1ec5dccb Make calendar event type byte instead of int
Now the UUID will be constructed like this:

High 64bit 0x4742474200 | type
Low 64bit id
2016-05-24 13:11:57 +02:00

15 lines
387 B
Java

package nodomain.freeyourgadget.gadgetbridge.model;
public class CalendarEventSpec {
public static final byte TYPE_UNKNOWN = 0;
public static final byte TYPE_SUNRISE = 1;
public static final byte TYPE_SUNSET = 2;
public byte type;
public long id;
public int timestamp;
public int durationInSeconds;
public String title;
public String description;
}