diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 5ecdf77031..4f32108c9a 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -29,8 +29,6 @@
-
-
diff --git a/app/build.gradle b/app/build.gradle
index 04a375ea0d..49e15fd186 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -289,7 +289,6 @@ dependencies {
apply from: "./functions/baseservices.gradle"
apply from: "./functions/socketpush.gradle"
apply from: "./functions/gpssimulator.gradle"
- //apply from: "./functions/eventpanel.gradle"
apply from: "./functions/leftpanel.gradle"
}
diff --git a/app/functions/eventpanel.gradle b/app/functions/eventpanel.gradle
deleted file mode 100644
index 8fd4d2cacf..0000000000
--- a/app/functions/eventpanel.gradle
+++ /dev/null
@@ -1,25 +0,0 @@
-// 道路事件操作面板
-
-project.dependencies {
- if (Boolean.valueOf(RELEASE)) {
- d8xxImplementation rootProject.ext.dependencies.moduleventpanel
-
- d82xImplementation rootProject.ext.dependencies.moduleventpanelnoop
- em1Implementation rootProject.ext.dependencies.moduleventpanelnoop
- bydautoImplementation rootProject.ext.dependencies.moduleventpanelnoop
- em4Implementation rootProject.ext.dependencies.moduleventpanelnoop
- e8xxImplementation rootProject.ext.dependencies.moduleventpanelnoop
- f8xxImplementation rootProject.ext.dependencies.moduleventpanelnoop
- em3Implementation rootProject.ext.dependencies.moduleventpanelnoop
- } else {
- d8xxImplementation project(':modules:mogo-module-event-panel')
-
- d82xImplementation project(':modules:mogo-module-event-panel-noop')
- em1Implementation project(':modules:mogo-module-event-panel-noop')
- bydautoImplementation project(':modules:mogo-module-event-panel-noop')
- em4Implementation project(':modules:mogo-module-event-panel-noop')
- e8xxImplementation project(':modules:mogo-module-event-panel-noop')
- f8xxImplementation project(':modules:mogo-module-event-panel-noop')
- em3Implementation project(':modules:mogo-module-event-panel-noop')
- }
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/.gitignore b/modules/mogo-module-event-panel-noop/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/modules/mogo-module-event-panel-noop/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/build.gradle b/modules/mogo-module-event-panel-noop/build.gradle
deleted file mode 100644
index 2bd80f619d..0000000000
--- a/modules/mogo-module-event-panel-noop/build.gradle
+++ /dev/null
@@ -1,55 +0,0 @@
-apply plugin: 'com.android.library'
-apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-android-extensions'
-apply plugin: 'kotlin-kapt'
-apply plugin: 'com.alibaba.arouter'
-
-android {
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- // buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode Integer.valueOf(VERSION_CODE)
- versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
-
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles 'consumer-rules.pro'
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
- compileOptions {
- targetCompatibility 1.8
- sourceCompatibility 1.8
- }
-
-}
-
-dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation rootProject.ext.dependencies.androidxccorektx
- implementation rootProject.ext.dependencies.kotlinstdlibjdk7
- implementation rootProject.ext.dependencies.androidxappcompat
- implementation rootProject.ext.dependencies.arouter
- kapt rootProject.ext.dependencies.aroutercompiler
-
- if (Boolean.valueOf(RELEASE)) {
- compileOnly rootProject.ext.dependencies.modulecommon
- } else {
- compileOnly project(':modules:mogo-module-common')
- }
-}
-
-apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
diff --git a/modules/mogo-module-event-panel-noop/consumer-rules.pro b/modules/mogo-module-event-panel-noop/consumer-rules.pro
deleted file mode 100644
index da191c00b8..0000000000
--- a/modules/mogo-module-event-panel-noop/consumer-rules.pro
+++ /dev/null
@@ -1 +0,0 @@
--keep class com.zhidao.mogo.module.event.panel.EventPanelConstants
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/gradle.properties b/modules/mogo-module-event-panel-noop/gradle.properties
deleted file mode 100644
index df90d55670..0000000000
--- a/modules/mogo-module-event-panel-noop/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.module
-POM_ARTIFACT_ID=module-event-panel-noop
-VERSION_CODE=1
diff --git a/modules/mogo-module-event-panel-noop/proguard-rules.pro b/modules/mogo-module-event-panel-noop/proguard-rules.pro
deleted file mode 100644
index 58b6896c9d..0000000000
--- a/modules/mogo-module-event-panel-noop/proguard-rules.pro
+++ /dev/null
@@ -1,23 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
-
--keep class com.zhidao.mogo.module.event.panel.EventPanelConstants
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/src/androidTest/java/com/zhidao/mogo/module/event/panel/ExampleInstrumentedTest.kt b/modules/mogo-module-event-panel-noop/src/androidTest/java/com/zhidao/mogo/module/event/panel/ExampleInstrumentedTest.kt
deleted file mode 100644
index 6a8c2bfcea..0000000000
--- a/modules/mogo-module-event-panel-noop/src/androidTest/java/com/zhidao/mogo/module/event/panel/ExampleInstrumentedTest.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.zhidao.mogo.module.event.panel
-
-import androidx.test.platform.app.InstrumentationRegistry
-import androidx.test.ext.junit.runners.AndroidJUnit4
-
-import org.junit.Test
-import org.junit.runner.RunWith
-
-import org.junit.Assert.*
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-@RunWith(AndroidJUnit4::class)
-class ExampleInstrumentedTest {
- @Test
- fun useAppContext() {
- // Context of the app under test.
- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
- assertEquals("com.zhidao.mogo.module.event.panel.test", appContext.packageName)
- }
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/src/main/AndroidManifest.xml b/modules/mogo-module-event-panel-noop/src/main/AndroidManifest.xml
deleted file mode 100644
index c865fb2efe..0000000000
--- a/modules/mogo-module-event-panel-noop/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- /
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelConstants.kt b/modules/mogo-module-event-panel-noop/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelConstants.kt
deleted file mode 100644
index dc22fdbc7a..0000000000
--- a/modules/mogo-module-event-panel-noop/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelConstants.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.zhidao.mogo.module.event.panel
-
-/**
- * 事件面板相关常量
- *
- * @author tongchenfei
- */
-object EventPanelConstants {
- const val MODULE_NAME = "MODULE_EVENT_PANEL"
- const val PATH_NAME = "/event/panel"
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelModuleProvider.kt b/modules/mogo-module-event-panel-noop/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelModuleProvider.kt
deleted file mode 100644
index a5c31d2f2a..0000000000
--- a/modules/mogo-module-event-panel-noop/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelModuleProvider.kt
+++ /dev/null
@@ -1,94 +0,0 @@
-package com.zhidao.mogo.module.event.panel
-
-import android.content.Context
-import android.os.Bundle
-import android.view.View
-import androidx.fragment.app.Fragment
-import com.alibaba.android.arouter.facade.annotation.Route
-import com.mogo.map.listener.IMogoMapListener
-import com.mogo.map.location.IMogoLocationListener
-import com.mogo.map.marker.IMogoMarkerClickListener
-import com.mogo.map.navi.IMogoNaviListener
-import com.mogo.service.MogoServicePaths
-import com.mogo.service.eventpanel.IEventPanelProvider
-import com.mogo.service.module.IMogoModuleLifecycle
-import com.mogo.utils.logger.Logger
-import com.zhidao.mogo.module.event.panel.EventPanelConstants.MODULE_NAME
-
-/**
- * 事件面板provider的空方法实现
- *
- * @author tongchenfei
- */
-
-
-const val TAG = "EventPanelNoopModule"
-
-@Route(path = MogoServicePaths.PATH_EVENT_PANEL)
-class EventPanelModuleProvider : IEventPanelProvider {
- override fun init(context: Context) {
- Logger.d(TAG, "模块初始化====")
- }
-
- override fun createFragment(context: Context, data: Bundle?): Fragment? {
- return null
- }
-
- /**
- * 显示面板
- */
- override fun showPanel() {
- }
-
-
- /**
- * 隐藏面板
- */
- override fun hidePanel() {
- }
-
- override fun createView(context: Context): View? {
- return null
- }
-
- override fun getModuleName(): String {
- return MODULE_NAME
- }
-
- override fun getCardLifecycle(): IMogoModuleLifecycle? {
- return null
- }
-
- override fun getMapListener(): IMogoMapListener? {
- return null
- }
-
- override fun getType(): Int {
- return 0
- }
-
- override fun getNaviListener(): IMogoNaviListener? {
- return null
- }
-
- override fun getLocationListener(): IMogoLocationListener? {
- return null
- }
-
- override fun getMarkerClickListener(): IMogoMarkerClickListener? {
- return null
- }
-
- override fun getAppPackage(): String? {
- return null
- }
-
- override fun getAppName(): String? {
- return null
- }
-
- override fun isPanelShow(): Boolean {
- return false
- }
-
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel-noop/src/test/java/com/zhidao/mogo/module/event/panel/ExampleUnitTest.kt b/modules/mogo-module-event-panel-noop/src/test/java/com/zhidao/mogo/module/event/panel/ExampleUnitTest.kt
deleted file mode 100644
index f41429e9e1..0000000000
--- a/modules/mogo-module-event-panel-noop/src/test/java/com/zhidao/mogo/module/event/panel/ExampleUnitTest.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.zhidao.mogo.module.event.panel
-
-import org.junit.Test
-
-import org.junit.Assert.*
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-class ExampleUnitTest {
- @Test
- fun addition_isCorrect() {
- assertEquals(4, 2 + 2)
- }
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/.gitignore b/modules/mogo-module-event-panel/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/modules/mogo-module-event-panel/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/build.gradle b/modules/mogo-module-event-panel/build.gradle
deleted file mode 100644
index 57636d95c1..0000000000
--- a/modules/mogo-module-event-panel/build.gradle
+++ /dev/null
@@ -1,64 +0,0 @@
-apply plugin: 'com.android.library'
-apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-android-extensions'
-apply plugin: 'kotlin-kapt'
-apply plugin: 'com.alibaba.arouter'
-
-android {
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- // buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode Integer.valueOf(VERSION_CODE)
- versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
-
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles 'consumer-rules.pro'
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
- compileOptions {
- targetCompatibility 1.8
- sourceCompatibility 1.8
- }
-
-}
-
-dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation rootProject.ext.dependencies.androidxccorektx
- implementation rootProject.ext.dependencies.kotlinstdlibjdk7
- implementation rootProject.ext.dependencies.androidxappcompat
- implementation rootProject.ext.dependencies.androidxconstraintlayout
- implementation rootProject.ext.dependencies.arouter
- implementation rootProject.ext.dependencies.material
- kapt rootProject.ext.dependencies.aroutercompiler
- implementation rootProject.ext.dependencies.rxjava
- implementation rootProject.ext.dependencies.rxandroid
- implementation rootProject.ext.dependencies.androidxviewpager2
- implementation rootProject.ext.dependencies.androidxrecyclerview
- implementation rootProject.ext.dependencies.room
- kapt rootProject.ext.dependencies.roomAnnotationProcessor
- implementation rootProject.ext.dependencies.roomRxjava
-
- if (Boolean.valueOf(RELEASE)) {
- compileOnly rootProject.ext.dependencies.modulecommon
- } else {
- compileOnly project(':modules:mogo-module-common')
- }
-}
-
-apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
diff --git a/modules/mogo-module-event-panel/consumer-rules.pro b/modules/mogo-module-event-panel/consumer-rules.pro
deleted file mode 100644
index 6cd2a10967..0000000000
--- a/modules/mogo-module-event-panel/consumer-rules.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-#-----EventPanel------
--keep class com.zhidao.mogo.module.event.panel.bean.** {*;}
--keep class com.zhidao.mogo.module.event.panel.dao.** {*;}
--keep class com.zhidao.mogo.module.event.panel.listener.** {*;}
--keep class com.zhidao.mogo.module.event.panel.EventPanelConstants
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/gradle.properties b/modules/mogo-module-event-panel/gradle.properties
deleted file mode 100644
index 6bd32ac3d6..0000000000
--- a/modules/mogo-module-event-panel/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.module
-POM_ARTIFACT_ID=module-event-panel
-VERSION_CODE=1
diff --git a/modules/mogo-module-event-panel/proguard-rules.pro b/modules/mogo-module-event-panel/proguard-rules.pro
deleted file mode 100644
index e778de0a5a..0000000000
--- a/modules/mogo-module-event-panel/proguard-rules.pro
+++ /dev/null
@@ -1,27 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
-
-#-----EventPanel------
--keep class com.zhidao.mogo.module.event.panel.bean.** {*;}
--keep class com.zhidao.mogo.module.event.panel.dao.** {*;}
--keep class com.zhidao.mogo.module.event.panel.listener.** {*;}
--keep class com.zhidao.mogo.module.event.panel.EventPanelConstants
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/AndroidManifest.xml b/modules/mogo-module-event-panel/src/main/AndroidManifest.xml
deleted file mode 100644
index 7e450daf84..0000000000
--- a/modules/mogo-module-event-panel/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelConstants.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelConstants.kt
deleted file mode 100644
index 31e0c28a34..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelConstants.kt
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.zhidao.mogo.module.event.panel
-
-/**
- * 事件面板相关常量
- *
- * @author tongchenfei
- */
-object EventPanelConstants {
- const val MODULE_NAME = "MODULE_EVENT_PANEL"
- const val PATH_NAME = "/event/panel"
-
- const val ROAD_EVENT_USEFUL = "2"
- const val ROAD_EVENT_UNUSEFUL = "1"
- const val ROAD_EVENT_USEFUL_STATUS_UNSET = "0"
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelModuleProvider.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelModuleProvider.kt
deleted file mode 100644
index 6a7f5365f1..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/EventPanelModuleProvider.kt
+++ /dev/null
@@ -1,97 +0,0 @@
-package com.zhidao.mogo.module.event.panel
-
-import android.content.Context
-import android.os.Bundle
-import android.view.View
-import androidx.fragment.app.Fragment
-import com.alibaba.android.arouter.facade.annotation.Route
-import com.mogo.map.listener.IMogoMapListener
-import com.mogo.map.location.IMogoLocationListener
-import com.mogo.map.marker.IMogoMarkerClickListener
-import com.mogo.map.navi.IMogoNaviListener
-import com.mogo.service.eventpanel.IEventPanelProvider
-import com.mogo.service.module.IMogoModuleLifecycle
-import com.mogo.utils.logger.Logger
-import com.zhidao.mogo.module.event.panel.EventPanelConstants.MODULE_NAME
-import com.zhidao.mogo.module.event.panel.EventPanelConstants.PATH_NAME
-import com.zhidao.mogo.module.event.panel.fragment.EventPanelFragment
-
-/**
- * 事件面板provider
- *
- * @author tongchenfei
- */
-@Route(path = PATH_NAME)
-class EventPanelModuleProvider : IEventPanelProvider {
- /**
- * Do your init work in this method, it well be call when processor has been load.
- *
- * @param context ctx
- */
- override fun init(context: Context) {
- Logger.d(MODULE_NAME, "模块初始化====")
- }
-
- override fun createFragment(context: Context, data: Bundle?): Fragment? {
- return EventPanelFragment.getInstance()
- }
-
- /**
- * 显示面板
- */
- override fun showPanel() {
- EventPanelFragment.getInstance().showPanel()
- }
-
- override fun isPanelShow(): Boolean {
- return EventPanelFragment.getInstance().isPanelShow()
- }
-
- /**
- * 隐藏面板
- */
- override fun hidePanel() {
- EventPanelFragment.getInstance().hidePanel()
- }
-
- override fun createView(context: Context): View? {
- return null
- }
-
- override fun getModuleName(): String {
- return MODULE_NAME
- }
-
- override fun getCardLifecycle(): IMogoModuleLifecycle? {
- return null
- }
-
- override fun getMapListener(): IMogoMapListener? {
- return null
- }
-
- override fun getType(): Int {
- return 0
- }
-
- override fun getNaviListener(): IMogoNaviListener? {
- return null
- }
-
- override fun getLocationListener(): IMogoLocationListener? {
- return null
- }
-
- override fun getMarkerClickListener(): IMogoMarkerClickListener? {
- return null
- }
-
- override fun getAppPackage(): String? {
- return null
- }
-
- override fun getAppName(): String? {
- return null
- }
-
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/EventPagerAdapter.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/EventPagerAdapter.kt
deleted file mode 100644
index a2f5b24189..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/EventPagerAdapter.kt
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter
-
-import androidx.fragment.app.Fragment
-import androidx.viewpager2.adapter.FragmentStateAdapter
-
-/**
- * 事件面板viewpager2的adapter
- *
- * @author tongchenfei
- */
-class EventPagerAdapter(fragment: Fragment,
- private val fragments: Array) :
- FragmentStateAdapter(fragment) {
-
- /**
- * 目前一共就三个fragment
- */
- override fun getItemCount(): Int = fragments.size
-
- override fun createFragment(position: Int): Fragment = fragments[position]
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ScenarioHistoryAdapter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ScenarioHistoryAdapter.java
deleted file mode 100644
index c4fd5c04ea..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ScenarioHistoryAdapter.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter;
-
-import android.view.ViewGroup;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.mogo.module.common.entity.V2XHistoryScenarioData;
-import com.mogo.module.common.entity.V2XWindowTypeEnum;
-import com.zhidao.mogo.module.event.panel.adapter.holder.ScenarioHistoryIllegalParkVH;
-
-import java.util.ArrayList;
-
-/**
- * @author donghongyu
- */
-public class ScenarioHistoryAdapter extends RecyclerView.Adapter {
-
- private ArrayList mV2XHistoryScenarioData;
-
- public ScenarioHistoryAdapter(ArrayList v2XHistoryScenarioData) {
- if (v2XHistoryScenarioData != null) {
- this.mV2XHistoryScenarioData = v2XHistoryScenarioData;
- }
- }
-
- @NonNull
- @Override
- public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- RecyclerView.ViewHolder holder;
- switch (viewType) {
- // 直播
- case V2XWindowTypeEnum.LIVE_CAR_WINDOW:
- holder = new ScenarioHistoryIllegalParkVH(parent);
- break;
- default:
- holder = new ScenarioHistoryIllegalParkVH(parent);
- }
- return holder;
- }
-
- @Override
- public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
- if (holder instanceof ScenarioHistoryIllegalParkVH) {
- ((ScenarioHistoryIllegalParkVH) holder).initView(mV2XHistoryScenarioData.get(position));
- }
- }
-
-
- @Override
- public int getItemCount() {
- return mV2XHistoryScenarioData == null ? 0 : mV2XHistoryScenarioData.size();
- }
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java
deleted file mode 100644
index 2dece951eb..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/ShareEventAdapter.java
+++ /dev/null
@@ -1,239 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter;
-
-import android.content.Context;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.Button;
-import android.widget.RatingBar;
-import android.widget.TextView;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.alibaba.android.arouter.launcher.ARouter;
-import com.mogo.service.IMogoServiceApis;
-import com.mogo.service.MogoServicePaths;
-import com.mogo.utils.DateTimeUtils;
-import com.zhidao.mogo.module.event.panel.R;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventDescription;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventItem;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventItemEnum;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventLoadMoreItem;
-import com.zhidao.mogo.module.event.panel.fragment.EventPanelFragment;
-import com.zhidao.mogo.module.event.panel.listener.AdapterCallback;
-import com.zhidao.mogo.module.event.panel.presenter.ShareEventsPresenter;
-
-import java.util.ArrayList;
-
-public class ShareEventAdapter extends RecyclerView.Adapter {
- private Context context;
- private ArrayList dataArrayList;
- private final LayoutInflater shareLayoutInflater;
- private IMogoServiceApis mApis;
- private AdapterCallback callback;
-
- public ShareEventAdapter(Context context, ArrayList dataArrayList, AdapterCallback callback) {
- this.context = context;
- this.dataArrayList = dataArrayList;
- this.callback = callback;
- shareLayoutInflater = LayoutInflater.from(context);
- mApis = (IMogoServiceApis) ARouter.getInstance().build(MogoServicePaths.PATH_SERVICE_APIS).navigation(context);
- }
-
- @NonNull
- @Override
- public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- //根据viewType创建自定义布局
- if (viewType == ShareEventItemEnum.ITEM_TYPE_NUM_DES) {
- View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_description, parent,
- false);
- shareDescriptionViewHolder holder = new shareDescriptionViewHolder(v);
- return holder;
- } else if (viewType == ShareEventItemEnum.ITEM_TYPE_SHARE_LIST) {
- View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_item, parent,
- false);
- shareItemViewHolder holder = new shareItemViewHolder(v);
- return holder;
- } else if (viewType == ShareEventItemEnum.ITEM_TYPE_SHARE_EMPTY) {
- View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_empty, parent,
- false);
- shareEmptyViewHolder holder = new shareEmptyViewHolder(v);
- return holder;
- } else {
- View v = shareLayoutInflater.inflate(R.layout.module_event_panel_share_load_status, parent,
- false);
- shareLoadStatusViewHolder holder = new shareLoadStatusViewHolder(v);
- return holder;
- }
- }
-
- private float getEnthusuasmIndex(double score) {
- if (score <= 0) {
- return 0;
- } else if (0 < score && score <= 5) {
- return (float) 0.5;
- } else if (5 < score && score <= 10) {
- return 1;
- } else if (10 < score && score <= 15) {
- return (float) 1.5;
- } else if (15 < score && score <= 20) {
- return 2;
- } else if (20 < score && score <= 25) {
- return (float) 2.5;
- } else if (25 < score && score <= 30) {
- return 3;
- } else if (30 < score && score <= 35) {
- return (float) 3.5;
- } else if (35 < score && score <= 40) {
- return 4;
- } else if (40 < score && score <= 45) {
- return (float) 4.5;
- }
- return 5;
- }
-
- @Override
- public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
-
- if (holder instanceof shareDescriptionViewHolder) {
- //分享次数,车友认同次数,热心指数
- if (dataArrayList.size() > position) {
- ShareEventDescription.ResultBean.EnthusiasmIndexBean data = (ShareEventDescription.ResultBean.EnthusiasmIndexBean) dataArrayList.get(position);
- if (data != null) {
- String shareNum = String.valueOf(data.getShareNum());
- String likeNum = String.valueOf(data.getLikeNum());
- double enthusiasmIndex = data.getEnthusiasmIndex();
- if (shareNum != null) {
- ((shareDescriptionViewHolder) holder).shareNumTextView.setText(shareNum);
- }
- if (likeNum != null) {
- ((shareDescriptionViewHolder) holder).approveNumTextView.setText(likeNum);
- }
- ((shareDescriptionViewHolder) holder).ratingBar.setRating(getEnthusuasmIndex(enthusiasmIndex));
- }
- }
- } else if (holder instanceof shareItemViewHolder) {
- //分享列表
- if (dataArrayList.size() > position) {
- ShareEventItem.ResultBean.PageBean.ContentBean data = (ShareEventItem.ResultBean.PageBean.ContentBean) dataArrayList.get(position);
- if (data != null) {
- String poitype = data.getPoiType();
- String address = data.getUploadAddress();
- String time = DateTimeUtils.getTimeText(data.getUploadTimestamp());
- String likeNum = String.valueOf(data.getLikeNum());
- String notLikeNum = String.valueOf(data.getNotLikeNum());
- if (poitype != null) {
- ((shareItemViewHolder) holder).caseStyleTextView.setText(poitype);
- }
- if (address != null) {
- ((shareItemViewHolder) holder).caseAddressTextView.setText(address);
- }
- if (time != null) {
- ((shareItemViewHolder) holder).caseTimeTextView.setText(time);
- }
- if (likeNum != null) {
- ((shareItemViewHolder) holder).caseUsefulTextView.setText(likeNum);
- }
- if (notLikeNum != null) {
- ((shareItemViewHolder) holder).caseUselessTextView.setText(notLikeNum);
- }
- }
-
- }
- } else if (holder instanceof shareLoadStatusViewHolder) {
- ShareEventLoadMoreItem item = (ShareEventLoadMoreItem) dataArrayList.get(dataArrayList.size() - 1);
- ((shareLoadStatusViewHolder) holder).statusButton.setText(item.getStatusText());
- }
-
- }
-
- @Override
- public int getItemCount() {
- int size = dataArrayList.size();
- return dataArrayList.size();
- }
-
- @Override
- public int getItemViewType(int position) {
- Object item = dataArrayList.get(position);
- if (item instanceof ShareEventDescription.ResultBean.EnthusiasmIndexBean) {
- return ShareEventItemEnum.ITEM_TYPE_NUM_DES;
- } else if (item instanceof ShareEventItem.ResultBean.PageBean.ContentBean) {
- return ShareEventItemEnum.ITEM_TYPE_SHARE_LIST;
- } else if (item instanceof ShareEventLoadMoreItem) {
- return ((ShareEventLoadMoreItem) dataArrayList.get(position)).getViewType();
- }
- return ShareEventItemEnum.ITEM_TYPE_SHARE_LIST;
- }
-
- /*
- * 分享列表
- * */
- class shareItemViewHolder extends RecyclerView.ViewHolder {
- private TextView caseStyleTextView;
- private TextView caseAddressTextView;
- private TextView caseTimeTextView;
- private TextView caseUsefulTextView;
- private TextView caseUselessTextView;
-
- public shareItemViewHolder(@NonNull View itemView) {
- super(itemView);
- caseStyleTextView = itemView.findViewById(R.id.road_case_style);
- caseAddressTextView = itemView.findViewById(R.id.road_case_address);
- caseTimeTextView = itemView.findViewById(R.id.road_case_share_time);
- caseUsefulTextView = itemView.findViewById(R.id.road_case_useful_num);
- caseUselessTextView = itemView.findViewById(R.id.road_case_useless_num);
- }
- }
-
- /*
- * 分享次数,热心指数...
- * */
- class shareDescriptionViewHolder extends RecyclerView.ViewHolder {
- private TextView shareNumTextView;
- private TextView approveNumTextView;
- private RatingBar ratingBar;
-
- public shareDescriptionViewHolder(@NonNull View itemView) {
- super(itemView);
- shareNumTextView = itemView.findViewById(R.id.share_num);
- approveNumTextView = itemView.findViewById(R.id.share_approve);
- ratingBar = itemView.findViewById(R.id.rating_bar);
- }
- }
-
- /*
- * 去分享
- * */
- class shareEmptyViewHolder extends RecyclerView.ViewHolder {
- public shareEmptyViewHolder(@NonNull View itemView) {
- super(itemView);
-
- Button shareBtn = itemView.findViewById(R.id.share_event_button);
- shareBtn.setOnClickListener(view -> {
- EventPanelFragment.Companion.getInstance().hidePanel();
- mApis.getShareManager().showShareDialog();
- });
- }
- }
-
- /*
- * 加载更多/没有更多
- * */
- class shareLoadStatusViewHolder extends RecyclerView.ViewHolder {
- private TextView statusButton;
-
- public shareLoadStatusViewHolder(@NonNull View itemView) {
- super(itemView);
- statusButton = itemView.findViewById(R.id.event_share_load_status);
- statusButton.setOnClickListener(new View.OnClickListener() {
-
- @Override
- public void onClick(View v) {
- callback.loadMoreShareEventList();
- }
- });
- }
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/SurroundingEventAdapter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/SurroundingEventAdapter.java
deleted file mode 100644
index 909fd2b04f..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/SurroundingEventAdapter.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter;
-
-import android.content.Context;
-import android.view.ViewGroup;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
-
-/**
- * @author lixiaopeng
- * @description 周边
- * @since 2020/7/29
- */
-public class SurroundingEventAdapter extends RecyclerView.Adapter{
-
- //TODO 数据
- public SurroundingEventAdapter(Context context) {
-
- }
-
- @Override
- public int getItemViewType(int position) {
- return super.getItemViewType(position);
- }
-
- @NonNull
- @Override
- public SurroundingEventViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
-
- return null;
- }
-
- @Override
- public void onBindViewHolder(@NonNull SurroundingEventViewHolder holder, int position) {
-
- }
-
- @Override
- public int getItemCount() {
- return 0;
- }
-
-
-
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/SurroundingEventViewHolder.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/SurroundingEventViewHolder.java
deleted file mode 100644
index cf99d90247..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/SurroundingEventViewHolder.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter;
-
-import android.view.View;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
-
-/**
- * @author lixiaopeng
- * @description
- * @since 2020/7/29
- */
-public class SurroundingEventViewHolder extends RecyclerView.ViewHolder{
-
- public SurroundingEventViewHolder(@NonNull View itemView) {
- super(itemView);
- }
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/holder/ScenarioHistoryIllegalParkVH.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/holder/ScenarioHistoryIllegalParkVH.java
deleted file mode 100644
index 76a5870398..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/holder/ScenarioHistoryIllegalParkVH.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter.holder;
-
-import android.view.LayoutInflater;
-import android.view.ViewGroup;
-
-import androidx.annotation.NonNull;
-
-import com.mogo.module.common.entity.V2XHistoryScenarioData;
-import com.zhidao.mogo.module.event.panel.R;
-
-/**
- * @author donghongyu
- */
-public class ScenarioHistoryIllegalParkVH extends V2XBaseViewHolder {
- public ScenarioHistoryIllegalParkVH(@NonNull ViewGroup viewGroup) {
- super(LayoutInflater.from(viewGroup.getContext())
- .inflate(R.layout.module_event_panel_share_item, viewGroup, false));
- }
-
- @Override
- public void initView(V2XHistoryScenarioData viewData) {
-
- }
-
- @Override
- public void delayedCloseWindow() {
-
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/holder/V2XBaseViewHolder.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/holder/V2XBaseViewHolder.java
deleted file mode 100644
index f5f2cfb32e..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/adapter/holder/V2XBaseViewHolder.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package com.zhidao.mogo.module.event.panel.adapter.holder;
-
-import android.view.View;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.mogo.map.navi.IMogoNaviListener;
-import com.mogo.map.navi.MogoNaviInfo;
-import com.mogo.map.navi.MogoTraffic;
-import com.mogo.module.common.entity.MarkerExploreWay;
-import com.mogo.module.common.entity.V2XHistoryScenarioData;
-import com.mogo.utils.TipToast;
-import com.mogo.utils.logger.Logger;
-
-/**
- * V2X展示视图公用的实现
- *
- * @author donghongyu
- */
-public abstract class V2XBaseViewHolder
- extends RecyclerView.ViewHolder
- implements IMogoNaviListener {
-
- public V2XBaseViewHolder(@NonNull View itemView) {
- super(itemView);
- }
-
- public abstract void initView(T viewData);
-
- /**
- * 延迟关闭窗体视图
- */
- public abstract void delayedCloseWindow();
-
- /**
- * 点赞
- */
- public void triggerZan(MarkerExploreWay noveltyInfo) {
-
- delayedCloseWindow();
- }
-
- /**
- * 打电话
- */
- public void triggerCallChart(MarkerExploreWay noveltyInfo) {
-
- delayedCloseWindow();
- }
-
- /**
- * 反馈路况错误
- */
- public void triggerReportErr(MarkerExploreWay noveltyInfo) {
-
- delayedCloseWindow();
- }
-
- /**
- * 反馈路况正确
- */
- public void triggerReportTrue(MarkerExploreWay noveltyInfo) {
-
- delayedCloseWindow();
- }
-
- /**
- * 导航规划路线
- */
- public void triggerStartNavi(MarkerExploreWay noveltyInfo) {
-
- delayedCloseWindow();
- }
-
- /**
- * 显示自定义 Toast
- *
- * @param msg
- */
- public void showTip(String msg) {
- TipToast.tip(msg);
- }
-
- @Override
- public void onInitNaviFailure() {
-
- }
-
- @Override
- public void onInitNaviSuccess() {
-
- }
-
- @Override
- public void onNaviInfoUpdate(MogoNaviInfo naviinfo) {
-
- }
-
- @Override
- public void onStartNavi() {
-
- }
-
- @Override
- public void onStopNavi() {
-
- }
-
- @Override
- public void onCalculateSuccess() {
- Logger.w("V2XBaseViewHolder", "onCalculateSuccess");
- }
-
- @Override
- public void onoCalculateFailed() {
-
- }
-
- @Override
- public void onUpdateTraffic(MogoTraffic traffic) {
-
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/Center.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/Center.kt
deleted file mode 100644
index 3f5d4debca..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/Center.kt
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean
-
-/**
- * @description
- *
- * @author lixiaopeng
- * @since 2019-10-24
- */
-data class Center (
- val lat: Double,
- val lon: Double
-)
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventDescription.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventDescription.java
deleted file mode 100644
index 87d8f4e6b2..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventDescription.java
+++ /dev/null
@@ -1,158 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean;
-
-import com.mogo.commons.data.BaseData;
-
-import java.io.Serializable;
-
-public class ShareEventDescription extends BaseData implements Serializable {
-
- /**
- * detailMsg :
- * result : {"enthusiasmIndex":{"id":68,"sn":"ZD802B1932L00622","score":10,"shareNum":1024,"likeNum":0,"notLikeNum":0,"enthusiasmIndex":1,"createTime":"2020-07-28T06:21:11.523+0000","updateTime":"2020-07-28T06:21:11.523+0000"}}
- */
-
- private String detailMsg;
- private ResultBean result;
-
- public String getDetailMsg() {
- return detailMsg;
- }
-
- public void setDetailMsg(String detailMsg) {
- this.detailMsg = detailMsg;
- }
-
- public ResultBean getResult() {
- return result;
- }
-
- public void setResult(ResultBean result) {
- this.result = result;
- }
-
- public static class ResultBean {
- /**
- * enthusiasmIndex : {"id":68,"sn":"ZD802B1932L00622","score":10,"shareNum":1024,"likeNum":0,"notLikeNum":0,"enthusiasmIndex":1,"createTime":"2020-07-28T06:21:11.523+0000","updateTime":"2020-07-28T06:21:11.523+0000"}
- */
-
- private EnthusiasmIndexBean enthusiasmIndex;
-
- public EnthusiasmIndexBean getEnthusiasmIndex() {
- return enthusiasmIndex;
- }
-
- public void setEnthusiasmIndex(EnthusiasmIndexBean enthusiasmIndex) {
- this.enthusiasmIndex = enthusiasmIndex;
- }
-
- public static class EnthusiasmIndexBean{
- @Override
- public String toString() {
- return "EnthusiasmIndexBean{" +
- ", id=" + id +
- ", sn='" + sn + '\'' +
- ", score=" + score +
- ", shareNum=" + shareNum +
- ", likeNum=" + likeNum +
- ", notLikeNum=" + notLikeNum +
- ", enthusiasmIndex=" + enthusiasmIndex +
- ", createTime='" + createTime + '\'' +
- ", updateTime='" + updateTime + '\'' +
- '}';
- }
-
- /**
- * id : 68
- * sn : ZD802B1932L00622
- * score : 10
- * shareNum : 1024
- * likeNum : 0
- * notLikeNum : 0
- * enthusiasmIndex : 1.0
- * createTime : 2020-07-28T06:21:11.523+0000
- * updateTime : 2020-07-28T06:21:11.523+0000
- */
- private int id;
- private String sn;
- private int score;
- private int shareNum;
- private int likeNum;
- private int notLikeNum;
- private double enthusiasmIndex;
- private String createTime;
- private String updateTime;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getSn() {
- return sn;
- }
-
- public void setSn(String sn) {
- this.sn = sn;
- }
-
- public int getScore() {
- return score;
- }
-
- public void setScore(int score) {
- this.score = score;
- }
-
- public int getShareNum() {
- return shareNum;
- }
-
- public void setShareNum(int shareNum) {
- this.shareNum = shareNum;
- }
-
- public int getLikeNum() {
- return likeNum;
- }
-
- public void setLikeNum(int likeNum) {
- this.likeNum = likeNum;
- }
-
- public int getNotLikeNum() {
- return notLikeNum;
- }
-
- public void setNotLikeNum(int notLikeNum) {
- this.notLikeNum = notLikeNum;
- }
-
- public double getEnthusiasmIndex() {
- return enthusiasmIndex;
- }
-
- public void setEnthusiasmIndex(double enthusiasmIndex) {
- this.enthusiasmIndex = enthusiasmIndex;
- }
-
- public String getCreateTime() {
- return createTime;
- }
-
- public void setCreateTime(String createTime) {
- this.createTime = createTime;
- }
-
- public String getUpdateTime() {
- return updateTime;
- }
-
- public void setUpdateTime(String updateTime) {
- this.updateTime = updateTime;
- }
- }
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventItem.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventItem.java
deleted file mode 100644
index b8b5a24985..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventItem.java
+++ /dev/null
@@ -1,488 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean;
-
-import com.mogo.commons.data.BaseData;
-
-import java.io.Serializable;
-import java.util.List;
-
-public class ShareEventItem extends BaseData implements Serializable {
-
-
- /**
- * detailMsg :
- * result : {"page":{"total":1024,"pageSize":1,"pageNum":4,"content":[{"coordinates":[116.407653,39.966487],"uploadTimestamp":1592901273966,"timeout":1593100800000,"uploadAddress":"安定门外大街","distance":0,"dbId":"725026095564550144","poiType":"10002","sn":"ZD802B1932L00622","userId":0,"userName":"小松鼠艾德蒙","userHead":"http://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592476328925.png","likeNum":18,"notLikeNum":0,"uploadType":2,"uploadUser":"123","imgUrl":null,"content":null,"gasStationId":null,"gasStationName":null,"gasImg":null,"gasPrices":null,"endDate":"2020-06-26 00:00:00","fabulous":false,"direction":180,"virtualLikeNum":822,"status":1,"sourceType":"10002","hitId":"0K-mf3MBeovPWpwE9IfR","userType":2,"data":[{"url":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546939076.mp4%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546939%253B1592550539%2526q-key-time%253D1592546939%253B1592550539%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253D74a4058ad7579ea210dafcf78d7a19460cffb899?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D679bff1838c7d497d38f48ef999b50e80c5856c4","thumbnail":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546956790.png%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546956%253B1592550556%2526q-key-time%253D1592546956%253B1592550556%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253Dcc9a35349fc55e433f934af88df576ae792b3987?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D99b5a92a4f97909d8c217dbeec2ec6e9ec1052f4","content":null,"illegalCount":null}]}]}}
- */
-
- private String detailMsg;
- private ResultBean result;
-
- public String getDetailMsg() {
- return detailMsg;
- }
-
- public void setDetailMsg(String detailMsg) {
- this.detailMsg = detailMsg;
- }
-
- public ResultBean getResult() {
- return result;
- }
-
- public void setResult(ResultBean result) {
- this.result = result;
- }
-
- public static class ResultBean {
- /**
- * page : {"total":1024,"pageSize":1,"pageNum":4,"content":[{"coordinates":[116.407653,39.966487],"uploadTimestamp":1592901273966,"timeout":1593100800000,"uploadAddress":"安定门外大街","distance":0,"dbId":"725026095564550144","poiType":"10002","sn":"ZD802B1932L00622","userId":0,"userName":"小松鼠艾德蒙","userHead":"http://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592476328925.png","likeNum":18,"notLikeNum":0,"uploadType":2,"uploadUser":"123","imgUrl":null,"content":null,"gasStationId":null,"gasStationName":null,"gasImg":null,"gasPrices":null,"endDate":"2020-06-26 00:00:00","fabulous":false,"direction":180,"virtualLikeNum":822,"status":1,"sourceType":"10002","hitId":"0K-mf3MBeovPWpwE9IfR","userType":2,"data":[{"url":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546939076.mp4%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546939%253B1592550539%2526q-key-time%253D1592546939%253B1592550539%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253D74a4058ad7579ea210dafcf78d7a19460cffb899?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D679bff1838c7d497d38f48ef999b50e80c5856c4","thumbnail":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546956790.png%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546956%253B1592550556%2526q-key-time%253D1592546956%253B1592550556%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253Dcc9a35349fc55e433f934af88df576ae792b3987?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D99b5a92a4f97909d8c217dbeec2ec6e9ec1052f4","content":null,"illegalCount":null}]}]}
- */
-
- private PageBean page;
-
- public PageBean getPage() {
- return page;
- }
-
- public void setPage(PageBean page) {
- this.page = page;
- }
-
- public static class PageBean {
- /**
- * total : 1024
- * pageSize : 1
- * pageNum : 4
- * content : [{"coordinates":[116.407653,39.966487],"uploadTimestamp":1592901273966,"timeout":1593100800000,"uploadAddress":"安定门外大街","distance":0,"dbId":"725026095564550144","poiType":"10002","sn":"ZD802B1932L00622","userId":0,"userName":"小松鼠艾德蒙","userHead":"http://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592476328925.png","likeNum":18,"notLikeNum":0,"uploadType":2,"uploadUser":"123","imgUrl":null,"content":null,"gasStationId":null,"gasStationName":null,"gasImg":null,"gasPrices":null,"endDate":"2020-06-26 00:00:00","fabulous":false,"direction":180,"virtualLikeNum":822,"status":1,"sourceType":"10002","hitId":"0K-mf3MBeovPWpwE9IfR","userType":2,"data":[{"url":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546939076.mp4%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546939%253B1592550539%2526q-key-time%253D1592546939%253B1592550539%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253D74a4058ad7579ea210dafcf78d7a19460cffb899?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D679bff1838c7d497d38f48ef999b50e80c5856c4","thumbnail":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546956790.png%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546956%253B1592550556%2526q-key-time%253D1592546956%253B1592550556%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253Dcc9a35349fc55e433f934af88df576ae792b3987?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D99b5a92a4f97909d8c217dbeec2ec6e9ec1052f4","content":null,"illegalCount":null}]}]
- */
-
- private int total;
- private int pageSize;
- private int pageNum;
- private List content;
-
- public int getTotal() {
- return total;
- }
-
- public void setTotal(int total) {
- this.total = total;
- }
-
- public int getPageSize() {
- return pageSize;
- }
-
- public void setPageSize(int pageSize) {
- this.pageSize = pageSize;
- }
-
- public int getPageNum() {
- return pageNum;
- }
-
- public void setPageNum(int pageNum) {
- this.pageNum = pageNum;
- }
-
- public List getContent() {
- return content;
- }
-
- public void setContent(List content) {
- this.content = content;
- }
-
- public static class ContentBean {
- @Override
- public String toString() {
- return "ContentBean{" +
- "viewType=" + viewType +
- ", uploadTimestamp=" + uploadTimestamp +
- ", timeout=" + timeout +
- ", uploadAddress='" + uploadAddress + '\'' +
- ", distance=" + distance +
- ", dbId='" + dbId + '\'' +
- ", poiType='" + poiType + '\'' +
- ", sn='" + sn + '\'' +
- ", userId=" + userId +
- ", userName='" + userName + '\'' +
- ", userHead='" + userHead + '\'' +
- ", likeNum=" + likeNum +
- ", notLikeNum=" + notLikeNum +
- ", uploadType=" + uploadType +
- ", uploadUser='" + uploadUser + '\'' +
- ", imgUrl=" + imgUrl +
- ", content=" + content +
- ", gasStationId=" + gasStationId +
- ", gasStationName=" + gasStationName +
- ", gasImg=" + gasImg +
- ", gasPrices=" + gasPrices +
- ", endDate='" + endDate + '\'' +
- ", fabulous=" + fabulous +
- ", direction=" + direction +
- ", virtualLikeNum=" + virtualLikeNum +
- ", status=" + status +
- ", sourceType='" + sourceType + '\'' +
- ", hitId='" + hitId + '\'' +
- ", userType=" + userType +
- ", coordinates=" + coordinates +
- ", data=" + data +
- '}';
- }
-
- /**
- * coordinates : [116.407653,39.966487]
- * uploadTimestamp : 1592901273966
- * timeout : 1593100800000
- * uploadAddress : 安定门外大街
- * distance : 0
- * dbId : 725026095564550144
- * poiType : 10002
- * sn : ZD802B1932L00622
- * userId : 0
- * userName : 小松鼠艾德蒙
- * userHead : http://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592476328925.png
- * likeNum : 18
- * notLikeNum : 0
- * uploadType : 2
- * uploadUser : 123
- * imgUrl : null
- * content : null
- * gasStationId : null
- * gasStationName : null
- * gasImg : null
- * gasPrices : null
- * endDate : 2020-06-26 00:00:00
- * fabulous : false
- * direction : 180
- * virtualLikeNum : 822
- * status : 1
- * sourceType : 10002
- * hitId : 0K-mf3MBeovPWpwE9IfR
- * userType : 2
- * data : [{"url":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546939076.mp4%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546939%253B1592550539%2526q-key-time%253D1592546939%253B1592550539%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253D74a4058ad7579ea210dafcf78d7a19460cffb899?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D679bff1838c7d497d38f48ef999b50e80c5856c4","thumbnail":"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546956790.png%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546956%253B1592550556%2526q-key-time%253D1592546956%253B1592550556%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253Dcc9a35349fc55e433f934af88df576ae792b3987?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D99b5a92a4f97909d8c217dbeec2ec6e9ec1052f4","content":null,"illegalCount":null}]
- */
-
- private int viewType = ShareEventItemEnum.ITEM_TYPE_SHARE_LIST;
- private long uploadTimestamp;
- private long timeout;
- private String uploadAddress;
- private int distance;
- private String dbId;
- private String poiType;
- private String sn;
- private int userId;
- private String userName;
- private String userHead;
- private int likeNum;
- private int notLikeNum;
- private int uploadType;
- private String uploadUser;
- private Object imgUrl;
- private Object content;
- private Object gasStationId;
- private Object gasStationName;
- private Object gasImg;
- private Object gasPrices;
- private String endDate;
- private boolean fabulous;
- private int direction;
- private int virtualLikeNum;
- private int status;
- private String sourceType;
- private String hitId;
- private int userType;
- private List coordinates;
- private List data;
-
- public long getUploadTimestamp() {
- return uploadTimestamp;
- }
-
- public void setUploadTimestamp(long uploadTimestamp) {
- this.uploadTimestamp = uploadTimestamp;
- }
-
- public long getTimeout() {
- return timeout;
- }
-
- public void setTimeout(long timeout) {
- this.timeout = timeout;
- }
-
- public String getUploadAddress() {
- return uploadAddress;
- }
-
- public void setUploadAddress(String uploadAddress) {
- this.uploadAddress = uploadAddress;
- }
-
- public int getDistance() {
- return distance;
- }
-
- public void setDistance(int distance) {
- this.distance = distance;
- }
-
- public String getDbId() {
- return dbId;
- }
-
- public void setDbId(String dbId) {
- this.dbId = dbId;
- }
-
- public String getPoiType() {
- return poiType;
- }
-
- public void setPoiType(String poiType) {
- this.poiType = poiType;
- }
-
- public String getSn() {
- return sn;
- }
-
- public void setSn(String sn) {
- this.sn = sn;
- }
-
- public int getUserId() {
- return userId;
- }
-
- public void setUserId(int userId) {
- this.userId = userId;
- }
-
- public String getUserName() {
- return userName;
- }
-
- public void setUserName(String userName) {
- this.userName = userName;
- }
-
- public String getUserHead() {
- return userHead;
- }
-
- public void setUserHead(String userHead) {
- this.userHead = userHead;
- }
-
- public int getLikeNum() {
- return likeNum;
- }
-
- public void setLikeNum(int likeNum) {
- this.likeNum = likeNum;
- }
-
- public int getNotLikeNum() {
- return notLikeNum;
- }
-
- public void setNotLikeNum(int notLikeNum) {
- this.notLikeNum = notLikeNum;
- }
-
- public int getUploadType() {
- return uploadType;
- }
-
- public void setUploadType(int uploadType) {
- this.uploadType = uploadType;
- }
-
- public String getUploadUser() {
- return uploadUser;
- }
-
- public void setUploadUser(String uploadUser) {
- this.uploadUser = uploadUser;
- }
-
- public Object getImgUrl() {
- return imgUrl;
- }
-
- public void setImgUrl(Object imgUrl) {
- this.imgUrl = imgUrl;
- }
-
- public Object getContent() {
- return content;
- }
-
- public void setContent(Object content) {
- this.content = content;
- }
-
- public Object getGasStationId() {
- return gasStationId;
- }
-
- public void setGasStationId(Object gasStationId) {
- this.gasStationId = gasStationId;
- }
-
- public Object getGasStationName() {
- return gasStationName;
- }
-
- public void setGasStationName(Object gasStationName) {
- this.gasStationName = gasStationName;
- }
-
- public Object getGasImg() {
- return gasImg;
- }
-
- public void setGasImg(Object gasImg) {
- this.gasImg = gasImg;
- }
-
- public Object getGasPrices() {
- return gasPrices;
- }
-
- public void setGasPrices(Object gasPrices) {
- this.gasPrices = gasPrices;
- }
-
- public String getEndDate() {
- return endDate;
- }
-
- public void setEndDate(String endDate) {
- this.endDate = endDate;
- }
-
- public boolean isFabulous() {
- return fabulous;
- }
-
- public void setFabulous(boolean fabulous) {
- this.fabulous = fabulous;
- }
-
- public int getDirection() {
- return direction;
- }
-
- public void setDirection(int direction) {
- this.direction = direction;
- }
-
- public int getVirtualLikeNum() {
- return virtualLikeNum;
- }
-
- public void setVirtualLikeNum(int virtualLikeNum) {
- this.virtualLikeNum = virtualLikeNum;
- }
-
- public int getStatus() {
- return status;
- }
-
- public void setStatus(int status) {
- this.status = status;
- }
-
- public String getSourceType() {
- return sourceType;
- }
-
- public void setSourceType(String sourceType) {
- this.sourceType = sourceType;
- }
-
- public String getHitId() {
- return hitId;
- }
-
- public void setHitId(String hitId) {
- this.hitId = hitId;
- }
-
- public int getUserType() {
- return userType;
- }
-
- public void setUserType(int userType) {
- this.userType = userType;
- }
-
- public List getCoordinates() {
- return coordinates;
- }
-
- public void setCoordinates(List coordinates) {
- this.coordinates = coordinates;
- }
-
- public List getData() {
- return data;
- }
-
- public void setData(List data) {
- this.data = data;
- }
-
- public static class DataBean {
- /**
- * url : http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546939076.mp4%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546939%253B1592550539%2526q-key-time%253D1592546939%253B1592550539%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253D74a4058ad7579ea210dafcf78d7a19460cffb899?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D679bff1838c7d497d38f48ef999b50e80c5856c4
- * thumbnail : http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/sso-server-image/1592546956790.png%3Fsign%3Dq-sign-algorithm%253Dsha1%2526q-ak%253DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%2526q-sign-time%253D1592546956%253B1592550556%2526q-key-time%253D1592546956%253B1592550556%2526q-header-list%253D%2526q-url-param-list%253D%2526q-signature%253Dcc9a35349fc55e433f934af88df576ae792b3987?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595574735%3B1595578335%26q-key-time%3D1595574735%3B1595578335%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D99b5a92a4f97909d8c217dbeec2ec6e9ec1052f4
- * content : null
- * illegalCount : null
- */
-
- private String url;
- private String thumbnail;
- private Object content;
- private Object illegalCount;
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public String getThumbnail() {
- return thumbnail;
- }
-
- public void setThumbnail(String thumbnail) {
- this.thumbnail = thumbnail;
- }
-
- public Object getContent() {
- return content;
- }
-
- public void setContent(Object content) {
- this.content = content;
- }
-
- public Object getIllegalCount() {
- return illegalCount;
- }
-
- public void setIllegalCount(Object illegalCount) {
- this.illegalCount = illegalCount;
- }
- }
- }
- }
- }
-}
-
-
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventItemEnum.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventItemEnum.java
deleted file mode 100644
index 0b1d35c154..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventItemEnum.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean;
-
-public interface ShareEventItemEnum {
-
- int ITEM_TYPE_NUM_DES = 0;
- int ITEM_TYPE_SHARE_LIST = 1;
- int ITEM_TYPE_SHARE_EMPTY = 2;
- int ITEM_TYPE_LOAD_MORE_STATUS = 3;
- int ITEM_TYPE_NO_MORE = 4;
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventLoadMoreItem.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventLoadMoreItem.java
deleted file mode 100644
index 763d1fa912..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/ShareEventLoadMoreItem.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean;
-
-import com.mogo.commons.data.BaseData;
-
-import java.io.Serializable;
-
-/*
- * 没有任何分享,去分享/加载更多/没有更多了
- * */
-public class ShareEventLoadMoreItem extends BaseData implements Serializable {
- private String statusText;
- private int viewType;
-
- public int getViewType() {
- return viewType;
- }
-
- public void setViewType(int viewType) {
- this.viewType = viewType;
- }
-
- public void setStatusText(String statusText) {
- this.statusText = statusText;
- }
-
- public String getStatusText() {
- return statusText;
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/SurroundingRequest.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/SurroundingRequest.java
deleted file mode 100644
index 723d4be15b..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/SurroundingRequest.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean;
-
-/**
- * @author lixiaopeng
- * @description
- * @since 2020/7/29
- */
-public class SurroundingRequest {
- private Center center;
- private String[] poiTypes;
- private int radius;
- private int limit;
-
- public SurroundingRequest(Center center, String[] poiTypes, int radius, int limit) {
- this.center = center;
- this.poiTypes = poiTypes;
- this.radius = radius;
- this.limit = limit;
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/SurroundingResponse.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/SurroundingResponse.java
deleted file mode 100644
index 14348e6bca..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/bean/SurroundingResponse.java
+++ /dev/null
@@ -1,347 +0,0 @@
-package com.zhidao.mogo.module.event.panel.bean;
-
-import com.mogo.commons.data.BaseData;
-
-import java.util.List;
-
-/**
- * @author lixiaopeng
- * @description
- * @since 2020/7/29
- */
-public class SurroundingResponse extends BaseData {
- /**
- * code : 0
- * msg : success
- * result : {"total":1,"poiInfos":[{"coordinates":[116.410712,39.96833],"uploadTimestamp":1596003623000,"timeout":1596090023000,"uploadAddress":"","distance":0,"dbId":"738038266231427072","poiType":"10002","sn":"VN000017","userId":0,"userName":"伤心狼","userHead":"https://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/defaultUserHeadImg/VN000016.jpg","likeNum":1,"uploadType":2,"uploadUser":"","imgUrl":"","content":"封路了","gasStationId":"","gasStationName":"","gasImg":"","gasPrices":"","endDate":"2020-07-30 14:20:23","fabulous":false,"direction":90,"virtualLikeNum":"","status":1,"sourceType":"10002","hitId":"Odo6mXMBEXitzfRvznNL","userType":2,"data":""}]}
- */
- private ResultBean result;
-
- public ResultBean getResult() {
- return result;
- }
-
- public void setResult(ResultBean result) {
- this.result = result;
- }
-
- public static class ResultBean {
- /**
- * total : 1
- * poiInfos : [{"coordinates":[116.410712,39.96833],"uploadTimestamp":1596003623000,"timeout":1596090023000,"uploadAddress":"","distance":0,"dbId":"738038266231427072","poiType":"10002","sn":"VN000017","userId":0,"userName":"伤心狼","userHead":"https://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/defaultUserHeadImg/VN000016.jpg","likeNum":1,"uploadType":2,"uploadUser":"","imgUrl":"","content":"封路了","gasStationId":"","gasStationName":"","gasImg":"","gasPrices":"","endDate":"2020-07-30 14:20:23","fabulous":false,"direction":90,"virtualLikeNum":"","status":1,"sourceType":"10002","hitId":"Odo6mXMBEXitzfRvznNL","userType":2,"data":""}]
- */
- private int total;
- private List poiInfos;
-
- public int getTotal() {
- return total;
- }
-
- public void setTotal(int total) {
- this.total = total;
- }
-
- public List getPoiInfos() {
- return poiInfos;
- }
-
- public void setPoiInfos(List poiInfos) {
- this.poiInfos = poiInfos;
- }
-
- public static class PoiInfosBean {
- /**
- * coordinates : [116.410712,39.96833]
- * uploadTimestamp : 1596003623000
- * timeout : 1596090023000
- * uploadAddress :
- * distance : 0
- * dbId : 738038266231427072
- * poiType : 10002
- * sn : VN000017
- * userId : 0
- * userName : 伤心狼
- * userHead : https://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/defaultUserHeadImg/VN000016.jpg
- * likeNum : 1
- * uploadType : 2
- * uploadUser :
- * imgUrl :
- * content : 封路了
- * gasStationId :
- * gasStationName :
- * gasImg :
- * gasPrices :
- * endDate : 2020-07-30 14:20:23
- * fabulous : false
- * direction : 90
- * virtualLikeNum :
- * status : 1
- * sourceType : 10002
- * hitId : Odo6mXMBEXitzfRvznNL
- * userType : 2
- * data :
- */
- private long uploadTimestamp;
- private long timeout;
- private String uploadAddress;
- private int distance;
- private String dbId;
- private String poiType;
- private String sn;
- private int userId;
- private String userName;
- private String userHead;
- private int likeNum;
- private int uploadType;
- private String uploadUser;
- private String imgUrl;
- private String content;
- private String gasStationId;
- private String gasStationName;
- private String gasImg;
- private String gasPrices;
- private String endDate;
- private boolean fabulous;
- private int direction;
- private String virtualLikeNum;
- private int status;
- private String sourceType;
- private String hitId;
- private int userType;
- private String data;
- private List coordinates;
-
- public long getUploadTimestamp() {
- return uploadTimestamp;
- }
-
- public void setUploadTimestamp(long uploadTimestamp) {
- this.uploadTimestamp = uploadTimestamp;
- }
-
- public long getTimeout() {
- return timeout;
- }
-
- public void setTimeout(long timeout) {
- this.timeout = timeout;
- }
-
- public String getUploadAddress() {
- return uploadAddress;
- }
-
- public void setUploadAddress(String uploadAddress) {
- this.uploadAddress = uploadAddress;
- }
-
- public int getDistance() {
- return distance;
- }
-
- public void setDistance(int distance) {
- this.distance = distance;
- }
-
- public String getDbId() {
- return dbId;
- }
-
- public void setDbId(String dbId) {
- this.dbId = dbId;
- }
-
- public String getPoiType() {
- return poiType;
- }
-
- public void setPoiType(String poiType) {
- this.poiType = poiType;
- }
-
- public String getSn() {
- return sn;
- }
-
- public void setSn(String sn) {
- this.sn = sn;
- }
-
- public int getUserId() {
- return userId;
- }
-
- public void setUserId(int userId) {
- this.userId = userId;
- }
-
- public String getUserName() {
- return userName;
- }
-
- public void setUserName(String userName) {
- this.userName = userName;
- }
-
- public String getUserHead() {
- return userHead;
- }
-
- public void setUserHead(String userHead) {
- this.userHead = userHead;
- }
-
- public int getLikeNum() {
- return likeNum;
- }
-
- public void setLikeNum(int likeNum) {
- this.likeNum = likeNum;
- }
-
- public int getUploadType() {
- return uploadType;
- }
-
- public void setUploadType(int uploadType) {
- this.uploadType = uploadType;
- }
-
- public String getUploadUser() {
- return uploadUser;
- }
-
- public void setUploadUser(String uploadUser) {
- this.uploadUser = uploadUser;
- }
-
- public String getImgUrl() {
- return imgUrl;
- }
-
- public void setImgUrl(String imgUrl) {
- this.imgUrl = imgUrl;
- }
-
- public String getContent() {
- return content;
- }
-
- public void setContent(String content) {
- this.content = content;
- }
-
- public String getGasStationId() {
- return gasStationId;
- }
-
- public void setGasStationId(String gasStationId) {
- this.gasStationId = gasStationId;
- }
-
- public String getGasStationName() {
- return gasStationName;
- }
-
- public void setGasStationName(String gasStationName) {
- this.gasStationName = gasStationName;
- }
-
- public String getGasImg() {
- return gasImg;
- }
-
- public void setGasImg(String gasImg) {
- this.gasImg = gasImg;
- }
-
- public String getGasPrices() {
- return gasPrices;
- }
-
- public void setGasPrices(String gasPrices) {
- this.gasPrices = gasPrices;
- }
-
- public String getEndDate() {
- return endDate;
- }
-
- public void setEndDate(String endDate) {
- this.endDate = endDate;
- }
-
- public boolean isFabulous() {
- return fabulous;
- }
-
- public void setFabulous(boolean fabulous) {
- this.fabulous = fabulous;
- }
-
- public int getDirection() {
- return direction;
- }
-
- public void setDirection(int direction) {
- this.direction = direction;
- }
-
- public String getVirtualLikeNum() {
- return virtualLikeNum;
- }
-
- public void setVirtualLikeNum(String virtualLikeNum) {
- this.virtualLikeNum = virtualLikeNum;
- }
-
- public int getStatus() {
- return status;
- }
-
- public void setStatus(int status) {
- this.status = status;
- }
-
- public String getSourceType() {
- return sourceType;
- }
-
- public void setSourceType(String sourceType) {
- this.sourceType = sourceType;
- }
-
- public String getHitId() {
- return hitId;
- }
-
- public void setHitId(String hitId) {
- this.hitId = hitId;
- }
-
- public int getUserType() {
- return userType;
- }
-
- public void setUserType(int userType) {
- this.userType = userType;
- }
-
- public String getData() {
- return data;
- }
-
- public void setData(String data) {
- this.data = data;
- }
-
- public List getCoordinates() {
- return coordinates;
- }
-
- public void setCoordinates(List coordinates) {
- this.coordinates = coordinates;
- }
- }
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/EventPanelFragment.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/EventPanelFragment.kt
deleted file mode 100644
index b3fd795f86..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/EventPanelFragment.kt
+++ /dev/null
@@ -1,140 +0,0 @@
-package com.zhidao.mogo.module.event.panel.fragment
-
-import android.content.res.ColorStateList
-import android.graphics.Typeface
-import android.view.Gravity
-import android.view.View
-import android.widget.TextView
-import androidx.fragment.app.Fragment
-import androidx.viewpager2.widget.ViewPager2
-import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
-import com.google.android.material.tabs.TabLayoutMediator
-import com.google.android.material.tabs.TabLayoutMediator.TabConfigurationStrategy
-import com.mogo.commons.mvp.MvpFragment
-import com.mogo.utils.logger.Logger
-import com.zhidao.mogo.module.event.panel.EventPanelConstants.MODULE_NAME
-import com.zhidao.mogo.module.event.panel.R
-import com.zhidao.mogo.module.event.panel.adapter.EventPagerAdapter
-import com.zhidao.mogo.module.event.panel.presenter.EventPanelPresenter
-import kotlinx.android.synthetic.main.module_event_panel_fragment_event_panel.*
-
-
-/**
- * 事件面板主fragment
- *
- * @author tongchenfei
- */
-class EventPanelFragment : MvpFragment() {
-
-
- private val tabsTitle = arrayOf("出行动态", "周边事件", "我的分享")
- private var fragments: Array? = null
-
- private var mediator: TabLayoutMediator? = null
-
- private val activeColor: Int = android.graphics.Color.parseColor("#ff678f")
- private val normalColor: Int = android.graphics.Color.parseColor("#EE00FF")
-
- private val activeSize = 40
- private val normalSize = 30
-
- private var selectPosition = 0
-
- companion object {
- private val fragment = EventPanelFragment()
- fun getInstance(): EventPanelFragment {
- return fragment
- }
- }
-
- override fun getLayoutId(): Int {
- return R.layout.module_event_panel_fragment_event_panel
- }
-
- override fun initViews() {
- Logger.d(MODULE_NAME, "EventPanelFragment init view===")
- fragments = arrayOf(
- ScenarioHistoryFragment(),
- SurroundingEventFragment(),
- ShareEventsFragment()
- )
- //禁用预加载
- vpEventPanel.offscreenPageLimit = ViewPager2.OFFSCREEN_PAGE_LIMIT_DEFAULT
- vpEventPanel.adapter = EventPagerAdapter(this, fragments!!)
- //viewPager 页面切换监听
- vpEventPanel.registerOnPageChangeCallback(changeCallback)
-
- //这里可以自定义TabView
- mediator = TabLayoutMediator(tabLayout, vpEventPanel, TabConfigurationStrategy { tab, position ->
- val tabView = TextView(context)
- tabView.gravity = Gravity.CENTER
- val states = arrayOfNulls(2)
- states[0] = intArrayOf(android.R.attr.state_selected)
- states[1] = intArrayOf()
- val colors = intArrayOf(activeColor, normalColor)
- val colorStateList = ColorStateList(states, colors)
- tabView.text = tabsTitle[position]
- tabView.textSize = normalSize.toFloat()
- tabView.setTextColor(colorStateList)
- tab.customView = tabView
- })
- //要执行这一句才是真正将两者绑定起来
- mediator!!.attach()
-
- btnShowOrHidePanels.setOnClickListener {
- if (clPanelContainer.visibility == View.GONE) {
- showPanel()
- // 选中指定的Tab
- tabLayout.getTabAt(selectPosition)?.select()
- vpEventPanel.setCurrentItem(selectPosition, false)
- } else {
- hidePanel()
- }
- }
- }
-
- private val changeCallback: OnPageChangeCallback = object : OnPageChangeCallback() {
- override fun onPageSelected(position: Int) {
- selectPosition = position
- //可以来设置选中时tab的大小
- val tabCount = tabLayout.tabCount
- for (i in 0 until tabCount) {
- val tab = tabLayout.getTabAt(i)
- val tabView = tab!!.customView as TextView?
- if (tab.position == position) {
- tabView!!.textSize = activeSize.toFloat()
- tabView.typeface = Typeface.DEFAULT_BOLD
- } else {
- tabView!!.textSize = normalSize.toFloat()
- tabView.typeface = Typeface.DEFAULT
- }
- }
- }
- }
-
- override fun onDestroyView() {
- mediator?.detach()
- vpEventPanel?.unregisterOnPageChangeCallback(changeCallback)
- super.onDestroyView()
- }
-
- override fun createPresenter(): EventPanelPresenter {
- return EventPanelPresenter(this)
- }
-
- fun showPanel() {
- Logger.d(MODULE_NAME, "in fragment show panel")
- clPanelContainer.visibility = View.VISIBLE
- btnShowOrHidePanels.text = "隐藏面板"
- }
-
- fun hidePanel() {
- Logger.d(MODULE_NAME, "in fragment hide panel")
- clPanelContainer.visibility = View.GONE
- btnShowOrHidePanels.text = "显示面板"
- }
-
- fun isPanelShow(): Boolean {
- return clPanelContainer.visibility == View.VISIBLE
- }
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/MyShareFragment.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/MyShareFragment.kt
deleted file mode 100644
index 06c387766a..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/MyShareFragment.kt
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.zhidao.mogo.module.event.panel.fragment
-
-import com.mogo.commons.mvp.MvpFragment
-import com.zhidao.mogo.module.event.panel.R
-import com.zhidao.mogo.module.event.panel.presenter.MySharePresenter
-
-class MyShareFragment : MvpFragment() {
- /**
- * 布局资源
- *
- * @return
- */
- override fun getLayoutId(): Int = R.layout.module_event_panel_share_item
-
- /**
- * 初始化控件,必须在初始化完成之后才可以实例化presenter,避免
- * presenter 生命周期错乱
- */
- override fun initViews() {
- }
-
- /**
- * 创建 presenter 实例
- *
- * @return
- */
- override fun createPresenter(): MySharePresenter = MySharePresenter(this)
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/ScenarioHistoryFragment.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/ScenarioHistoryFragment.java
deleted file mode 100644
index 8241a4aa2d..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/ScenarioHistoryFragment.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package com.zhidao.mogo.module.event.panel.fragment;
-
-import android.util.Log;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.LinearLayoutManager;
-import androidx.recyclerview.widget.PagerSnapHelper;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.mogo.commons.mvp.MvpFragment;
-import com.mogo.module.common.entity.V2XHistoryScenarioData;
-import com.mogo.utils.logger.Logger;
-import com.zhidao.mogo.module.event.panel.R;
-import com.zhidao.mogo.module.event.panel.adapter.ScenarioHistoryAdapter;
-import com.zhidao.mogo.module.event.panel.presenter.ScenarioHistoryPresenter;
-import com.zhidao.mogo.module.event.panel.util.V2XSQLiteUtils;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * 出行动态,V2X 提示过的场景历史
- *
- * @author donghongyu
- */
-public class ScenarioHistoryFragment
- extends MvpFragment {
-
- private RecyclerView mRecyclerView;
- private ScenarioHistoryAdapter mScenarioHistoryAdapter;
- private ArrayList mV2XHistoryScenarioData = new ArrayList<>();
-
- @Override
- protected int getLayoutId() {
- return R.layout.module_event_panel_fragment_scenario_history;
- }
-
- @Override
- protected void initViews() {
- Log.d("ScenarioHistoryFragment", "initViews --------> ");
-
- mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
- mScenarioHistoryAdapter = new ScenarioHistoryAdapter(mV2XHistoryScenarioData);
- mRecyclerView.setAdapter(mScenarioHistoryAdapter);
- // 设置切换样式
- new PagerSnapHelper().attachToRecyclerView(mRecyclerView);
- // 配置列表朝向
- LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false);
- mRecyclerView.setLayoutManager(layoutManager);
-
- List v2XHistoryScenarioData = V2XSQLiteUtils.getScenarioHistoryData(getActivity());
- Logger.d("ScenarioHistoryFragment", "查询到历史消息:" + v2XHistoryScenarioData);
- mV2XHistoryScenarioData.clear();
- mV2XHistoryScenarioData.addAll(v2XHistoryScenarioData);
- mScenarioHistoryAdapter.notifyDataSetChanged();
- }
-
- @Override
- public void onResume() {
- super.onResume();
- List v2XHistoryScenarioData = V2XSQLiteUtils.getScenarioHistoryData(getActivity());
- Logger.d("ScenarioHistoryFragment", "查询到历史消息:" + v2XHistoryScenarioData);
- mV2XHistoryScenarioData.clear();
- mV2XHistoryScenarioData.addAll(v2XHistoryScenarioData);
- mScenarioHistoryAdapter.notifyDataSetChanged();
- }
-
- @NonNull
- @Override
- protected ScenarioHistoryPresenter createPresenter() {
- return new ScenarioHistoryPresenter(this);
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/ShareEventsFragment.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/ShareEventsFragment.java
deleted file mode 100644
index 70031c1331..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/ShareEventsFragment.java
+++ /dev/null
@@ -1,212 +0,0 @@
-package com.zhidao.mogo.module.event.panel.fragment;
-
-import android.os.Bundle;
-import android.util.Log;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.ImageView;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.recyclerview.widget.LinearLayoutManager;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.alibaba.android.arouter.launcher.ARouter;
-import com.mogo.commons.mvp.MvpFragment;
-import com.mogo.commons.network.SubscribeImpl;
-import com.mogo.service.MogoServicePaths;
-import com.mogo.service.network.IMogoNetwork;
-import com.mogo.utils.network.RequestOptions;
-import com.mogo.utils.network.utils.GsonUtil;
-import com.zhidao.mogo.module.event.panel.R;
-import com.zhidao.mogo.module.event.panel.adapter.ShareEventAdapter;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventDescription;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventItem;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventItemEnum;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventLoadMoreItem;
-import com.zhidao.mogo.module.event.panel.listener.AdapterCallback;
-import com.zhidao.mogo.module.event.panel.network.HostConstant;
-import com.zhidao.mogo.module.event.panel.network.EventApiService;
-import com.zhidao.mogo.module.event.panel.network.ShareEventParameter;
-import com.zhidao.mogo.module.event.panel.presenter.ShareEventsPresenter;
-import com.zhidao.mogo.module.event.panel.util.animation.AnimationManager;
-import com.zhidao.mogo.module.event.panel.util.animation.AnimationResources;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.concurrent.CountDownLatch;
-
-import io.reactivex.android.schedulers.AndroidSchedulers;
-import io.reactivex.schedulers.Schedulers;
-
-public class ShareEventsFragment extends MvpFragment implements AdapterCallback {
-
- private static final String TAG = "ShareEventsFragment";
- private RecyclerView recyclerView;
- private ShareEventAdapter adapter;
- private ArrayList dataArrayList = new ArrayList();
- private EventApiService eventApiService;
- private int pageNum = 1;
- final CountDownLatch countDownLatch = new CountDownLatch(2);
- private IMogoNetwork network;
-
- //动画
- private ImageView loadingImageView;
- private AnimationManager animationHandler;
-
- @Override
- protected int getLayoutId() {
- return R.layout.module_event_panel_share_recylerview;
- }
-
- @Override
- protected void initViews() {
- network = (IMogoNetwork) ARouter.getInstance().build(MogoServicePaths.PATH_SERVICES_NETWORK).navigation(getContext());
- eventApiService = network.create(EventApiService.class, HostConstant.getNetHost());
- animationHandler = new AnimationManager();
- initRecyclerView();
- initData();
- }
-
- @Nullable
- @Override
- public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- super.onCreateView(inflater, container, savedInstanceState);
- return mRootView;
- }
-
- private void initRecyclerView() {
- recyclerView = mRootView.findViewById(R.id.road_case_share_list);
- adapter = new ShareEventAdapter(getActivity(), dataArrayList, this);
- recyclerView.setAdapter(adapter);
- LinearLayoutManager linearLayoutManager =
- new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false);
- recyclerView.setLayoutManager(linearLayoutManager);
- }
-
- private void initData() {
- loadingImageView = mRootView.findViewById(R.id.loading_imageview);
- animationHandler.animationWithTarget(loadingImageView, AnimationResources.loadingRes,300);
- getShareEventDescription();
- getShareEventList(pageNum, 10);
- }
-
- /*
- * 热心指数等
- * */
- private void getShareEventDescription() {
- //ZD802B1932L00622 测试数据sn
- ShareEventParameter parameter = new ShareEventParameter("ZD802B1932L00622");
- Map parameters = new HashMap<>();
- parameters.put("data", GsonUtil.jsonFromObject(parameter));
-
- eventApiService.getEnthusiasmIndex(parameters)
- .subscribeOn(Schedulers.io())
- .observeOn(AndroidSchedulers.mainThread())
- .subscribe(new SubscribeImpl(RequestOptions.create(getContext())) {
- @Override
- public void onSuccess(ShareEventDescription resultData) {
- if (resultData != null && resultData.getResult() != null
- && resultData.getResult().getEnthusiasmIndex() != null) {
- dataArrayList.add(resultData.getResult().getEnthusiasmIndex());
- Log.d(TAG, "热心指数---:" + resultData.getResult().getEnthusiasmIndex());
- }
- countDownLatch.countDown();
- }
-
- @Override
- public void onError(String message, int code) {
- super.onError(message, code);
- countDownLatch.countDown();
- }
-
- });
- }
-
- /*
- * 分享列表
- * */
- public void getShareEventList(int page, int size) {
- ShareEventParameter parameter = new ShareEventParameter("ZD802B1932L00622", page, 10);
- HashMap parameters = new HashMap<>();
- parameters.put("data", GsonUtil.jsonFromObject(parameter));
-
- eventApiService.getShareEventList(parameters)
- .subscribeOn(Schedulers.io())
- .observeOn(AndroidSchedulers.mainThread())
- .subscribe(new SubscribeImpl(RequestOptions.create(getContext())) {
- @Override
- public void onSuccess(ShareEventItem resultData) {
- ShareEventLoadMoreItem item = new ShareEventLoadMoreItem();
- if (resultData != null && resultData.getResult() != null) {
- if (resultData.getResult().getPage() != null) {
- int total = resultData.getResult().getPage().getTotal();
- if (total == 0) {
- //空白
- item.setViewType(ShareEventItemEnum.ITEM_TYPE_SHARE_EMPTY);
- dataArrayList.add(item);
- } else {
- if (resultData.getResult().getPage().getContent().size() > 0) {
- //当前页有数据
- if (dataArrayList.size() > 0) {
- Object data = dataArrayList.get(dataArrayList.size() - 1);
- if (data instanceof ShareEventLoadMoreItem) {
- dataArrayList.remove(dataArrayList.size() - 1);
- }
- }
- dataArrayList.addAll(resultData.getResult().getPage().getContent());
- item.setViewType(ShareEventItemEnum.ITEM_TYPE_LOAD_MORE_STATUS);
- item.setStatusText("查看更早记录");
- } else {
- //当前页没有数据
- item.setViewType(ShareEventItemEnum.ITEM_TYPE_NO_MORE);
- item.setStatusText("没有更多了");
- }
- dataArrayList.add(item);
- }
- }
- Log.d(TAG, "分享列表---:" + dataArrayList.get(0));
- } else {
- //空白
- item.setViewType(ShareEventItemEnum.ITEM_TYPE_SHARE_EMPTY);
- dataArrayList.add(item);
- }
- adapter.notifyDataSetChanged();
- countDownLatch.countDown();
- animationHandler.stop();
- }
-
- @Override
- public void onError(String message, int code) {
- super.onError(message, code);
- countDownLatch.countDown();
- }
- });
- }
-
- private void addLastData(ArrayList dataArray, int total) {
- ShareEventLoadMoreItem item = new ShareEventLoadMoreItem();
- if (total > 10) {
- if (pageNum <= 1) {//没有分享
- item.setViewType(ShareEventItemEnum.ITEM_TYPE_SHARE_EMPTY);
- } else {//没有更多了
- item.setViewType(ShareEventItemEnum.ITEM_TYPE_NO_MORE);
- }
- dataArray.add(item);
- }
- }
-
- @NonNull
- @Override
- protected ShareEventsPresenter createPresenter() {
- Log.d(TAG, "createPresenter");
- return new ShareEventsPresenter(this);
- }
-
- @Override
- public void loadMoreShareEventList() {
- getShareEventList(pageNum + 1, 10);
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/SurroundingEventFragment.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/SurroundingEventFragment.java
deleted file mode 100644
index 5d0ec07aa1..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/fragment/SurroundingEventFragment.java
+++ /dev/null
@@ -1,91 +0,0 @@
-package com.zhidao.mogo.module.event.panel.fragment;
-
-import android.os.Bundle;
-import android.util.Log;
-import android.view.View;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.mogo.commons.mvp.MvpFragment;
-import com.zhidao.mogo.module.event.panel.R;
-import com.zhidao.mogo.module.event.panel.adapter.SurroundingEventAdapter;
-import com.zhidao.mogo.module.event.panel.bean.SurroundingResponse;
-import com.zhidao.mogo.module.event.panel.presenter.SurroundingEventPresenter;
-import com.zhidao.mogo.module.event.panel.view.SurroundingEventView;
-
-/**
- * 周边事件
- */
-public class SurroundingEventFragment extends MvpFragment implements SurroundingEventView {
-
- private static final String TAG = "SurroundingEventFragment";
- private RecyclerView recyclerView;
- private View view;
- private SurroundingEventAdapter mAdapter;
- private SurroundingEventPresenter surroundingEventPresenter;
-
-
- @Override
- protected int getLayoutId() {
- return R.layout.module_event_panel_fragment_surrounding_event;
- }
-
- @Override
- protected void initViews() {
- Log.d("liyz", "initViews --------> ");
- initRecyclerView();
- initData();
-
- }
-
- @NonNull
- @Override
- protected SurroundingEventPresenter createPresenter() {
- return surroundingEventPresenter;
- }
-
- @Override
- public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
- super.onViewCreated(view, savedInstanceState);
- surroundingEventPresenter = new SurroundingEventPresenter(getContext(), this);
- Log.d("liyz", "onViewCreated ---------");
-
- }
-
- private void initRecyclerView() {
-// recyclerView = view.findViewById(R.id.c);
-// mAdapter = new SurroundingEventAdapter(getActivity()); //TODO
-// recyclerView.setAdapter(mAdapter);
-// LinearLayoutManager linearLayoutManager =
-// new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false);
-// recyclerView.setLayoutManager(linearLayoutManager);
- }
-
- private void initData() {
- surroundingEventPresenter.getSurroundingEventData();
- }
-
- /**
- * 展示列表数据 TODO
- */
- @Override
- public void showSurroudingData(SurroundingResponse data) {
- if (data.getResult() != null) {
- SurroundingResponse.ResultBean resultBean = data.getResult();
-
- }
- }
-
- @Override
- public void onDestroy() {
- super.onDestroy();
- }
-
- @Override
- public void onDestroyView() {
- super.onDestroyView();
- }
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/listener/AdapterCallback.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/listener/AdapterCallback.java
deleted file mode 100644
index ccac8e0e77..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/listener/AdapterCallback.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.zhidao.mogo.module.event.panel.listener;
-
-public interface AdapterCallback {
- //分享列表加载更多
- public void loadMoreShareEventList();
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/EventApiService.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/EventApiService.java
deleted file mode 100644
index 027d3346b4..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/EventApiService.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.zhidao.mogo.module.event.panel.network;
-
-import com.zhidao.mogo.module.event.panel.bean.ShareEventDescription;
-import com.zhidao.mogo.module.event.panel.bean.ShareEventItem;
-import com.zhidao.mogo.module.event.panel.bean.SurroundingResponse;
-
-import java.util.Map;
-
-import io.reactivex.Observable;
-import okhttp3.RequestBody;
-import retrofit2.http.Body;
-import retrofit2.http.FieldMap;
-import retrofit2.http.FormUrlEncoded;
-import retrofit2.http.Headers;
-import retrofit2.http.POST;
-import retrofit2.http.Query;
-import retrofit2.http.QueryMap;
-
-public interface EventApiService {
-
- //我的分享-热心指数等
- @FormUrlEncoded
- @POST("/deva/poiInfoFabulous/car/poi/no/queryEnthusiasmIndex/v1")
- Observable getEnthusiasmIndex(@FieldMap Map parames);
-
- //我的分享-列表
- @FormUrlEncoded
- @POST("/deva/car/pathAndPoi/no/queryInfo")
- Observable getShareEventList(@FieldMap Map parames);
-
- //周边列表
- @Headers({"Content-Type:application/json", "Accept:application/json"})
- @POST("/deva/car/poi/no/queryNovelty/v1")
- Observable getSurroundingEventList(@Query("sn") String sn, @Body RequestBody jsonStr);
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/HostConstant.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/HostConstant.java
deleted file mode 100644
index ba4c4a4695..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/HostConstant.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.zhidao.mogo.module.event.panel.network;
-
-import com.mogo.commons.debug.DebugConfig;
-
-public class HostConstant {
- public static final String HOST_DEV = "http://dzt-test.zhidaohulian.com";
- public static final String HOST_TEST = "http://dzt-test.zhidaohulian.com";
- public static final String HOST_DEMO = "http://dzt-show.zhidaohulian.com";
- public static final String HOST_PRODUCT = "https://dzt.zhidaohulian.com";
-
- public static String getNetHost() {
- switch ( DebugConfig.getNetMode() ) {
- case DebugConfig.NET_MODE_DEV:
- return HOST_DEV;
- case DebugConfig.NET_MODE_QA:
- return HOST_TEST;
- case DebugConfig.NET_MODE_DEMO:
- return HOST_DEMO;
- default:
- return HOST_PRODUCT;
- }
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/ShareEventParameter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/ShareEventParameter.java
deleted file mode 100644
index 906a55770f..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/network/ShareEventParameter.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.zhidao.mogo.module.event.panel.network;
-
-public class ShareEventParameter {
- private String sn;
- private int pageNum;
- private int pageSize;
-
- public ShareEventParameter(String sn) {
- this.sn = sn;
- }
-
- public ShareEventParameter(String sn, int pageNum, int pageSize) {
- this.sn = sn;
- this.pageNum = pageNum;
- this.pageSize = pageSize;
- }
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/EventPanelPresenter.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/EventPanelPresenter.kt
deleted file mode 100644
index 2aa237ed72..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/EventPanelPresenter.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.zhidao.mogo.module.event.panel.presenter
-
-import com.mogo.commons.mvp.Presenter
-import com.zhidao.mogo.module.event.panel.fragment.EventPanelFragment
-
-/**
- * 事件面板presenter
- *
- * @author tongchenfei
- */
-class EventPanelPresenter(view: EventPanelFragment) : Presenter(view)
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/MySharePresenter.kt b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/MySharePresenter.kt
deleted file mode 100644
index ab49fba81a..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/MySharePresenter.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.zhidao.mogo.module.event.panel.presenter
-
-import com.mogo.commons.mvp.Presenter
-import com.zhidao.mogo.module.event.panel.fragment.MyShareFragment
-
-class MySharePresenter(view: MyShareFragment) : Presenter(view) {
-}
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/ScenarioHistoryPresenter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/ScenarioHistoryPresenter.java
deleted file mode 100644
index 4ae0d93a60..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/ScenarioHistoryPresenter.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.zhidao.mogo.module.event.panel.presenter;
-
-import com.mogo.commons.mvp.Presenter;
-import com.zhidao.mogo.module.event.panel.fragment.ScenarioHistoryFragment;
-
-/**
- * @author donghongyu
- */
-public class ScenarioHistoryPresenter extends Presenter {
-
- public ScenarioHistoryPresenter(ScenarioHistoryFragment view) {
- super(view);
- }
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/ShareEventsPresenter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/ShareEventsPresenter.java
deleted file mode 100644
index b53c502ad6..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/ShareEventsPresenter.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zhidao.mogo.module.event.panel.presenter;
-
-import com.mogo.commons.mvp.IView;
-import com.mogo.commons.mvp.Presenter;
-import com.zhidao.mogo.module.event.panel.fragment.ShareEventsFragment;
-import com.zhidao.mogo.module.event.panel.listener.AdapterCallback;
-
-public class ShareEventsPresenter extends Presenter {
- public ShareEventsPresenter(IView view) {
- super((ShareEventsFragment) view);
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/SurroundingEventPresenter.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/SurroundingEventPresenter.java
deleted file mode 100644
index bbb3cfe1ca..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/presenter/SurroundingEventPresenter.java
+++ /dev/null
@@ -1,112 +0,0 @@
-package com.zhidao.mogo.module.event.panel.presenter;
-
-import android.content.Context;
-import android.util.Log;
-
-import androidx.annotation.NonNull;
-import androidx.lifecycle.Lifecycle;
-import androidx.lifecycle.LifecycleOwner;
-
-import com.alibaba.android.arouter.launcher.ARouter;
-import com.mogo.commons.mvp.Presenter;
-import com.mogo.commons.network.SubscribeImpl;
-import com.mogo.commons.network.Utils;
-import com.mogo.map.location.MogoLocation;
-import com.mogo.service.IMogoServiceApis;
-import com.mogo.service.MogoServicePaths;
-import com.mogo.service.network.IMogoNetwork;
-import com.mogo.utils.logger.Logger;
-import com.mogo.utils.network.RequestOptions;
-import com.mogo.utils.network.utils.GsonUtil;
-import com.zhidao.mogo.module.event.panel.bean.Center;
-import com.zhidao.mogo.module.event.panel.bean.SurroundingRequest;
-import com.zhidao.mogo.module.event.panel.bean.SurroundingResponse;
-import com.zhidao.mogo.module.event.panel.network.HostConstant;
-import com.zhidao.mogo.module.event.panel.network.EventApiService;
-import com.zhidao.mogo.module.event.panel.view.SurroundingEventView;
-
-import io.reactivex.android.schedulers.AndroidSchedulers;
-import io.reactivex.schedulers.Schedulers;
-import okhttp3.RequestBody;
-
-/**
- * @author lixiaopeng
- * @description
- * @since 2020/7/29
- */
-public class SurroundingEventPresenter extends Presenter {
- private Context mContext;
- private IMogoNetwork mNetWork;
- private IMogoServiceApis mApis;
- private EventApiService eventApiService;
- private static final String TAG = "SurroundingEvent";
-
-
- public SurroundingEventPresenter(Context context, SurroundingEventView view) {
- super(view);
- mContext = context;
- mNetWork =
- ((IMogoServiceApis) ARouter.getInstance().build(MogoServicePaths.PATH_SERVICE_APIS).navigation(view.getContext())).getNetworkApi();
- mApis = (IMogoServiceApis) ARouter.getInstance().build(MogoServicePaths.PATH_SERVICE_APIS).navigation(getContext());
- this.eventApiService = mNetWork.create(EventApiService.class, HostConstant.getNetHost());
- }
-
- @Override
- public void onCreate(@NonNull LifecycleOwner owner) {
- super.onCreate(owner);
- }
-
- public void getSurroundingEventData() {
- MogoLocation location = mApis.getMapServiceApi().getSingletonLocationClient(mContext).getLastKnowLocation();
- if (location == null) {
- return;
- }
- Center center = new Center(location.getLatitude(), location.getLongitude());
- String[] poiTypes = {"10002", "10003", "10006", "10007", "10008", "10010", "10011", "10013", "10015"};
- SurroundingRequest request = new SurroundingRequest(center, poiTypes, 5000, 20);
-
- eventApiService.getSurroundingEventList(Utils.getSn(), convert(GsonUtil.jsonFromObject(request)))
- .subscribeOn(Schedulers.io())
- .observeOn(AndroidSchedulers.mainThread())
- .subscribe(new SubscribeImpl(RequestOptions.create(getContext())) {
- @Override
- public void onError(Throwable e) {
- super.onError(e);
- e.printStackTrace();
- }
-
- @Override
- public void onSuccess(SurroundingResponse data) {
- super.onSuccess(data);
- if (data != null) {
- mView.showSurroudingData(data);
- }
- }
-
- @Override
- public void onError(String message, int code) {
- super.onError(message, code);
- Log.e(TAG, "onError message = " + message + " >>> code = " + code);
- }
- });
-
- }
-
-
- public static RequestBody convert(String json) {
-// String json = GsonUtil.getGson().toJson( map );
- Logger.d(TAG, "request params: %s", json);
- RequestBody requestBody = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), json);
- return requestBody;
- }
-
- @Override
- public void onDestroy(@NonNull LifecycleOwner owner) {
- super.onDestroy(owner);
- }
-
- @Override
- public void onLifecycleChanged(@NonNull LifecycleOwner owner, @NonNull Lifecycle.Event event) {
- super.onLifecycleChanged(owner, event);
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/V2XSQLiteUtils.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/V2XSQLiteUtils.java
deleted file mode 100644
index 2483ee0521..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/V2XSQLiteUtils.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package com.zhidao.mogo.module.event.panel.util;
-
-import android.content.Context;
-
-import com.mogo.module.common.entity.V2XHistoryScenarioData;
-import com.mogo.utils.sqlite.BaseDaoFactory;
-import com.mogo.utils.sqlite.IBaseDao;
-
-import java.util.List;
-
-/**
- * 数据库操作工具类
- *
- * @author donghongyu
- */
-public class V2XSQLiteUtils {
- /**
- * 场景数据管理
- */
- private static IBaseDao mScenarioHistoryDao;
-
- /**
- * 场景数据管理
- */
- public static IBaseDao getScenarioHistoryDao(Context context) {
- if (mScenarioHistoryDao == null) {
- synchronized (V2XSQLiteUtils.class) {
- if (mScenarioHistoryDao == null) {
- mScenarioHistoryDao = BaseDaoFactory.Companion.getInstance()
- .getBaseDao(context, V2XHistoryScenarioData.class);
- }
- }
- }
- return mScenarioHistoryDao;
- }
-
- /**
- * 查询当天的V2X数据
- */
- public static List getScenarioHistoryData(Context context) {
-
- return getScenarioHistoryDao(context).query(new V2XHistoryScenarioData());
- }
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/Animation.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/Animation.java
deleted file mode 100644
index 4e1a3a0ce5..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/Animation.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.zhidao.mogo.module.event.panel.util.animation;
-
-interface Animation {
-
- void start();
-
- void stop();
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/AnimationManager.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/AnimationManager.java
deleted file mode 100644
index 3fa896dbb2..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/AnimationManager.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.zhidao.mogo.module.event.panel.util.animation;
-
-import android.graphics.drawable.AnimationDrawable;
-import android.widget.ImageView;
-
-import com.mogo.utils.ThreadPoolService;
-import com.mogo.utils.UiThreadHandler;
-
-public class AnimationManager implements Animation {
-
- private ImageView targetImageView;
- private Animation delegate;
- private boolean isStarted = false;
-
- public void animationWithTarget(ImageView imageView, int[] resources, int duration) {
- targetImageView = imageView;
- ThreadPoolService.execute(() -> {
- final AnimationDrawable drawable = new AnimationDrawable();
- for (int i = 0; i < resources.length; i++) {
- drawable.addFrame(targetImageView.getResources().getDrawable(resources[i]), duration);
- }
- UiThreadHandler.post(() -> {
- targetImageView.setBackground(drawable);
- delegate = new DelegateDrawable(drawable);
- });
- });
-
- }
-
- synchronized public void start() {
- if (delegate != null && !isStarted) {
- isStarted = true;
- delegate.start();
- }
- }
-
- synchronized public void stop() {
- if (delegate != null && isStarted) {
- isStarted = false;
- delegate.stop();
- }
- }
-
- public void release() {
- delegate = null;
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/AnimationResources.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/AnimationResources.java
deleted file mode 100644
index 5e38307a31..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/AnimationResources.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.zhidao.mogo.module.event.panel.util.animation;
-
-import com.zhidao.mogo.module.event.panel.R;
-
-public class AnimationResources {
- public static final int loadingRes[] = {
- R.drawable.icon_enthusiasm_choose,
- R.drawable.icon_enthusiasm_unchoose,
- };
-
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/DelegateDrawable.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/DelegateDrawable.java
deleted file mode 100644
index 272b9c31e2..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/util/animation/DelegateDrawable.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.zhidao.mogo.module.event.panel.util.animation;
-
-import android.graphics.drawable.AnimationDrawable;
-
-public class DelegateDrawable implements Animation {
-
- private AnimationDrawable drawable;
-
- public DelegateDrawable(AnimationDrawable drawable) {
- this.drawable = drawable;
- }
-
-
- @Override
- public void start() {
- if (drawable != null) {
- drawable.start();
- }
- }
-
- @Override
- public void stop() {
- if (drawable != null) {
- drawable.stop();
- }
- }
-}
diff --git a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/view/SurroundingEventView.java b/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/view/SurroundingEventView.java
deleted file mode 100644
index a5fbb0a0fa..0000000000
--- a/modules/mogo-module-event-panel/src/main/java/com/zhidao/mogo/module/event/panel/view/SurroundingEventView.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.zhidao.mogo.module.event.panel.view;
-
-import com.mogo.commons.mvp.IView;
-import com.zhidao.mogo.module.event.panel.bean.SurroundingResponse;
-
-/**
- * @author lixiaopeng
- * @description
- * @since 2020/7/29
- */
-public interface SurroundingEventView extends IView {
-
- void showSurroudingData(SurroundingResponse data);
-}
diff --git a/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_choose.png b/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_choose.png
deleted file mode 100644
index 3a8c9b318b..0000000000
Binary files a/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_choose.png and /dev/null differ
diff --git a/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_second.png b/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_second.png
deleted file mode 100644
index 4894b507b2..0000000000
Binary files a/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_second.png and /dev/null differ
diff --git a/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_unchoose.png b/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_unchoose.png
deleted file mode 100644
index f64d27d31f..0000000000
Binary files a/modules/mogo-module-event-panel/src/main/res/drawable/icon_enthusiasm_unchoose.png and /dev/null differ
diff --git a/modules/mogo-module-event-panel/src/main/res/drawable/share_rating_bar.xml b/modules/mogo-module-event-panel/src/main/res/drawable/share_rating_bar.xml
deleted file mode 100644
index afded5aacb..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/drawable/share_rating_bar.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- -
-
- -
-
- -
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_event_panel.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_event_panel.xml
deleted file mode 100644
index ea56d33d13..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_event_panel.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_scenario_history.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_scenario_history.xml
deleted file mode 100644
index 4e449b632e..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_scenario_history.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_surrounding_event.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_surrounding_event.xml
deleted file mode 100644
index 22fcfcc273..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_fragment_surrounding_event.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_description.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_description.xml
deleted file mode 100644
index b4f42bea9f..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_description.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_empty.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_empty.xml
deleted file mode 100644
index 196f44b763..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_empty.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_item.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_item.xml
deleted file mode 100644
index 37c807b444..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_item.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_load_status.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_load_status.xml
deleted file mode 100644
index bb784d086b..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_load_status.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_recylerview.xml b/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_recylerview.xml
deleted file mode 100644
index d005968276..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/layout/module_event_panel_share_recylerview.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/mogo-module-event-panel/src/main/res/values-xhdpi/dimens.xml b/modules/mogo-module-event-panel/src/main/res/values-xhdpi/dimens.xml
deleted file mode 100644
index a6b3daec93..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/values-xhdpi/dimens.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-event-panel/src/main/res/values/dimens.xml b/modules/mogo-module-event-panel/src/main/res/values/dimens.xml
deleted file mode 100644
index 3d88eab23f..0000000000
--- a/modules/mogo-module-event-panel/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/settings.gradle b/settings.gradle
index 31a5cddd93..6f334160e1 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -4,8 +4,6 @@ include ':modules:mogo-module-splash-noop'
include ':modules:mogo-module-splash'
include ':modules:mogo-module-left-panel-noop'
include ':modules:mogo-module-left-panel'
-include ':modules:mogo-module-event-panel-noop'
-include ':modules:mogo-module-event-panel'
include ':modules:mogo-module-obu'
rootProject.name = 'MogoLauncher'
include ':app'