eu.easypush.pushlibrary.tasks.RemoveDeviceProjectTask Maven / Gradle / Ivy
The newest version!
package eu.easypush.pushlibrary.tasks;
import android.content.Context;
import android.os.AsyncTask;
import eu.easypush.pushlibrary.requests.EasyPushRequest;
import eu.easypush.pushlibrary.utils.PushUtils;
public class RemoveDeviceProjectTask extends AsyncTask {
private final Context context;
public RemoveDeviceProjectTask(Context _context) {
context = _context;
}
@Override
protected Void doInBackground(Void... params) {
EasyPushRequest.removeDeviceProject(context,
PushUtils.getProjectToken(context),
PushUtils.getDeviceId(context),
PushUtils.getRegistrationId(context),
PushUtils.getApplicationName(context));
return null;
}
}