package com.biggerbytes.scheduleupdates;

/**
 * 
 * @author Avishay
 */
public interface CommandConstants {
    
    // HEADERS 
    final byte SERVER_HEADER = 0x5F;
    final byte SCEHDULES_HEADER = 0x6F;
    final byte TESTS_HEADER = 0x7F;
    
    // SERVER FLAGS    
    final byte SET_SERVER_STATE = 0x50;
    
    // SCHEDULES FLAGS    
    final byte SET_INFO_THREAD_STATE = 0x60; // Syntax: {HEADER} {FLAG} {STATE} ;; STATE: ON is 1, OFF is everything else
    final byte SET_REFRESH_RATE = 0x61; // Syntax: {HEADER} {FLAG} {MINUTES} ;; where MINUTES is a byte that valued between 0 - 255
    final byte READ_INFO_NOW = 0x62; // Syntax: {HEADER} {FLAG}
    final byte ADD_CANCEL_DUMMY = 0x63; // Syntax: {HEADER} {FLAG} {CLASS_ID} {HOUR} {DATE} {TEACHER_NAME} ;; HOUR is max 2 bytes (3 - 5), DATE is always 10 bytes (5 - 15), TEACHER_NAME has unknown amount of bytes (15 - ?)
    final byte ADD_SUBSTITUE_DUMMY = 0x64; // Substitue system is not implemented yet, so no use.
    final byte REMOVE_ALL_DUMMIES_FROM_ID = 0x65; // Syntax: {HEADER} {FLAG} {CLASS_ID}
    
    // TODO add tests flags
    
}

@@ -215,45 +215,8 @@
 F;%0D%0A
-    final byte TESTS_HEADER = 0x7F;%0D%0A
     

THAT LINE IS STUPID