package com.secure.sandbox.server.interfaces;

import android.app.job.JobInfo;
import com.secure.sandbox.entity.VJobWorkItem;
import android.os.Parcelable;
import android.content.pm.ParceledListSlice;

import java.util.List;

/**
 * @author Lody
 */
interface IJobService{

    int schedule(int uid,in  JobInfo job);

    void cancel(int uid, int jobId);

    void cancelAll(int uid);

    List<JobInfo> getAllPendingJobs(int uid);

    ParceledListSlice getAllPendingJobsForR(int uid);

    JobInfo getPendingJob(int uid, int jobId);

    int enqueue(int uid,in JobInfo job, in VJobWorkItem workItem);
}
