SHARE
TWEET

Untitled

a guest Jun 26th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Enemy{
  2.  
  3. private String name;
  4. private int id;
  5. private EnemyCharacteristics enemyCharacteristics;
  6.      
  7. public class EnemyCharacteristics {
  8.  
  9. private ArrayList<Abilities> abilities;
  10. private ArrayList<Stats> stats;
  11.      
  12. public interface ApiService{
  13. @GET("enemy")
  14. Observable<EnemyResult> getEnemyResult(@Query("limit") int limit, @Query("offset") int offset);
  15.  
  16. @GET("enemy/{name}")
  17. Observable<EnemyCharacteristics> getEnemyCharacteristics(@Path("name") String name);
  18.      
  19. public class EnemyResult{
  20.  
  21. private ArrayList<Enemy> results;
  22.  
  23. public ArrayList<Enemy> getResults() {
  24.     return results;
  25. }
  26.  
  27. public void setResults(ArrayList<Enemy> results) {
  28.     this.results = results;
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top