// Path: src/de/hdodenhof/holoreader/Config.java
// public class Config {
// 
//     public static final String API_BASEURL = "https://holoreader.appspot.com/api/";
//     public static final String GCM_SENDER_ID = "";
// 
// }


import java.net.URI;
import java.util.HashMap;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.CoreConnectionPNames;
import com.google.gson.Gson;
import de.hdodenhof.holoreader.Config;
package de.hdodenhof.holoreader.gcm;





public class GCMServerUtilities {

    @SuppressWarnings("unused")
    private static final String TAG = GCMServerUtilities.class.getName();

    public static boolean registerOnServer(String eMail, String regId, String uuid) {
        try {
            HashMap<String, String> entityMap = new HashMap<String, String>();
            entityMap.put("eMail", eMail);
            entityMap.put("regId", regId);
            entityMap.put("uuid", uuid);
            entityMap.put("device", android.os.Build.MODEL);
            String entity = new Gson().toJson(entityMap);

            HttpPut request = new HttpPut();
// Path: src/de/hdodenhof/holoreader/Config.java
// public class Config {
// 
//     public static final String API_BASEURL = "https://holoreader.appspot.com/api/";
//     public static final String GCM_SENDER_ID = "";
// 
// }


// Path: src/de/hdodenhof/holoreader/gcm/GCMServerUtilities.java
import java.net.URI;
import java.util.HashMap;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.CoreConnectionPNames;
import com.google.gson.Gson;
import de.hdodenhof.holoreader.Config;

package de.hdodenhof.holoreader.gcm;





public class GCMServerUtilities {

    @SuppressWarnings("unused")
    private static final String TAG = GCMServerUtilities.class.getName();

    public static boolean registerOnServer(String eMail, String regId, String uuid) {
        try {
            HashMap<String, String> entityMap = new HashMap<String, String>();
            entityMap.put("eMail", eMail);
            entityMap.put("regId", regId);
            entityMap.put("uuid", uuid);
            entityMap.put("device", android.os.Build.MODEL);
            String entity = new Gson().toJson(entityMap);

            HttpPut request = new HttpPut();
            request.setURI(new URI(Config.API_BASEURL + "register"));