//package com.hh.arome.services;
//
//import android.app.Service;
//import android.content.Intent;
//import android.os.IBinder;
//import android.os.RemoteException;
//import android.util.Log;
//
//import androidx.annotation.Nullable;
//
//import com.hh.arome.utlis.log.AppLogUtils;
//import com.hh.arome.bean.AppMessageBean;
//import com.hh.arome.bean.AppMessageInterface;
//
//import org.greenrobot.eventbus.EventBus;
//
//public class AppMessageService extends Service  {
//
//
////    MessageCallback messageCallback;
////
////    public void setMessageCallback(MessageCallback messageCallback) {
////        this.messageCallback = messageCallback;
////    }
//
//
//    public void DemoService(){
//        EventBus.getDefault().register(this);
//    }
//
//
//    @Nullable
//    @Override
//    public IBinder onBind(Intent intent) {
//        return binder;
//    }
//
//    private AppMessageInterface.Stub binder = new AppMessageInterface.Stub() {
//        private AppMessageBean appMessageBean;
//
//        @Override
//        public void setAppMessageBean(AppMessageBean appMessageBean) throws RemoteException {
//            AppLogUtils.e("拿到的测试名字---" + appMessageBean.getOp());
//            // 可对数据进行操作再赋值
////            AppMessageBean.setName(AppMessageBean.getName()+"ss");
//
////            if (messageCallback != null && AppMessageBean.getName() != null) {
////                messageCallback.onSuccess(AppMessageBean.getName());
////            }
//
//            this.appMessageBean = appMessageBean;
//
//            EventBus.getDefault().post(appMessageBean.getOp());
//
//        }
//
//
//        @Override
//        public AppMessageBean getAppMessageBean() throws RemoteException {
//            return appMessageBean;
//        }
//    };
//
//}