forked from nikhilbansal97/World-Now
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nikhil Bansal
committed
Aug 30, 2018
1 parent
80e695f
commit 0cee210
Showing
5 changed files
with
21 additions
and
15 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
3 changes: 2 additions & 1 deletion
3
app/src/main/java/com/android/nikhil/worldnow/network/NewsInterface.kt
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,13 +1,14 @@ | ||
package com.android.nikhil.worldnow.network | ||
|
||
import com.android.nikhil.worldnow.utils.MainResponse | ||
import io.reactivex.Observable | ||
import retrofit2.http.GET | ||
import retrofit2.Call | ||
import retrofit2.http.Query | ||
|
||
interface NewsInterface { | ||
|
||
@GET("search") | ||
fun getNews(@Query("api-key") apiKey: String): Call<MainResponse> | ||
fun getNews(@Query("api-key") apiKey: String): Observable<MainResponse> | ||
|
||
} |
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