daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MyGamesClass {
  2.  
  3. private String platform;
  4. private String title;
  5. private String price;
  6. private String img;
  7. private String purchasedDate;
  8. private String format;
  9. private boolean sale;
  10. private String saleDate;
  11. private String salePrice;
  12. private boolean passed;
  13. private String passedDate;
  14. private ArrayList <MyDlcClass> dlc;
  15. private String dlcUrl;
  16. private String russian;
  17. private String cooperative;
  18. private String online;
  19. private String url;
  20.  
  21. ...
  22. }
  23.    
  24. public class MyDlcClass {
  25.  
  26. private String title;
  27. private String date;
  28. private String img;
  29. private String url;
  30. ...
  31. }
  32.    
  33. MyGames.myGames.add(new MyGamesClass(
  34.     getIntent.getStringExtra("PLATFORM_KEY"), title.getText().toString(),
  35.     price.getText().toString(), getIntent.getStringExtra("IMG_KEY"),
  36.     date.getText().toString(), formatFinal, false, null,
  37.     null,false, null,null,
  38.     getIntent.getStringExtra("DLCURL_KEY"), russianFinal, coopFinal,
  39.     onlineFinal, getIntent.getStringExtra("URL_KEY")
  40.  
  41.      ));
  42.    
  43. MyGames.myGames.get(getIntent().getIntExtra("POSITION_KEY", 0))
  44.         .getDlc()
  45.         .add(new MyDlcClass(
  46.         allDlc.get(position).getTitle(), "тест даты", allDlc.get(position).getImg(), allDlc.get(position).getUrl()
  47.                ));
  48.    
  49. public ArrayList<MyDlcClass> getDlc() {
  50.         return dlc;
  51.     }
  52.    
  53. public ArrayList<MyDlcClass> getDlc() {
  54.     if (dlc == null) {
  55.         return dlc = new ArrayList<>();
  56.     } else {
  57.         return dlc;
  58.     }
  59. }
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