BasePushMessageReceiver.java 1.01 KB
package com.arellomobile.android.push;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.arellomobile.android.push.utils.PreferenceUtils;

public abstract class BasePushMessageReceiver
  extends BroadcastReceiver
{
  public static final String JSON_DATA_KEY = "pw_data_json_string";
  
  public abstract void onMessageReceive(Intent paramIntent);
  
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    ((NotificationManager)paramContext.getSystemService("notification")).cancel(PreferenceUtils.getMessageId(paramContext));
    PushManager.getInstance(paramContext);
    PushManager.a(paramContext, paramIntent.getExtras().getString("p"));
    onMessageReceive(paramIntent);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/arellomobile/android/push/BasePushMessageReceiver.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */