[add] 添加云公告注册java文件
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.mogo.eagle.core.function.notice;
|
||||
|
||||
/**
|
||||
* @author liujing
|
||||
* @description 云公告注册
|
||||
* @since: 10/27/21
|
||||
*/
|
||||
public class MoGoNoticeManager {
|
||||
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.mogo.eagle.core.function.notice
|
||||
|
||||
import android.content.Context
|
||||
import com.mogo.eagle.core.function.api.notice.IMoGoNoticeProvider
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/9/18 11:44 上午
|
||||
* 处理云端下发通知、公告类的逻辑的接口
|
||||
*/
|
||||
class MoGoNoticeProvider : IMoGoNoticeProvider {
|
||||
private val TAG = "MoGoNoticeProvider"
|
||||
|
||||
override val functionName: String
|
||||
get() = TAG
|
||||
|
||||
override fun onDestroy() {
|
||||
|
||||
}
|
||||
|
||||
override fun init(context: Context) {}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.mogo.eagle.core.function.notice.receiver;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
/**
|
||||
* @author Jing
|
||||
* @description push云公告消息接收
|
||||
* @since: 10/27/21
|
||||
*/
|
||||
public class NoticeReceiver extends BroadcastReceiver {
|
||||
private Context mContext;
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
mContext = context;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user