// Path: 2016-06-08_queue/app/src/main/java-fcm/com/gdgand/rxjava/rxjavasample/fcm/message/event/NotificationEvent.java
// public class NotificationEvent {
//     private String index;
//     private String message;
// 
//     public NotificationEvent(String index, String message) {
// 
//         this.index = index;
//         this.message = message;
//     }
// 
//     public String getIndex() {
//         return index;
//     }
// 
//     public void setIndex(String index) {
//         this.index = index;
//     }
// 
//     public String getMessage() {
//         return message;
//     }
// 
//     public void setMessage(String message) {
//         this.message = message;
//     }
// }


import android.util.Log;
import com.gdgand.rxjava.rxjavasample.fcm.message.event.NotificationEvent;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import org.greenrobot.eventbus.EventBus;
import java.util.Map;
package com.gdgand.rxjava.rxjavasample.fcm.message;





public class MessageReceiverService extends FirebaseMessagingService {

    private static final String TAG = "MessageReceiverService";

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        super.onMessageReceived(remoteMessage);

        Map<String, String> data = remoteMessage.getData();

        Log.d(TAG, "onMessageReceived: " + data.toString());

        String index = data.get("index");
        String message = data.get("message");

// Path: 2016-06-08_queue/app/src/main/java-fcm/com/gdgand/rxjava/rxjavasample/fcm/message/event/NotificationEvent.java
// public class NotificationEvent {
//     private String index;
//     private String message;
// 
//     public NotificationEvent(String index, String message) {
// 
//         this.index = index;
//         this.message = message;
//     }
// 
//     public String getIndex() {
//         return index;
//     }
// 
//     public void setIndex(String index) {
//         this.index = index;
//     }
// 
//     public String getMessage() {
//         return message;
//     }
// 
//     public void setMessage(String message) {
//         this.message = message;
//     }
// }


// Path: 2016-06-08_queue/app/src/main/java-fcm/com/gdgand/rxjava/rxjavasample/fcm/message/MessageReceiverService.java
import android.util.Log;
import com.gdgand.rxjava.rxjavasample.fcm.message.event.NotificationEvent;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import org.greenrobot.eventbus.EventBus;
import java.util.Map;

package com.gdgand.rxjava.rxjavasample.fcm.message;





public class MessageReceiverService extends FirebaseMessagingService {

    private static final String TAG = "MessageReceiverService";

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        super.onMessageReceived(remoteMessage);

        Map<String, String> data = remoteMessage.getData();

        Log.d(TAG, "onMessageReceived: " + data.toString());

        String index = data.get("index");
        String message = data.get("message");

        NotificationEvent event = new NotificationEvent(index, message);