// Path: app/src/main/java/com/leelit/stuer/MyBusinessActivity.java
// public class MyBusinessActivity extends AppCompatActivity {
// 
//     @InjectView(R.id.toolbar)
//     Toolbar mToolbar;
// 
//     private int mOrderActivityConstant;
//     private Fragment mFragment;
// 
//     public static boolean needPush = false;
//     public static String uniquecode = "";
//     public static String type = "";
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_mybusiness);
//         ButterKnife.inject(this);
//         UiUtils.setTranslucentStatusBar(this);
//         if (UiUtils.isNightMode(this)) {
//             return;
//         }
// 
//         needPush = getIntent().getBooleanExtra("need_push", false);
//         if (needPush) {
//             uniquecode = getIntent().getStringExtra("unique_code");
//             type = getIntent().getStringExtra("type");
//         }
//         mOrderActivityConstant = getIntent().getIntExtra(MyBusinessConstant.TAG, 1);
// 
//         if (mOrderActivityConstant == MyBusinessConstant.CARPOOL) {
//             mToolbar.setTitle(getString(R.string.mine_title_1));
//             mFragment = new MyCarpoolFragment();
//         } else if (mOrderActivityConstant == MyBusinessConstant.DATE) {
//             mToolbar.setTitle(getString(R.string.mine_title_2));
//             mFragment = new MyDateFragment();
//         } else if (mOrderActivityConstant == MyBusinessConstant.SELL) {
//             mToolbar.setTitle("我的转让");
//             mFragment = new MySellFragment();
//         }
// 
// 
//         setSupportActionBar(mToolbar);
//         mToolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha);
//         mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
//             @Override
//             public void onClick(View v) {
//                 finish();
//             }
//         });
// 
//         getSupportFragmentManager().
//                 beginTransaction().
//                 replace(R.id.content, mFragment).
//                 commit();
// 
//     }
// 
// }
// 
// Path: app/src/main/java/com/leelit/stuer/constant/MyBusinessConstant.java
// public class MyBusinessConstant {
// 
//     public static final String TAG = "MyBusiness";
// 
//     public static final int CARPOOL = 1;
//     public static final int DATE = 2;
//     public static final int SELL = 3;
// }
// 
// Path: app/src/main/java/com/leelit/stuer/utils/XingeUtils.java
// public class XingeUtils {
// 
//     private static final long XINGE_ACCESS_ID = 2100195691;
//     private static final String XINGE_SECRET_KEY = "feb3e40e0d6f24af0a3564fe56ec3f58";
// 
//     public static final String COMMON_Title = "STUer";
//     public static final String CARPOOL_Message = "你有新的拼友";
//     public static final String DATE_Message = "你有新的约友";
// 
// 
//     public static void pushToAccount(String message, String account) {
//         pushToAccount(COMMON_Title, message, account, null);
//     }
// 
//     public static void pushToAccount(final String title, final String message, final String account, final String activity) {
//         // 必须在子线程完成
//         Executors.newSingleThreadExecutor().execute(new Runnable() {
//             @Override
//             public void run() {
//                 try {
//                     Log.e("tag", XingeApp.pushAccountAndroid(XINGE_ACCESS_ID, XINGE_SECRET_KEY, title, message, account, activity).toString());
//                 } catch (JSONException e) {
//                     // 不关心推送失败
//                     e.printStackTrace();
//                 }
//             }
//         });
//     }
// 
// }


import android.content.Context;
import android.content.Intent;
import com.leelit.stuer.MyBusinessActivity;
import com.leelit.stuer.constant.MyBusinessConstant;
import com.leelit.stuer.utils.XingeUtils;
import com.tencent.android.tpush.XGPushBaseReceiver;
import com.tencent.android.tpush.XGPushClickedResult;
import com.tencent.android.tpush.XGPushRegisterResult;
import com.tencent.android.tpush.XGPushShowedResult;
import com.tencent.android.tpush.XGPushTextMessage;
package com.leelit.stuer.receiver;



/**
 * Created by Leelit on 2016/4/23.
 */
public class MyXGResultReceiver extends XGPushBaseReceiver {
    @Override
    public void onRegisterResult(Context context, int i, XGPushRegisterResult xgPushRegisterResult) {

    }

    @Override
    public void onUnregisterResult(Context context, int i) {

    }

    @Override
    public void onSetTagResult(Context context, int i, String s) {

    }

    @Override
    public void onDeleteTagResult(Context context, int i, String s) {

    }

