// Path: src/main/java/com/emal/android/transport/spb/MapProviderType.java
// public enum MapProviderType {
//     GMAPSV1, GMAPSV2, OSM;
// 
//     public static MapProviderType getByValue(String value) {
//         for (MapProviderType type: MapProviderType.values()) {
//             if (type.name().equals(value)) {
//                 return type;
//             }
//         }
//         return null;
//     }
// }
// 
// Path: src/main/java/com/emal/android/transport/spb/VehicleType.java
// public enum VehicleType {
//     BUS("vehicle_bus", "0", "A", false, Color.BLUE),
//     TROLLEY("vehicle_trolley", "1", "Ш", true, Color.GREEN),
//     TRAM("vehicle_tram", "2", "T", false, Color.RED),
//     SHIP("vehicle_ship", "46", "S", false, Color.YELLOW);
// 
//     private String code;
//     private String id;
//     private String letter;
//     private boolean upsideDown;
//     private int color;
// 
//     private VehicleType(String code, String id, String letter, boolean upsideDown, int color) {
//         this.code = code;
//         this.id = id;
//         this.letter = letter;
//         this.color = color;
//         this.upsideDown = upsideDown;
//     }
// 
//     public String getCode() {
//         return code;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public String getLetter() {
//         return letter;
//     }
// 
//     public int getColor() {
//         return color;
//     }
// 
//     public boolean isUpsideDown() {
//         return upsideDown;
//     }
// 
//     public static VehicleType getType(String value) {
//         if ("bus".equals(value)) {
//             return BUS;
//         }
//         if ("tram".equals(value)) {
//             return TRAM;
//         }
//         if ("trolley".equals(value)) {
//             return TROLLEY;
//         }
//         if ("ship".equals(value)) {
//             return SHIP;
//         }
//         throw new IllegalStateException("Wrong vehicle type");
//     }
// }
// 
// Path: src/main/java/com/emal/android/transport/spb/utils/Constants.java
// public final class Constants {
//     public static final String URL_TEMPLATE = "http://transport.orgp.spb.ru/cgi-bin/mapserv?TRANSPARENT=TRUE&FORMAT=image%2Fpng&MAP=vehicle_typed.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&_OLSALT=0.1508798657450825";
//     public static final String URL_PARAMS = "&LAYERS=%s&BBOX=%s&WIDTH=%d&HEIGHT=%d";
//     public static final String SHOW_BUS_FLAG = "SHOW_BUS_FLAG";
//     public static final String SHOW_TROLLEY_FLAG = "SHOW_TROLLEY_FLAG";
//     public static final String SHOW_TRAM_FLAG = "SHOW_TRAM_FLAG";
//     public static final String SHOW_SHIP_FLAG = "SHOW_SHIP_FLAG";
//     public static final String SAT_VIEW_FLAG = "SAT_VIEW_FLAG";
//     public static final String SHOW_TRAFFIC_FLAG = "SHOW_TRAFFIC_FLAG";
//     public static final String MAP_PROVIDER_TYPE_FLAG = "MAP_PROVIDER_TYPE_FLAG";
//     public static final String SYNC_TIME_FLAG = "SYNC_TIME_FLAG";
//     public static final String ZOOM_FLAG = "ZOOM_FLAG";
//     public static final String HOME_LOC_LONG_FLAG = "HOME_LOCATION_LONG_FLAG";
//     public static final String HOME_LOC_LAT_FLAG = "HOME_LOCATION_LAT_FLAG";
//     public static final String LAST_LOC_LONG_FLAG = "LAST_LOC_LONG_FLAG";
//     public static final String LAST_LOC_LAT_FLAG = "LAST_LOC_LAT_FLAG";
//     public static final String APP_SHARED_SOURCE = "SPB_TRANSPORT_APP";
//     public static final int DEFAULT_ZOOM_LEVEL = 15;
//     public static final int MS_IN_SEC = 1000;
//     public static final int DEFAULT_SYNC_MS = 10000;
//     public static final String ROUTES_TO_TRACK = "ROUTES_TO_TRACK";
//     public static final String THEME_FLAG = "THEME_FLAG";
//     public static final String ICON_SIZE_FLAG = "ICON_SIZE_FLAG";
//     public static final int DEFAULT_ICON_SIZE = 5;
// }


