Android Open Source - notify-me-android Received Push Notification






From Project

Back to project page notify-me-android.

License

The source code is released under:

MIT License

If you think the Android project notify-me-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.contexthub.notifyme.model;
/*from  w  ww . j  a v a  2  s .c o m*/
import android.os.Bundle;
import android.text.TextUtils;

import com.contexthub.notifyme.Constants;

import java.io.Serializable;
import java.util.Date;

/**
 * Metadata for a received push notification
 */
public class ReceivedPushNotification implements Serializable {

    String message;
    String customPayload;
    boolean background;
    Date receivedDate;

    public ReceivedPushNotification(Bundle bundle) {
        message = bundle.getString(Constants.KEY_MESSAGE, "");
        customPayload = bundle.getString(Constants.KEY_CUSTOM_PAYLOAD, "");
        background = TextUtils.isEmpty(message);
        receivedDate = new Date();
    }

    public String getMessage() {
        return message;
    }

    public String getCustomPayload() {
        return customPayload;
    }

    public boolean isBackground() {
        return background;
    }

    public Date getReceivedDate() {
        return receivedDate;
    }
}




Java Source Code List

com.contexthub.notifyme.ApplicationTest.java
com.contexthub.notifyme.Constants.java
com.contexthub.notifyme.MainActivity.java
com.contexthub.notifyme.NotifyMeApp.java
com.contexthub.notifyme.fragments.AboutFragment.java
com.contexthub.notifyme.fragments.DeviceFragment.java
com.contexthub.notifyme.fragments.PushReceiveFragment.java
com.contexthub.notifyme.fragments.PushSendFragment.java
com.contexthub.notifyme.model.CustomData.java
com.contexthub.notifyme.model.PushNotificationHistory.java
com.contexthub.notifyme.model.ReceivedPushNotification.java
com.contexthub.notifyme.push.NotificationHandler.java
com.contexthub.notifyme.widget.ClipboardTextView.java