+++ /dev/null
-package ro.ieval.fonbot;
-
-import org.eclipse.jdt.annotation.Nullable;
-
-import android.content.Context;
-import android.content.Intent;
-import com.google.android.gcm.GCMBaseIntentService;
-
-/*
- * Copyright © 2013 Marius Gavrilescu
- *
- * This file is part of FonBot.
- *
- * FonBot is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * FonBot is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with FonBot. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/**
- * Service that responds to GCM events
- *
- * @author Marius Gavrilescu <marius@ieval.ro>
- */
-public class GCMIntentService extends GCMBaseIntentService {
- /**
- * Constructs a GCMIntentService with the iEval sender id
- */
- public GCMIntentService() {
- super(FonBotApplication.GCM_SENDER_ID);
- }
-
- @Override
- protected void onError(@Nullable final Context context, @Nullable final String errID) {
- //TODO error handling here
- }
-
- @Override
- protected void onMessage(@Nullable final Context context, @Nullable final Intent intent) {
- if(context==null)
- return;
-
- Utils.pollServer(context);
- }
-
- @Override
- protected void onRegistered(@Nullable final Context context, @Nullable final String regID) {
- //do nothing
- }
-
- @Override
- protected void onUnregistered(@Nullable final Context context, @Nullable final String regID) {
- //do nothing
- }
-}