2

I don't understand meaning 2 way this (Observable and Call.)

@GET("/users")
fun getAll(): Observable<List<User>>

@GET("/users")
fun getById(): Call<List<User>>

I want to understand it, please. Very Thanks.

Santanu Sur
  • 10,997
  • 7
  • 33
  • 52
I'boy Ak
  • 71
  • 1
  • 4

1 Answers1

4

If you are using retrofit without RxJava you can use call. If you are using RxJava you should use Observable.

DkPathak
  • 452
  • 1
  • 4
  • 16