/QingTingFanBianYi/src/fm/qingting/qtradio/pushmessage/UmengPushIntentService.java

https://gitlab.com/qt-prometheus/qt-prometheus · Java · 61 lines · 52 code · 5 blank · 4 comment · 7 complexity · 6b8dd85aed716a2a6b4ea3c3f4cc85c5 MD5 · raw file

  1. package fm.qingting.qtradio.pushmessage;
  2. import android.content.Context;
  3. import android.content.Intent;
  4. import android.util.Log;
  5. import com.alibaba.fastjson.JSON;
  6. import com.alibaba.fastjson.JSONObject;
  7. import com.umeng.message.UmengBaseIntentService;
  8. public class UmengPushIntentService extends UmengBaseIntentService
  9. {
  10. private static final String TAG = "UmengPushIntentService";
  11. private String mAlias;
  12. private String mMessage;
  13. private String mRegId;
  14. private String mTopic;
  15. private void log(String paramString)
  16. {
  17. }
  18. protected void onMessage(Context paramContext, Intent paramIntent)
  19. {
  20. super.onMessage(paramContext, paramIntent);
  21. if ((paramIntent == null) || (paramContext == null));
  22. while (true)
  23. {
  24. return;
  25. try
  26. {
  27. paramIntent = paramIntent.getStringExtra("body");
  28. if (paramIntent != null)
  29. {
  30. log(paramIntent);
  31. paramIntent = ((JSONObject)JSON.parse(paramIntent)).getJSONObject("body").getJSONObject("custom");
  32. this.mTopic = paramIntent.getString("topic");
  33. this.mAlias = paramIntent.getString("alias");
  34. this.mMessage = paramIntent.getString("msg");
  35. paramIntent = new Intent();
  36. paramIntent.setAction("fm.qingting.qtradio.GEXIN_MESSAGE");
  37. paramIntent.putExtra("alias", this.mAlias);
  38. paramIntent.putExtra("msg", this.mMessage);
  39. paramIntent.putExtra("topic", this.mTopic);
  40. paramIntent.putExtra("reg", this.mRegId);
  41. paramIntent.putExtra("type", String.valueOf(0));
  42. paramContext.sendBroadcast(paramIntent);
  43. return;
  44. }
  45. }
  46. catch (Exception paramContext)
  47. {
  48. Log.e("UmengPushIntentService", paramContext.getMessage());
  49. }
  50. }
  51. }
  52. }
  53. /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar
  54. * Qualified Name: fm.qingting.qtradio.pushmessage.UmengPushIntentService
  55. * JD-Core Version: 0.6.2
  56. */