// Path: amaroKontrol_wear/wear/src/main/java/com/mv2studio/amarok/kontrol/WearApp.java
// public class WearApp extends Application {
// 
//     private static WearApp instance;
// 
//     public static WearApp getInstance() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//     }
// 
//     /**
//      * Don't forget to call .connect on this!
//      * @return
//      */
//     public GoogleApiClient getGoogleApiClient() {
//         return new GoogleApiClient.Builder(this)
//                 .addApi(Wearable.API)
//                 .build();
//     }
// }
// 
// Path: amaroKontrol_wear/phoneWearShared/src/main/java/com/mv2studio/amarok/kontrol/shared/Constants.java
// public abstract class Constants {
// 
//     public static final String COMM_START = "start_app";
//     public static final String COMM_FORCE_REFRESH = "force_refresh";
//     public static final String COMM_CLEAR_NOTIFICATION = "clear_notification";
// 
//     public static final String COMM_PLAYER_DISCONNECTED = "player_disconnected";
// 
//     public static final String URL_GITHUB = "https://github.com/MatejVancik/amaroKontrol";
//     
//     
//     public static final String CONST_UPDATE_SCRIPT = "update_script_message";
// 
//     public static final String COMM_PATH_SONG = "/song";
//     public static final String COMM_PATH_STATE = "/state";
//     public static final String COMM_PATH_UNAVAILABLE = "/unavailable";
//     public static final String COMM_DATA_CONTENT = "content";
//     public static final String COMM_DATA_COVER = "cover";
//     public static final String COMM_DATA_COVER_BLURED = "blured_cover";
//     public static final String COMM_DATA_STATE = "state";
// 
//     public static final String WEAR_COMMAND_PLAY = "play";
//     public static final String WEAR_COMMAND_NEXT = "next";
//     public static final String WEAR_COMMAND_PREV = "prev";
//     public static final String WEAR_COMMAND_VOL_DOWN = "vol_down";
//     public static final String WEAR_COMMAND_VOL_UP = "vol_up";
// 
// }
// 
// Path: amaroKontrol_wear/phoneWearShared/src/main/java/com/mv2studio/amarok/kontrol/shared/Log.java
// public class Log {
// 
//     private static final String TAG = "amaroKontrol";
// 
//     public static void w(String message) {
//         android.util.Log.w(TAG, message);
//     }
// 
//     public static void d(String message) {
//         android.util.Log.d(TAG, message);
//     }
// 
//     public static void e(String message) {
//         android.util.Log.e(TAG, message);
//     }
// 
// }
// 
// Path: amaroKontrol_wear/phoneWearShared/src/main/java/com/mv2studio/amarok/kontrol/shared/MessageResultCallback.java
// public interface MessageResultCallback {
//     public void onMessageResult(boolean wasSuccessful);
// }


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.wearable.MessageApi;
import com.google.android.gms.wearable.Node;
import com.google.android.gms.wearable.NodeApi;
import com.google.android.gms.wearable.Wearable;
import com.mv2studio.amarok.kontrol.WearApp;
import com.mv2studio.amarok.kontrol.shared.Constants;
import com.mv2studio.amarok.kontrol.shared.Log;
import com.mv2studio.amarok.kontrol.shared.MessageResultCallback;
import java.util.ArrayList;
import java.util.List;
package com.mv2studio.amarok.kontrol.communication;




/**
 * Created by matej on 15.2.15.
 */
public class Commander {

    public static final String APP_PCKG = "com.mv2studio.amarok.kontrol";
    public static final String COMMAND_PLAY_PAUSE = APP_PCKG + ".play";
    public static final String COMMAND_NEXT = APP_PCKG + ".next";
    public static final String COMMAND_PREV = APP_PCKG + ".prev";
    public static final String COMMAND_VOL_UP = APP_PCKG + ".vol_up";
    public static final String COMMAND_VOL_DOWN = APP_PCKG + "vol_down";

    private GoogleApiClient googleApiClient = WearApp.getInstance().getGoogleApiClient();

    private static Commander sInstance;

