PushRegistrarGCM.java
1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
*/