eu.easypush.pushlibrary.tasks.AddDeviceProjectTask Maven / Gradle / Ivy
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 AddDeviceProjectTask extends AsyncTask {
private final Context context;
public AddDeviceProjectTask(Context _context) {
context = _context;
}
@Override
protected Void doInBackground(Void... params) {
EasyPushRequest.addDeviceProject(context,
PushUtils.getProjectToken(context),
PushUtils.getDeviceId(context),
PushUtils.getRegistrationId(context),
PushUtils.getApplicationName(context),
PushUtils.isProductionMode(context));
return null;
}
}