Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyGamesClass {
- private String platform;
- private String title;
- private String price;
- private String img;
- private String purchasedDate;
- private String format;
- private boolean sale;
- private String saleDate;
- private String salePrice;
- private boolean passed;
- private String passedDate;
- private ArrayList <MyDlcClass> dlc;
- private String dlcUrl;
- private String russian;
- private String cooperative;
- private String online;
- private String url;
- ...
- }
- public class MyDlcClass {
- private String title;
- private String date;
- private String img;
- private String url;
- ...
- }
- MyGames.myGames.add(new MyGamesClass(
- getIntent.getStringExtra("PLATFORM_KEY"), title.getText().toString(),
- price.getText().toString(), getIntent.getStringExtra("IMG_KEY"),
- date.getText().toString(), formatFinal, false, null,
- null,false, null,null,
- getIntent.getStringExtra("DLCURL_KEY"), russianFinal, coopFinal,
- onlineFinal, getIntent.getStringExtra("URL_KEY")
- ));
- MyGames.myGames.get(getIntent().getIntExtra("POSITION_KEY", 0))
- .getDlc()
- .add(new MyDlcClass(
- allDlc.get(position).getTitle(), "тест даты", allDlc.get(position).getImg(), allDlc.get(position).getUrl()
- ));
- public ArrayList<MyDlcClass> getDlc() {
- return dlc;
- }
- public ArrayList<MyDlcClass> getDlc() {
- if (dlc == null) {
- return dlc = new ArrayList<>();
- } else {
- return dlc;
- }
- }
Add Comment
Please, Sign In to add comment