PushRegistrarGCM.java 1.18 KB
package com.arellomobile.android.push.registrar;

import android.content.Context;
import com.arellomobile.android.push.utils.GeneralUtils;
import com.arellomobile.android.push.utils.PreferenceUtils;
import com.google.android.gcm.GCMRegistrar;

public class PushRegistrarGCM
  implements PushRegistrar
{
  public PushRegistrarGCM(Context paramContext) {}
  
  public void checkDevice(Context paramContext)
  {
    String str1 = PreferenceUtils.getApplicationId(paramContext);
    String str2 = PreferenceUtils.getProjectId(paramContext);
    GeneralUtils.checkNotNullOrEmpty(str1, "mAppId");
    GeneralUtils.checkNotNullOrEmpty(str2, "mSenderId");
    GCMRegistrar.checkDevice(paramContext);
    GCMRegistrar.checkManifest(paramContext);
  }
  
  public void registerPW(Context paramContext)
  {
    GCMRegistrar.register(paramContext, new String[] { PreferenceUtils.getProjectId(paramContext) });
  }
  
  public void unregisterPW(Context paramContext)
  {
    GCMRegistrar.unregister(paramContext);
  }
}


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