// Path: app/src/main/java/com/projects/elad/hacklist/util/Constants.java
// public class Constants {
// 
//   public static final String HACKALIST_BASE_URL = "http://www.hackalist.org/api/1.0";
//   public static final String FACEBOOK_API_GET_PAGE_PICTURE =  "https://graph.facebook.com/v2.7/"; //** /{page-id}/picture **/
// 
// }


import com.projects.elad.hacklist.util.Constants;
import java.util.List;
import java.util.Map;
import retrofit.RestAdapter;
import retrofit.http.GET;
import retrofit.http.Path;
import rx.Observable;
package com.projects.elad.hacklist.data.api;





public interface HacklistService {

  @GET("/{YEAR}/{MONTH}.json")
  Observable<Map<String, List<HackEvent>>> getMonthObject(@Path("YEAR") String year, @Path("MONTH") String month);


  /******** Helper class that sets up new services *******/
  class ServiceCreator {

    public static HacklistService newHacklistService() {
      RestAdapter retrofitAdapter = new RestAdapter.Builder()
              .setLogLevel(RestAdapter.LogLevel.FULL)
// Path: app/src/main/java/com/projects/elad/hacklist/util/Constants.java
// public class Constants {
// 
//   public static final String HACKALIST_BASE_URL = "http://www.hackalist.org/api/1.0";
//   public static final String FACEBOOK_API_GET_PAGE_PICTURE =  "https://graph.facebook.com/v2.7/"; //** /{page-id}/picture **/
// 
// }


// Path: app/src/main/java/com/projects/elad/hacklist/data/api/HacklistService.java
import com.projects.elad.hacklist.util.Constants;
import java.util.List;
import java.util.Map;
import retrofit.RestAdapter;
import retrofit.http.GET;
import retrofit.http.Path;
import rx.Observable;

package com.projects.elad.hacklist.data.api;





public interface HacklistService {

  @GET("/{YEAR}/{MONTH}.json")
  Observable<Map<String, List<HackEvent>>> getMonthObject(@Path("YEAR") String year, @Path("MONTH") String month);


  /******** Helper class that sets up new services *******/
  class ServiceCreator {

    public static HacklistService newHacklistService() {
      RestAdapter retrofitAdapter = new RestAdapter.Builder()
              .setLogLevel(RestAdapter.LogLevel.FULL)
              .setEndpoint(Constants.HACKALIST_BASE_URL)