本文整理汇总了Java中com.amap.api.services.weather.LocalWeatherForecastResult类的典型用法代码示例。如果您正苦于以下问题:Java LocalWeatherForecastResult类的具体用法?Java LocalWeatherForecastResult怎么用?Java LocalWeatherForecastResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LocalWeatherForecastResult类属于com.amap.api.services.weather包,在下文中一共展示了LocalWeatherForecastResult类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onWeatherForecastSearched
import com.amap.api.services.weather.LocalWeatherForecastResult; //导入依赖的package包/类
@Override
public void onWeatherForecastSearched(LocalWeatherForecastResult localWeatherForecastResult, int i) {
dismissLoadDialog();
if (i == 1000) {
if (localWeatherForecastResult != null && localWeatherForecastResult.getForecastResult() != null
&& localWeatherForecastResult.getForecastResult().getWeatherForecast() != null
&& localWeatherForecastResult.getForecastResult().getWeatherForecast().size() > 0) {
LocalWeatherForecast localWeatherForecast = localWeatherForecastResult.getForecastResult();
mWeatherInfoBean.setForecastTime(localWeatherForecast.getReportTime());
forecastTime.setText(mWeatherInfoBean.getForecastTime() + "发布");
forecastInfoList = localWeatherForecast.getWeatherForecast();
fillForeCast();
} else {
LogUtil.e("查询不到天气预报的结果");
}
} else {
LogUtil.e("查询天气预报的结果失败" + i);
}
}
示例2: onWeatherForecastSearched
import com.amap.api.services.weather.LocalWeatherForecastResult; //导入依赖的package包/类
/**
* 天气预报查询结果回调
*/
@Override
public void onWeatherForecastSearched(
LocalWeatherForecastResult weatherForecastResult, int rCode) {
if (rCode == 1000) {
if (weatherForecastResult != null && weatherForecastResult.getForecastResult() != null
&& weatherForecastResult.getForecastResult().getWeatherForecast() != null
&& weatherForecastResult.getForecastResult().getWeatherForecast().size() > 0) {
mLocalWeatherForecast = weatherForecastResult.getForecastResult();
mForecastList = mLocalWeatherForecast.getWeatherForecast();
fillForecast();
} else {
//ToastUtil.show(WeatherSearchActivity.this, R.string.no_result);
mView.showToast(R.string.no_result);
}
} else {
// 数据出错
mView.showToast("Error:" + rCode);
}
mView.closeProgressDialog();
}
示例3: onWeatherForecastSearched
import com.amap.api.services.weather.LocalWeatherForecastResult; //导入依赖的package包/类
/**
* 预告天气查询返回
*/
@Override
public void onWeatherForecastSearched(LocalWeatherForecastResult localWeatherForecastResult, int i) {
}
示例4: onWeatherForecastSearched
import com.amap.api.services.weather.LocalWeatherForecastResult; //导入依赖的package包/类
@Override
public void onWeatherForecastSearched(LocalWeatherForecastResult localWeatherForecastResult, int rCode) {
}