implementation base service: location, socket, passport
This commit is contained in:
@@ -14,6 +14,7 @@ import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.intent.IMogoIntentManager;
|
||||
import com.mogo.service.launcher.IMogoLauncher;
|
||||
import com.mogo.service.locationinfo.IMogoLocationInfoService;
|
||||
import com.mogo.service.map.IMogoMapService;
|
||||
import com.mogo.service.module.IMogoActionManager;
|
||||
import com.mogo.service.module.IMogoAddressManager;
|
||||
@@ -23,6 +24,7 @@ import com.mogo.service.module.IMogoSearchManager;
|
||||
import com.mogo.service.module.IMogoSettingManager;
|
||||
import com.mogo.service.network.IMogoNetwork;
|
||||
import com.mogo.service.obu.IMogoObuManager;
|
||||
import com.mogo.service.passport.IMogoPassportManager;
|
||||
import com.mogo.service.share.IMogoShareManager;
|
||||
import com.mogo.service.statusmanager.IMogoMsgCenter;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
@@ -188,31 +190,50 @@ public interface IMogoServiceApis extends IProvider {
|
||||
|
||||
/**
|
||||
* 获取顶部1/2屏界面管理类
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoTopViewManager getTopViewManager();
|
||||
|
||||
/**
|
||||
* 其他模块调用公共的marker打点
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoMarkerService getMarkerService();
|
||||
|
||||
/**
|
||||
* 其他模块调用分享框的显示和隐藏
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoShareManager getShareManager();
|
||||
|
||||
/**
|
||||
* 获取obuManager
|
||||
*
|
||||
* @return obuManager
|
||||
*/
|
||||
IMogoObuManager getObuManager();
|
||||
|
||||
/**
|
||||
* 获取事件面板manager
|
||||
*
|
||||
* @return eventPanelProvider
|
||||
*/
|
||||
IEventPanelProvider getEventPanelManager();
|
||||
|
||||
/**
|
||||
* 获取位置上报服务接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoLocationInfoService getLocationInfoApi();
|
||||
|
||||
/**
|
||||
* 获取位置上报服务接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoPassportManager getPassportManagerApi();
|
||||
}
|
||||
|
||||
@@ -208,4 +208,16 @@ public class MogoServicePaths {
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_SPLASH = "/splash/api";
|
||||
|
||||
/**
|
||||
* 位置上报
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_LOCATION_INFO = "/locationinfo/api";
|
||||
|
||||
/**
|
||||
* passport
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_PASSPORT = "/passport/api";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.mogo.service.locationinfo;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.map.location.MogoLocation;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/7/16
|
||||
*
|
||||
* 位置服务:上报位置信息和车机状态
|
||||
*/
|
||||
interface IMogoLocationInfoService extends IProvider {
|
||||
|
||||
/**
|
||||
* 提供位置信息
|
||||
*
|
||||
* @param location
|
||||
*/
|
||||
void provideLocation( MogoLocation location );
|
||||
|
||||
void start();
|
||||
|
||||
void stop();
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.mogo.service.passport;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/7/16
|
||||
*
|
||||
* 描述
|
||||
*/
|
||||
interface IMogoPassportManager extends IProvider {
|
||||
|
||||
void requestTicket( IMogoTicketCallback callback );
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.mogo.service.passport;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/7/16
|
||||
* <p>
|
||||
* ticket 回调
|
||||
*/
|
||||
interface IMogoTicketCallback {
|
||||
|
||||
void onSuccess( String ticket );
|
||||
|
||||
void onError( int code, String msg );
|
||||
}
|
||||
Reference in New Issue
Block a user