// Path: app/src/main/java/com/w9jds/marketbot/classes/CrestService.java
// public interface CrestService {
// 
//     @GET("/")
//     Observable<Response<CrestServerStatus>> getServer();
// 
//     @GET("/market/types/")
//     Call<CrestDictionary<CrestMarketType>> getMarketTypes(@Query("page") int page);
// 
//     @GET("/inventory/types/{typeId}/")
//     Call<CrestType> getTypeInfo(@Path("typeId") long id);
// 
//     @GET("/market/groups/")
//     Observable<Response<CrestDictionary<CrestMarketGroup>>> getMarketGroups();
// 
//     @GET("/regions/")
//     Observable<Response<CrestDictionary<CrestItem>>> getRegions();
// 
//     @GET("/market/{regionId}/orders/{orderType}/")
//     Observable<Response<CrestDictionary<CrestMarketOrder>>> getMarketOrders(@Path("regionId") long regionId,
//                                                                             @Path("orderType") String orderType,
//                                                                             @Query(value = "type", encoded = true) String typeId);
// 
//     @GET("/market/{regionId}/orders/")
//     Observable<Response<CrestDictionary<CrestMarketOrder>>> getMarketOrders(@Path("regionId") long regionId,
//                                                                             @Query(value = "type", encoded = true) String typeId);
// 
//     @GET("/market/{regionId}/history/")
//     Call<CrestDictionary<CrestMarketHistory>> getMarketHistory(@Path("regionId") final long regionId,
//                                                                @Query("type") final String typeRef);
// 
// }


import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Build;
import com.w9jds.marketbot.classes.CrestService;
package com.w9jds.marketbot.services;




@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public final class BotJobService extends JobService {

    private static final String TAG = "MailService";

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public boolean onStartJob(JobParameters params) {
        new CheckMarketOrders(this)
                .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
        return true;
    }

// Path: app/src/main/java/com/w9jds/marketbot/classes/CrestService.java
// public interface CrestService {
// 
//     @GET("/")
//     Observable<Response<CrestServerStatus>> getServer();
// 
//     @GET("/market/types/")
//     Call<CrestDictionary<CrestMarketType>> getMarketTypes(@Query("page") int page);
// 
//     @GET("/inventory/types/{typeId}/")
//     Call<CrestType> getTypeInfo(@Path("typeId") long id);
// 
//     @GET("/market/groups/")
//     Observable<Response<CrestDictionary<CrestMarketGroup>>> getMarketGroups();
// 
//     @GET("/regions/")
//     Observable<Response<CrestDictionary<CrestItem>>> getRegions();
// 
//     @GET("/market/{regionId}/orders/{orderType}/")
//     Observable<Response<CrestDictionary<CrestMarketOrder>>> getMarketOrders(@Path("regionId") long regionId,
//                                                                             @Path("orderType") String orderType,
//                                                                             @Query(value = "type", encoded = true) String typeId);
// 
//     @GET("/market/{regionId}/orders/")
//     Observable<Response<CrestDictionary<CrestMarketOrder>>> getMarketOrders(@Path("regionId") long regionId,
//                                                                             @Query(value = "type", encoded = true) String typeId);
// 
//     @GET("/market/{regionId}/history/")
//     Call<CrestDictionary<CrestMarketHistory>> getMarketHistory(@Path("regionId") final long regionId,
//                                                                @Query("type") final String typeRef);
// 
// }


// Path: app/src/main/java/com/w9jds/marketbot/services/BotJobService.java
import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Build;
import com.w9jds.marketbot.classes.CrestService;

package com.w9jds.marketbot.services;




@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public final class BotJobService extends JobService {

    private static final String TAG = "MailService";

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public boolean onStartJob(JobParameters params) {
        new CheckMarketOrders(this)
                .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
        return true;
    }

    @Override