Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WeatherApp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mp5
WeatherApp
Merge requests
!2
Adding Retrofit
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Adding Retrofit
Retrofit
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
gsun
requested to merge
Retrofit
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
Added Retrofit for querying data from weather app
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
dff1712a
1 commit,
5 years ago
3 files
+
48
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
app/src/main/java/iastate/edu/weatherapp/ui/main/Retrofit/IOpenWeatherMap.java
0 → 100644
+
16
−
0
Options
package
iastate.edu.weatherapp.ui.main.Retrofit
;
import
iastate.edu.weatherapp.ui.main.Model.WeatherResult
;
import
io.reactivex.Observable
;
import
retrofit2.http.GET
;
import
retrofit2.http.Query
;
public
interface
IOpenWeatherMap
{
@GET
(
"weather"
)
Observable
<
WeatherResult
>
getWeatherByLatlng
(
@Query
(
"lat"
)
String
lat
,
@Query
(
"lon"
)
String
lng
,
@Query
(
"appid"
)
String
appid
,
@Query
(
"units"
)
String
unit
);
}
Loading