package dp.mendelu.roman.diplomkaapp42;

/**
 * Trida zastresujici konstanty.
 */

public class Constants{

    //DatabaseHelper
    static final String DATABASE_NAME="db";
    public static final String TABLE_NAME = "geometry";
                                                            //column 0 _id
    public static final String UPDATED_AT = "updated_at";   //column 1
    public static final String CREATED_AT = "created_at";   //column 2
    public static final String DOC_ID = "doc_id";           //column 3

    public static final String JSON="json";                 //column 4
    public static final String LONGITUDE="longitude";       //column 5
    public static final String LATITUDE="latitude";         //column 6

    //DbHelp
    static final String DATABASE_NAME_REPORTS="db2";
    public static final String TABLE_NAME_REPORTS="reports";

    public static final String DB_TAG="tag"; //column 1
    public static final String LOG="log";    //column 2
    public static final String TIME="time";  //column 3

    //CLOUD
    static final String CLOUD_DB_NAME = "diplomka";
    static final String COLLECTION_NAME = "test";
    static final String API_KEY = "6595a1f2670ac0e57e3049e767ea10e9e50b727bdc68c5ee1ed8c2b9b4fcc6a6";
    static final String SECRET_KEY ="d8c111a5a31f5af9d3131388e2af2530074acc666077774664c2cbc96abc9fb4";
    //CreatePointActivity
    static final String JSONSTART = "{\"sync_id\":\"";
    static final String JSONSAMPLE = "\",\"projects\":[{\"scheme\"" +
            ":\"clienttestuser\",\"hash\":\"2014-09-22 11:40:07.355724\",\"name\":\"" +
            "mereni-v-brne\",\"layers\":[{\"scheme\":\"clienttestuser\",\"hash\":\"" +
            "2014-09-22 11:40:07.355724\",\"name\":\"stromy-v-brne-1\",\"properties\"" +
            ":{\"transparency\":50,\"symbology\":\"nazev\",\"order\":1,\"color\":\"" +
            "FFFFFF\",\"visibility\":true,\"zoom_threshold\":20},\"type\":\"LayerInProject\"" +
            "},{\"scheme\":\"clienttestuser\",\"hash\":\"2014-09-22 11:40:07.355724\"," +
            "\"name\":\"stromy-v-brne-2\",\"properties\":{\"transparency\":50,\"symbology\"" +
            ":\"nazev\",\"order\":1,\"color\":\"FFFFFF\",\"visibility\":true,\"zoom_threshold\"" +
            ":20},\"type\":\"LayerInProject\"}],\"properties\":{\"title\":\"Měření v Brně\"" +
            ",\"last_longitude\":1.2,\"description\":\"This project contains ...\"" +
            ",\"last_latitude\":1.1,\"public\":true,\"last_zoom_level\":1.3},\"type\"" +
            ":\"Project\"}],\"layers\":[{\"scheme\":\"clienttestuser\",\"hash\"" +
            ":\"2014-09-22 11:40:07.355724\",\"name\":\"stromy-v-brne\",\"features\"" +
            ":[{\"id\":1,\"hash\":\"hashFeature\",\"properties\":{\"precision\":23.8,\"" +
            "created\":\"2013-12-20 13:00:00\",\"last_edit\":\"2013-12-20 13:00:00\"},\"" +
            "attributes\":[{\"hash\":\"hash1\",\"name\":\"height\",\"value\":\"15.5\"}," +
            "{\"hash\":\"hash2\",\"name\":\"width\",\"value\":\"None\"}],\"type\":\"Feature\"" +
            ",\"geometry\":{\"type\":\"Point\",\"coordinates\":[10.15,4.2]}},{\"id\":2,\"" +
            "hash\":\"hashFeature\",\"properties\":{\"precision\":23.8,\"created\":\"" +
            "2013-12-20 13:00:00\",\"last_edit\":\"2013-12-20 13:00:00\"},\"" +
            "attributes\":[{\"hash\":\"hash1\",\"name\":\"height\",\"value\"" +
            ":\"15.5\"},{\"hash\":\"hash2\",\"name\":\"width\",\"value\":\"2.1\"}],\"" +
            "type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\"" +
            ":[100.1,200.2]}}],\"properties\":{\"title\":\"Stromy v Brně\",\"created\":\"" +
            "2013-12-20 13:00:00\",\"description\":\"Stromy v campusu MENDELU\",\"last_edit\"" +
            ":\"2013-12-20 13:00:00\",\"public\":true,\"kind\":\"point\"},\"attributes\"" +
            ":[{\"title\":\"Vyska\",\"hash\":\"hash1\",\"name\":\"height\",\"kind\":\"" +
            "double precision\"},{\"title\":\"Sirka\",\"hash\":\"hash2\",\"name\":\"width\"" +
            ",\"kind\":\"double precision\"}],\"type\":\"Layer\"}]}";

}
