]>
iEval git - fonbot.git/blob - GCMIntentService.java
84a3c7903268c8656f3790dd406db5712000260f
1 package ro
.ieval
.fonbot
;
3 import org
.eclipse
.jdt
.annotation
.Nullable
;
5 import android
.content
.Context
;
6 import android
.content
.Intent
;
7 import com
.google
.android
.gcm
.GCMBaseIntentService
;
10 * Copyright © 2013 Marius Gavrilescu
12 * This file is part of FonBot.
14 * FonBot is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * FonBot is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with FonBot. If not, see <http://www.gnu.org/licenses/>.
29 * Service that responds to GCM events
31 * @author Marius Gavrilescu <marius@ieval.ro>
33 public class GCMIntentService
extends GCMBaseIntentService
{
35 * Constructs a GCMIntentService with the iEval sender id
37 public GCMIntentService() {
38 super(FonBotApplication
.GCM_SENDER_ID
);
42 protected void onError(@Nullable final Context context
, @Nullable final String errID
) {
43 //TODO error handling here
47 protected void onMessage(@Nullable final Context context
, @Nullable final Intent intent
) {
51 Utils
.pollServer(context
);
55 protected void onRegistered(@Nullable final Context context
, @Nullable final String regID
) {
60 protected void onUnregistered(@Nullable final Context context
, @Nullable final String regID
) {
This page took 0.044744 seconds and 3 git commands to generate.