All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.easypush.pushlibrary.tasks.SetMessageReceivedTask Maven / Gradle / Ivy

There is a newer version: 0.8
Show 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 SetMessageReceivedTask extends AsyncTask {

	private final Context context;
	private final String messageId;

	public SetMessageReceivedTask(Context _context, String _messageId) {
		context = _context;
		messageId = _messageId;
	}

	@Override
	protected Void doInBackground(Void... params) {
		EasyPushRequest.setMessageReceived(context,
				PushUtils.getProjectToken(context),
				PushUtils.getDeviceId(context),
				PushUtils.getApplicationName(context), messageId);
		return null;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy