com.gizwits.gizwifisdk.enumration.GizPushType Java Examples
The following examples show how to use
com.gizwits.gizwifisdk.enumration.GizPushType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GosPushManager.java From GOpenSource_AppKit_Android_AS with MIT License | 6 votes |
public static void pushUnBindService(String token) { if (token.isEmpty()) { return; } if (GizPushType.GizPushJiGuang == gizPushType) { // 获取JPush的RegistrationID,即Channel_ID Channel_ID = JPushInterface.getRegistrationID(context); } else if (GizPushType.GizPushBaiDu == gizPushType) { // 获取BDPush的Channel_ID Channel_ID = BaiDuPushReceiver.BaiDuPush_Channel_ID; } else { return; } // TODO 绑定推送 Log.i("Apptest", Channel_ID + "\n" + gizPushType.toString() + "\n" + token); GizWifiSDK.sharedInstance().channelIDUnBind(token, Channel_ID); }
Example #2
Source File: GosPushManager.java From Gizwits-SmartBuld_Android with MIT License | 6 votes |
public static void pushUnBindService(String token) { if (token.isEmpty()) { return; } if (GizPushType.GizPushJiGuang == gizPushType) { // 获取JPush的RegistrationID,即Channel_ID Channel_ID = JPushInterface.getRegistrationID(context); } else if (GizPushType.GizPushBaiDu == gizPushType) { // 获取BDPush的Channel_ID Channel_ID = BaiDuPushReceiver.BaiDuPush_Channel_ID; } else { return; } // TODO 绑定推送 Log.i("Apptest", Channel_ID + "\n" + gizPushType.toString() + "\n" + token); GizWifiSDK.sharedInstance().channelIDUnBind(token, Channel_ID); }
Example #3
Source File: GosPushManager.java From gokit-android with MIT License | 6 votes |
public static void pushUnBindService(String token) { if (token.isEmpty()) { return; } if (GizPushType.GizPushJiGuang == gizPushType) { // 获取JPush的RegistrationID,即Channel_ID Channel_ID = JPushInterface.getRegistrationID(context); } else if (GizPushType.GizPushBaiDu == gizPushType) { // 获取BDPush的Channel_ID Channel_ID = BaiDuPushReceiver.BaiDuPush_Channel_ID; } else { return; } // TODO 绑定推送 Log.i("Apptest", Channel_ID + "\n" + gizPushType.toString() + "\n" + token); GizWifiSDK.sharedInstance().channelIDUnBind(token, Channel_ID); }
Example #4
Source File: GosPushManager.java From GOpenSource_AppKit_Android_AS with MIT License | 5 votes |
public GosPushManager(int PushType, Context context) { super(); GosPushManager.context = context; if (PushType == 1) { GosPushManager.gizPushType = GizPushType.GizPushJiGuang; jPush(); } else if (PushType == 2) { GosPushManager.gizPushType = GizPushType.GizPushBaiDu; bDPush(); } else { } }
Example #5
Source File: GosPushManager.java From GOpenSource_AppKit_Android_AS with MIT License | 5 votes |
/** * 向云端绑定推送 * * @param Token * @param Channel_ID * @param gizPushType */ public static void pushBindService(String token) { if (GizPushType.GizPushJiGuang == gizPushType) { // 获取JPush的RegistrationID,即Channel_ID Channel_ID = JPushInterface.getRegistrationID(context); // 设定JPush类型 JPushInterface.setAlias(context, Channel_ID, new TagAliasCallback() { @Override public void gotResult(int arg0, String arg1, Set<String> arg2) { if (arg0 == 0) { Log.i("Apptest", "Alias: " + arg1); } else { Log.e("Apptest", "Result: " + arg0); } } }); } else if (GizPushType.GizPushBaiDu == gizPushType) { // 获取BDPush的Channel_ID Channel_ID = BaiDuPushReceiver.BaiDuPush_Channel_ID; } else { return; } // TODO 绑定推送 Log.i("Apptest", Channel_ID + "\n" + gizPushType.toString() + "\n" + token); GizWifiSDK.sharedInstance().channelIDBind(token, Channel_ID, gizPushType); }
Example #6
Source File: GosPushManager.java From Gizwits-SmartBuld_Android with MIT License | 5 votes |
public GosPushManager(int PushType, Context context) { super(); GosPushManager.context = context; if (PushType == 1) { GosPushManager.gizPushType = GizPushType.GizPushJiGuang; jPush(); } else if (PushType == 2) { GosPushManager.gizPushType = GizPushType.GizPushBaiDu; bDPush(); } else { } }
Example #7
Source File: GosPushManager.java From Gizwits-SmartBuld_Android with MIT License | 5 votes |
/** * 向云端绑定推送 * * @param Token * @param Channel_ID * @param gizPushType */ public static void pushBindService(String token) { if (GizPushType.GizPushJiGuang == gizPushType) { // 获取JPush的RegistrationID,即Channel_ID Channel_ID = JPushInterface.getRegistrationID(context); // 设定JPush类型 JPushInterface.setAlias(context, Channel_ID, new TagAliasCallback() { @Override public void gotResult(int arg0, String arg1, Set<String> arg2) { if (arg0 == 0) { Log.i("Apptest", "Alias: " + arg1); } else { Log.e("Apptest", "Result: " + arg0); } } }); } else if (GizPushType.GizPushBaiDu == gizPushType) { // 获取BDPush的Channel_ID Channel_ID = BaiDuPushReceiver.BaiDuPush_Channel_ID; } else { return; } // TODO 绑定推送 Log.i("Apptest", Channel_ID + "\n" + gizPushType.toString() + "\n" + token); GizWifiSDK.sharedInstance().channelIDBind(token, Channel_ID, gizPushType); }
Example #8
Source File: GosPushManager.java From gokit-android with MIT License | 5 votes |
public GosPushManager(int PushType, Context context) { super(); GosPushManager.context = context; if (PushType == 1) { GosPushManager.gizPushType = GizPushType.GizPushJiGuang; jPush(); } else if (PushType == 2) { GosPushManager.gizPushType = GizPushType.GizPushBaiDu; bDPush(); } else { } }
Example #9
Source File: GosPushManager.java From gokit-android with MIT License | 5 votes |
/** * 向云端绑定推送 * * @param Token * @param Channel_ID * @param gizPushType */ public static void pushBindService(String token) { if (GizPushType.GizPushJiGuang == gizPushType) { // 获取JPush的RegistrationID,即Channel_ID Channel_ID = JPushInterface.getRegistrationID(context); // 设定JPush类型 JPushInterface.setAlias(context, Channel_ID, new TagAliasCallback() { @Override public void gotResult(int arg0, String arg1, Set<String> arg2) { if (arg0 == 0) { Log.i("Apptest", "Alias: " + arg1); } else { Log.e("Apptest", "Result: " + arg0); } } }); } else if (GizPushType.GizPushBaiDu == gizPushType) { // 获取BDPush的Channel_ID Channel_ID = BaiDuPushReceiver.BaiDuPush_Channel_ID; } else { return; } // TODO 绑定推送 Log.i("Apptest", Channel_ID + "\n" + gizPushType.toString() + "\n" + token); GizWifiSDK.sharedInstance().channelIDBind(token, Channel_ID, gizPushType); }