fork download
  1. package com.example.karim.bluecrunch;
  2.  
  3. import java.util.List;
  4.  
  5. import retrofit2.Call;
  6. import retrofit2.Retrofit;
  7. import retrofit2.converter.gson.GsonConverterFactory;
  8. import retrofit2.http.GET;
  9. import retrofit2.http.Path;
  10. import retrofit2.http.Query;
  11.  
  12. /**
  13.  * Created by karim on 8/26/16.
  14.  */
  15. public interface HandleRetrofit {
  16. /*
  17. https://a...content-available-to-author-only...r.com/services/rest/?method=flickr.photos.search
  18. &api_key=6d5c5a20d108f8f56f324394d3e2381f
  19. &format=json&nojsoncallback=1
  20. &auth_token=72157672948729705-c211cbcbcac8bb30
  21. &api_sig=bd73bb34b0f29390a80c6ffdbb376c97
  22.  
  23.  */
  24. @GET("rest/?method=&api_key=&format=json&nojsoncallback=1&auth_token=&api_sig=")
  25. Call<PhotosRetrofit> Photos (
  26. @Query("method") String method,
  27. @Query("key") String key,
  28. @Query("token") String token,
  29. @Query("sig") String sig
  30. );
  31.  
  32. Retrofit retrofit = new Retrofit.Builder()
  33. .baseUrl("https://a...content-available-to-author-only...r.com/services/")
  34. .addConverterFactory(GsonConverterFactory.create())
  35. .build();
  36. }
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:15: error: class HandleRetrofit is public, should be declared in a file named HandleRetrofit.java
public interface HandleRetrofit {
       ^
Main.java:5: error: package retrofit2 does not exist
import retrofit2.Call;
                ^
Main.java:6: error: package retrofit2 does not exist
import retrofit2.Retrofit;
                ^
Main.java:7: error: package retrofit2.converter.gson does not exist
import retrofit2.converter.gson.GsonConverterFactory;
                               ^
Main.java:8: error: package retrofit2.http does not exist
import retrofit2.http.GET;
                     ^
Main.java:9: error: package retrofit2.http does not exist
import retrofit2.http.Path;
                     ^
Main.java:10: error: package retrofit2.http does not exist
import retrofit2.http.Query;
                     ^
Main.java:25: error: cannot find symbol
    Call<PhotosRetrofit> Photos (
    ^
  symbol:   class Call
  location: interface HandleRetrofit
Main.java:25: error: cannot find symbol
    Call<PhotosRetrofit> Photos (
         ^
  symbol:   class PhotosRetrofit
  location: interface HandleRetrofit
Main.java:32: error: cannot find symbol
    Retrofit retrofit = new Retrofit.Builder()
    ^
  symbol:   class Retrofit
  location: interface HandleRetrofit
Main.java:26: error: cannot find symbol
            @Query("method") String method,
             ^
  symbol:   class Query
  location: interface HandleRetrofit
Main.java:27: error: cannot find symbol
            @Query("key") String key,
             ^
  symbol:   class Query
  location: interface HandleRetrofit
Main.java:28: error: cannot find symbol
            @Query("token") String token,
             ^
  symbol:   class Query
  location: interface HandleRetrofit
Main.java:29: error: cannot find symbol
            @Query("sig") String sig
             ^
  symbol:   class Query
  location: interface HandleRetrofit
Main.java:24: error: cannot find symbol
    @GET("rest/?method=&api_key=&format=json&nojsoncallback=1&auth_token=&api_sig=")
     ^
  symbol:   class GET
  location: interface HandleRetrofit
Main.java:34: error: cannot find symbol
            .addConverterFactory(GsonConverterFactory.create())
                                 ^
  symbol:   variable GsonConverterFactory
  location: interface HandleRetrofit
Main.java:32: error: package Retrofit does not exist
    Retrofit retrofit = new Retrofit.Builder()
                                    ^
17 errors
stdout
Standard output is empty