PushAmazonIntentService.java 1.75 KB
package com.arellomobile.android.push;

import android.content.Intent;
import android.util.Log;
import com.amazon.device.messaging.ADMMessageHandlerBase;
import com.amazon.device.messaging.ADMMessageReceiver;
import com.google.android.gcm.GCMRegistrar;

public class PushAmazonIntentService
  extends ADMMessageHandlerBase
{
  public PushAmazonIntentService()
  {
    super(PushAmazonIntentService.class.getName());
  }
  
  public PushAmazonIntentService(String paramString)
  {
    super(paramString);
  }
  
  protected void onMessage(Intent paramIntent)
  {
    Log.i("AmazonIntentService", "Received message");
    PushServiceHelper.generateNotification(getApplicationContext(), paramIntent);
  }
  
  protected void onRegistered(String paramString)
  {
    Log.i("AmazonIntentService", "Device registered: regId = " + paramString);
    GCMRegistrar.setRegistrationId(getApplicationContext(), paramString);
    DeviceRegistrar.a(getApplicationContext(), paramString);
  }
  
  protected void onRegistrationError(String paramString)
  {
    Log.e("AmazonIntentService", "Messaging registration error: " + paramString);
    PushEventsTransmitter.b(getApplicationContext(), paramString);
  }
  
  protected void onUnregistered(String paramString)
  {
    Log.i("AmazonIntentService", "Device unregistered");
    GCMRegistrar.clearRegistrationId(getApplicationContext());
    DeviceRegistrar.b(getApplicationContext(), paramString);
  }
  
  public static class MessageAlertReceiver
    extends ADMMessageReceiver
  {
    public MessageAlertReceiver()
    {
      super();
    }
  }
}


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