虚拟蓝牙
2018-03-21 14:52:18 2 举报
虚拟蓝牙
作者其他创作
大纲/内容
AdManager单例
Parser数据解析器
parse(DetailADResponse)
SimpleItem
+ modle:SimpleModle
DetailADRequestParams
req_typebase_paramstag:Object //存放simpleModle
DetailADMolde负责请求网络请求
-mRequest :DetailADRequestWraper-mReponse:DetailADResponse-listener:AdModleListener
+makeRequest(AdRequestParams)+request()+setAdModleListener(AdModleListener):void+hasValidResponse()+getRequestStarted()+setRequestStarted(boolean)
AbsAdView
modle:AdPlacementModlelistener:AdViewEventListenerAdMolde
+getModle():AdPlacementModle+setModle(AdPlacementModle):voidmakeRequest():voidbindContainer(View):voidsetAdViewEventListener(AdViewEventListener):void
AdModleManager(广告实际数据管理)单例
AdSettings
SDK配置httpProxyreportProxyactionProxyreportProxydownApkProxy //直接依赖
getActionProxy(封装下结构体):ActionProxy
DetailADRequestWraper
+AdRequest+sAdCookie:String //需要下次请求透传参数+sAdFreshList:String//需要下次请求透传参数+sAdFreshInsideList:String//需要下次请求透传参数
《AdModleListener》
+onAdFail(String):void+onAdDataLoaded(Response):void
+ONAVideoDetailAdItem//后端返回的详情页广告请求参数
SimpleModle
《AdViewEventListener》
+ onAdClick():void+onAdFail(String):void+onAdShow():void+onAdDataLoaded(Response):void
VideoAdView//视频海报广告
ViewHolder
+ adContainer:FrameLayout
<<ActionProxy>>
+ operation1(params):returnType- operation2(params)- operation3()
PicPosterAdView//图片海报广告
AdVIewFactory
+ getDetalAdView(DetailAdResponse):AbsAdView
DetailADRequest
+ setParams(AdRequestParams):void
0 条评论
下一页