-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4935ebd
commit 8ebf079
Showing
39 changed files
with
4,923 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":2115,"versionName":"2.115","enabled":true,"outputFile":"GeometricWeather 2.115.apk","fullName":"release","baseName":"release"},"path":"GeometricWeather 2.115.apk","properties":{}}] | ||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":2211,"versionName":"2.211","enabled":true,"outputFile":"GeometricWeather 2.211.apk","fullName":"release","baseName":"release"},"path":"GeometricWeather 2.211.apk","properties":{}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
app/src/main/java/wangdaye/com/geometricweather/data/api/CaiYunApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package wangdaye.com.geometricweather.data.api; | ||
|
||
import retrofit2.Call; | ||
import retrofit2.http.GET; | ||
import retrofit2.http.Query; | ||
import wangdaye.com.geometricweather.data.entity.result.caiyun.CaiYunForecastResult; | ||
import wangdaye.com.geometricweather.data.entity.result.caiyun.CaiYunMainlyResult; | ||
|
||
public interface CaiYunApi { | ||
|
||
@GET("wtr-v3/weather/all") | ||
Call<CaiYunMainlyResult> getMainlyWeather(@Query("latitude") String latitude, | ||
@Query("longitude") String longitude, | ||
@Query("isLocated") boolean isLocated, | ||
@Query("locationKey") String locationKey, | ||
@Query("days") int days, | ||
@Query("appKey") String appKey, | ||
@Query("sign") String sign, | ||
@Query("romVersion") String romVersion, | ||
@Query("appVersion") String appVersion, | ||
@Query("alpha") boolean alpha, | ||
@Query("isGlobal") boolean isGlobal, | ||
@Query("device") String device, | ||
@Query("modDevice") String modDevice, | ||
@Query("locale") String locale); | ||
|
||
@GET("wtr-v3/weather/xm/forecast/minutely") | ||
Call<CaiYunForecastResult> getForecastWeather(@Query("latitude") String latitude, | ||
@Query("longitude") String longitude, | ||
@Query("locale") String locale, | ||
@Query("isGlobal") boolean isGlobal, | ||
@Query("appKey") String appKey, | ||
@Query("locationKey") String locationKey, | ||
@Query("sign") String sign); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.