]> iEval git - fonbot.git/blobdiff - src/ro/ieval/fonbot/GCMIntentService.java
Replace GCM and polling with long polling
[fonbot.git] / src / ro / ieval / fonbot / GCMIntentService.java
diff --git a/src/ro/ieval/fonbot/GCMIntentService.java b/src/ro/ieval/fonbot/GCMIntentService.java
deleted file mode 100644 (file)
index 84a3c79..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-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
-       }
-}
This page took 0.024769 seconds and 4 git commands to generate.