eu.easypush.pushlibrary.tasks.SetMessageReadTask 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 SetMessageReadTask extends AsyncTask {
private final Context context;
private final String messageId;
public SetMessageReadTask(Context _context, String _messageId) {
context = _context;
messageId = _messageId;
}
@Override
protected Void doInBackground(Void... params) {
EasyPushRequest.setMessageRead(context,
PushUtils.getProjectToken(context),
PushUtils.getDeviceId(context),
PushUtils.getApplicationName(context), messageId);
return null;
}
}