import android.content.SharedPreferences;
import android.util.Log;
import com.emal.android.transport.spb.MapProviderType;
import com.emal.android.transport.spb.VehicleType;
import com.emal.android.transport.spb.utils.Constants;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.maps.GeoPoint;
import java.util.*;
import java.util.concurrent.ConcurrentSkipListSet;
        Set<String> stringSet = sharedPreferences.getStringSet(Constants.ROUTES_TO_TRACK, Collections.<String>emptySet());
        this.routesToTrack = new ConcurrentSkipListSet<String>(stringSet);
        this.theme = Theme.valueOf(sharedPreferences.getString(Constants.THEME_FLAG, Theme.HOLO_LIGHT.name()));
    }

    public boolean isShowBus() {
        return showBus;
    }

    public boolean isShowTrolley() {
        return showTrolley;
    }

    public boolean isShowTram() {
        return showTram;
    }

    public boolean isShowShip() {
        return showShip;
    }

    public boolean isSatView() {
        return satView;
    }

    public boolean isShowTraffic() {
        return showTraffic;
    }

    public int getSyncTime() {
// Path: src/main/java/com/emal/android/transport/spb/MapProviderType.java
// public enum MapProviderType {
//     GMAPSV1, GMAPSV2, OSM;
// 
//     public static MapProviderType getByValue(String value) {
//         for (MapProviderType type: MapProviderType.values()) {
//             if (type.name().equals(value)) {
//                 return type;
//             }
//         }
//         return null;
//     }
// }
// 
// Path: src/main/java/com/emal/android/transport/spb/VehicleType.java
// public enum VehicleType {
//     BUS("vehicle_bus", "0", "A", false, Color.BLUE),
//     TROLLEY("vehicle_trolley", "1", "Ш", true, Color.GREEN),
//     TRAM("vehicle_tram", "2", "T", false, Color.RED),
//     SHIP("vehicle_ship", "46", "S", false, Color.YELLOW);
// 
//     private String code;
//     private String id;
//     private String letter;
//     private boolean upsideDown;
//     private int color;
// 
//     private VehicleType(String code, String id, String letter, boolean upsideDown, int color) {
//         this.code = code;
//         this.id = id;
//         this.letter = letter;
//         this.color = color;
//         this.upsideDown = upsideDown;
//     }
// 
//     public String getCode() {
//         return code;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public String getLetter() {
//         return letter;
//     }
// 
//     public int getColor() {
//         return color;
//     }
// 
//     public boolean isUpsideDown() {
//         return upsideDown;
//     }
// 
//     public static VehicleType getType(String value) {
//         if ("bus".equals(value)) {
//             return BUS;
//         }
//         if ("tram".equals(value)) {
//             return TRAM;
//         }
//         if ("trolley".equals(value)) {
//             return TROLLEY;
//         }
//         if ("ship".equals(value)) {
//             return SHIP;
//         }
//         throw new IllegalStateException("Wrong vehicle type");
//     }
// }
// 
// Path: src/main/java/com/emal/android/transport/spb/utils/Constants.java
// public final class Constants {
//     public static final String URL_TEMPLATE = "http://transport.orgp.spb.ru/cgi-bin/mapserv?TRANSPARENT=TRUE&FORMAT=image%2Fpng&MAP=vehicle_typed.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&_OLSALT=0.1508798657450825";
//     public static final String URL_PARAMS = "&LAYERS=%s&BBOX=%s&WIDTH=%d&HEIGHT=%d";
//     public static final String SHOW_BUS_FLAG = "SHOW_BUS_FLAG";
//     public static final String SHOW_TROLLEY_FLAG = "SHOW_TROLLEY_FLAG";
//     public static final String SHOW_TRAM_FLAG = "SHOW_TRAM_FLAG";
//     public static final String SHOW_SHIP_FLAG = "SHOW_SHIP_FLAG";
//     public static final String SAT_VIEW_FLAG = "SAT_VIEW_FLAG";
//     public static final String SHOW_TRAFFIC_FLAG = "SHOW_TRAFFIC_FLAG";
//     public static final String MAP_PROVIDER_TYPE_FLAG = "MAP_PROVIDER_TYPE_FLAG";
//     public static final String SYNC_TIME_FLAG = "SYNC_TIME_FLAG";
//     public static final String ZOOM_FLAG = "ZOOM_FLAG";
//     public static final String HOME_LOC_LONG_FLAG = "HOME_LOCATION_LONG_FLAG";
//     public static final String HOME_LOC_LAT_FLAG = "HOME_LOCATION_LAT_FLAG";
//     public static final String LAST_LOC_LONG_FLAG = "LAST_LOC_LONG_FLAG";
//     public static final String LAST_LOC_LAT_FLAG = "LAST_LOC_LAT_FLAG";
//     public static final String APP_SHARED_SOURCE = "SPB_TRANSPORT_APP";
//     public static final int DEFAULT_ZOOM_LEVEL = 15;
//     public static final int MS_IN_SEC = 1000;
//     public static final int DEFAULT_SYNC_MS = 10000;
//     public static final String ROUTES_TO_TRACK = "ROUTES_TO_TRACK";
//     public static final String THEME_FLAG = "THEME_FLAG";
//     public static final String ICON_SIZE_FLAG = "ICON_SIZE_FLAG";
//     public static final int DEFAULT_ICON_SIZE = 5;
// }


// Path: src/main/java/com/emal/android/transport/spb/model/ApplicationParams.java
import android.content.SharedPreferences;
import android.util.Log;
import com.emal.android.transport.spb.MapProviderType;
import com.emal.android.transport.spb.VehicleType;
import com.emal.android.transport.spb.utils.Constants;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.maps.GeoPoint;
import java.util.*;
import java.util.concurrent.ConcurrentSkipListSet;

        Set<String> stringSet = sharedPreferences.getStringSet(Constants.ROUTES_TO_TRACK, Collections.<String>emptySet());
        this.routesToTrack = new ConcurrentSkipListSet<String>(stringSet);
        this.theme = Theme.valueOf(sharedPreferences.getString(Constants.THEME_FLAG, Theme.HOLO_LIGHT.name()));
    }

    public boolean isShowBus() {
        return showBus;
    }

    public boolean isShowTrolley() {
        return showTrolley;
    }

    public boolean isShowTram() {
        return showTram;
    }

    public boolean isShowShip() {
        return showShip;
    }

    public boolean isSatView() {
        return satView;
    }

    public boolean isShowTraffic() {
        return showTraffic;
    }

    public int getSyncTime() {
        return syncTime;