aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/server/PushQueries.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/juick/server/PushQueries.java')
-rw-r--r--src/com/juick/server/PushQueries.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/juick/server/PushQueries.java b/src/com/juick/server/PushQueries.java
index a532622a..84f42722 100644
--- a/src/com/juick/server/PushQueries.java
+++ b/src/com/juick/server/PushQueries.java
@@ -16,6 +16,10 @@ import java.util.ArrayList;
*/
public class PushQueries {
+ public static String getAndroidRegID(Connection sql, int uid) {
+ return SQLHelpers.getString(sql, "SELECT regid FROM android WHERE user_id=?", uid);
+ }
+
public static ArrayList<String> getAndroidSubscribers(Connection sql, int uid) {
ArrayList<String> regids = new ArrayList<String>();
@@ -37,6 +41,10 @@ public class PushQueries {
return regids;
}
+ public static String getWinPhoneURL(Connection sql, int uid) {
+ return SQLHelpers.getString(sql, "SELECT url FROM winphone WHERE user_id=?", uid);
+ }
+
public static ArrayList<String> getWinPhoneSubscribers(Connection sql, int uid) {
ArrayList<String> urls = new ArrayList<String>();
@@ -57,5 +65,4 @@ public class PushQueries {
}
return urls;
}
-
}