当前位置: 首页>>代码示例>>Java>>正文


Java LocalWeatherForecastResult类代码示例

本文整理汇总了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);
        }
}
 
开发者ID:HelloChenJinJun,项目名称:TestChat,代码行数:20,代码来源:WeatherInfoActivity.java

示例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();
}
 
开发者ID:Alex-ZHOU,项目名称:VMAndroid,代码行数:25,代码来源:WeatherPresenter.java

示例3: onWeatherForecastSearched

import com.amap.api.services.weather.LocalWeatherForecastResult; //导入依赖的package包/类
/**
 * 预告天气查询返回
 */
@Override
public void onWeatherForecastSearched(LocalWeatherForecastResult localWeatherForecastResult, int i) {

}
 
开发者ID:Alex-ZHOU,项目名称:VMAndroid,代码行数:8,代码来源:MainPresenter.java

示例4: onWeatherForecastSearched

import com.amap.api.services.weather.LocalWeatherForecastResult; //导入依赖的package包/类
@Override
public void onWeatherForecastSearched(LocalWeatherForecastResult localWeatherForecastResult, int rCode) {

}
 
开发者ID:monsterLin,项目名称:Pigeon,代码行数:5,代码来源:WeatherActivity.java


注:本文中的com.amap.api.services.weather.LocalWeatherForecastResult类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。