package com.secondworld.sdk.command;
|
import com.secondworld.sdk.GTGameMain;
|
import com.secondworld.sdk.MySdkMgr;
|
import com.secondworld.sdk.utils.CodeU2A;
|
import com.ald.modules.adrevenue.adapter.OnAdRevenueListener;
|
import com.secondworld.sdk.utils.LogUtil;
|
|
import org.json.JSONObject;
|
|
//评论
|
public class CmdAD implements ICommand {
|
@Override
|
public int getCode() {
|
return CodeU2A.AdView;
|
}
|
|
@Override
|
public void process(JSONObject json) throws Exception {
|
|
String adType = json.getString("adType");
|
String stageValue = json.getString("stageValue");
|
switch (adType) {
|
// case "0":
|
// MySdkMgr.mAdSplashView.load(GTGameMain.I.activity);
|
// break;
|
// case "1":
|
// if (MySdkMgr.mAdSplashView.isReady()){
|
// //Log.d(TAG,"开屏广告准备好了");
|
//
|
// Intent intent= new Intent(GTGameMain.I.activity, SplashAdShowActivity.class);
|
// startActivity(intent);
|
// }
|
// break;
|
|
case "2":
|
if (MySdkMgr.mAdRnterstitialView.isReady()){
|
MySdkMgr.mAdRnterstitialView.show(stageValue);
|
}
|
break;
|
|
case "3":
|
if (MySdkMgr.mAdRewardView.isReady()){
|
MySdkMgr.mAdRewardView.show(stageValue);
|
}
|
break;
|
default:
|
|
break;
|
}
|
|
|
}
|
}
|