    @Override
// Path: app/src/main/java/com/leelit/stuer/MyBusinessActivity.java
// public class MyBusinessActivity extends AppCompatActivity {
// 
//     @InjectView(R.id.toolbar)
//     Toolbar mToolbar;
// 
//     private int mOrderActivityConstant;
//     private Fragment mFragment;
// 
//     public static boolean needPush = false;
//     public static String uniquecode = "";
//     public static String type = "";
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_mybusiness);
//         ButterKnife.inject(this);
//         UiUtils.setTranslucentStatusBar(this);
//         if (UiUtils.isNightMode(this)) {
//             return;
//         }
// 
//         needPush = getIntent().getBooleanExtra("need_push", false);
//         if (needPush) {
//             uniquecode = getIntent().getStringExtra("unique_code");
//             type = getIntent().getStringExtra("type");
//         }
//         mOrderActivityConstant = getIntent().getIntExtra(MyBusinessConstant.TAG, 1);
// 
//         if (mOrderActivityConstant == MyBusinessConstant.CARPOOL) {
//             mToolbar.setTitle(getString(R.string.mine_title_1));
//             mFragment = new MyCarpoolFragment();
//         } else if (mOrderActivityConstant == MyBusinessConstant.DATE) {
//             mToolbar.setTitle(getString(R.string.mine_title_2));
//             mFragment = new MyDateFragment();
//         } else if (mOrderActivityConstant == MyBusinessConstant.SELL) {
//             mToolbar.setTitle("我的转让");
//             mFragment = new MySellFragment();
//         }
// 
// 
//         setSupportActionBar(mToolbar);
//         mToolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha);
//         mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
//             @Override
//             public void onClick(View v) {
//                 finish();
//             }
//         });
// 
//         getSupportFragmentManager().
//                 beginTransaction().
//                 replace(R.id.content, mFragment).
//                 commit();
// 
//     }
// 
// }
// 
// Path: app/src/main/java/com/leelit/stuer/constant/MyBusinessConstant.java
// public class MyBusinessConstant {
// 
//     public static final String TAG = "MyBusiness";
// 
//     public static final int CARPOOL = 1;
//     public static final int DATE = 2;
//     public static final int SELL = 3;
// }
// 
// Path: app/src/main/java/com/leelit/stuer/utils/XingeUtils.java
// public class XingeUtils {
// 
//     private static final long XINGE_ACCESS_ID = 2100195691;
//     private static final String XINGE_SECRET_KEY = "feb3e40e0d6f24af0a3564fe56ec3f58";
// 
//     public static final String COMMON_Title = "STUer";
//     public static final String CARPOOL_Message = "你有新的拼友";
//     public static final String DATE_Message = "你有新的约友";
// 
// 
//     public static void pushToAccount(String message, String account) {
//         pushToAccount(COMMON_Title, message, account, null);
//     }
// 
//     public static void pushToAccount(final String title, final String message, final String account, final String activity) {
//         // 必须在子线程完成
//         Executors.newSingleThreadExecutor().execute(new Runnable() {
//             @Override
//             public void run() {
//                 try {
//                     Log.e("tag", XingeApp.pushAccountAndroid(XINGE_ACCESS_ID, XINGE_SECRET_KEY, title, message, account, activity).toString());
//                 } catch (JSONException e) {
//                     // 不关心推送失败
//                     e.printStackTrace();
//                 }
//             }
//         });
//     }
// 
// }


// Path: app/src/main/java/com/leelit/stuer/receiver/MyXGResultReceiver.java
import android.content.Context;
import android.content.Intent;
import com.leelit.stuer.MyBusinessActivity;
import com.leelit.stuer.constant.MyBusinessConstant;
import com.leelit.stuer.utils.XingeUtils;
import com.tencent.android.tpush.XGPushBaseReceiver;
import com.tencent.android.tpush.XGPushClickedResult;
import com.tencent.android.tpush.XGPushRegisterResult;
import com.tencent.android.tpush.XGPushShowedResult;
import com.tencent.android.tpush.XGPushTextMessage;

package com.leelit.stuer.receiver;



/**
 * Created by Leelit on 2016/4/23.
 */
public class MyXGResultReceiver extends XGPushBaseReceiver {
    @Override
    public void onRegisterResult(Context context, int i, XGPushRegisterResult xgPushRegisterResult) {

    }

    @Override
    public void onUnregisterResult(Context context, int i) {

    }

    @Override
    public void onSetTagResult(Context context, int i, String s) {

    }

    @Override
    public void onDeleteTagResult(Context context, int i, String s) {

    }

    @Override
    public void onTextMessage(Context context, XGPushTextMessage xgPushTextMessage) {