    private Commander() {
// Path: amaroKontrol_wear/wear/src/main/java/com/mv2studio/amarok/kontrol/WearApp.java
// public class WearApp extends Application {
// 
//     private static WearApp instance;
// 
//     public static WearApp getInstance() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//     }
// 
//     /**
//      * Don't forget to call .connect on this!
//      * @return
//      */
//     public GoogleApiClient getGoogleApiClient() {
//         return new GoogleApiClient.Builder(this)
//                 .addApi(Wearable.API)
//                 .build();
//     }
// }
// 
// Path: amaroKontrol_wear/phoneWearShared/src/main/java/com/mv2studio/amarok/kontrol/shared/Constants.java
// public abstract class Constants {
// 
//     public static final String COMM_START = "start_app";
//     public static final String COMM_FORCE_REFRESH = "force_refresh";
//     public static final String COMM_CLEAR_NOTIFICATION = "clear_notification";
// 
//     public static final String COMM_PLAYER_DISCONNECTED = "player_disconnected";
// 
//     public static final String URL_GITHUB = "https://github.com/MatejVancik/amaroKontrol";
//     
//     
//     public static final String CONST_UPDATE_SCRIPT = "update_script_message";
// 
//     public static final String COMM_PATH_SONG = "/song";
//     public static final String COMM_PATH_STATE = "/state";
//     public static final String COMM_PATH_UNAVAILABLE = "/unavailable";
//     public static final String COMM_DATA_CONTENT = "content";
//     public static final String COMM_DATA_COVER = "cover";
//     public static final String COMM_DATA_COVER_BLURED = "blured_cover";
//     public static final String COMM_DATA_STATE = "state";
// 
//     public static final String WEAR_COMMAND_PLAY = "play";
//     public static final String WEAR_COMMAND_NEXT = "next";
//     public static final String WEAR_COMMAND_PREV = "prev";
//     public static final String WEAR_COMMAND_VOL_DOWN = "vol_down";
//     public static final String WEAR_COMMAND_VOL_UP = "vol_up";
// 
// }
// 
// Path: amaroKontrol_wear/phoneWearShared/src/main/java/com/mv2studio/amarok/kontrol/shared/Log.java
// public class Log {
// 
//     private static final String TAG = "amaroKontrol";
// 
//     public static void w(String message) {
//         android.util.Log.w(TAG, message);
//     }
// 
//     public static void d(String message) {
//         android.util.Log.d(TAG, message);
//     }
// 
//     public static void e(String message) {
//         android.util.Log.e(TAG, message);
//     }
// 
// }
// 
// Path: amaroKontrol_wear/phoneWearShared/src/main/java/com/mv2studio/amarok/kontrol/shared/MessageResultCallback.java
// public interface MessageResultCallback {
//     public void onMessageResult(boolean wasSuccessful);
// }


// Path: amaroKontrol_wear/wear/src/main/java/com/mv2studio/amarok/kontrol/communication/Commander.java
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.wearable.MessageApi;
import com.google.android.gms.wearable.Node;
import com.google.android.gms.wearable.NodeApi;
import com.google.android.gms.wearable.Wearable;
import com.mv2studio.amarok.kontrol.WearApp;
import com.mv2studio.amarok.kontrol.shared.Constants;
import com.mv2studio.amarok.kontrol.shared.Log;
import com.mv2studio.amarok.kontrol.shared.MessageResultCallback;
import java.util.ArrayList;
import java.util.List;

package com.mv2studio.amarok.kontrol.communication;




/**
 * Created by matej on 15.2.15.
 */
public class Commander {

    public static final String APP_PCKG = "com.mv2studio.amarok.kontrol";
    public static final String COMMAND_PLAY_PAUSE = APP_PCKG + ".play";
    public static final String COMMAND_NEXT = APP_PCKG + ".next";
    public static final String COMMAND_PREV = APP_PCKG + ".prev";
    public static final String COMMAND_VOL_UP = APP_PCKG + ".vol_up";
    public static final String COMMAND_VOL_DOWN = APP_PCKG + "vol_down";

    private GoogleApiClient googleApiClient = WearApp.getInstance().getGoogleApiClient();

    private static Commander sInstance;

    private Commander() {
        googleApiClient = WearApp.getInstance().getGoogleApiClient();