From 91fde336b3a87438be375c214fd4ed2ebd5244a9 Mon Sep 17 00:00:00 2001 From: 230421 <230421@epvc.pt> Date: Tue, 17 Mar 2026 15:36:54 +0000 Subject: [PATCH] . --- .idea/deploymentTargetSelector.xml | 1 + .../vdcscore/ui/home/StandingsAdapter.java | 11 ++ .../com/example/vdcscore/ui/home/Team.java | 131 +++++++++++++----- 3 files changed, 108 insertions(+), 35 deletions(-) diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index b268ef3..ca16a99 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,6 +4,7 @@ diff --git a/app/src/main/java/com/example/vdcscore/ui/home/StandingsAdapter.java b/app/src/main/java/com/example/vdcscore/ui/home/StandingsAdapter.java index bbb9f98..ea01c5f 100644 --- a/app/src/main/java/com/example/vdcscore/ui/home/StandingsAdapter.java +++ b/app/src/main/java/com/example/vdcscore/ui/home/StandingsAdapter.java @@ -9,6 +9,7 @@ import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.example.vdcscore.R; +import com.bumptech.glide.Glide; import java.util.ArrayList; import java.util.List; @@ -73,6 +74,16 @@ public class StandingsAdapter extends RecyclerView.Adapter 0) return (pontos - empates) / 3; - return 0; + public Team(String id, String name, int points, int played) { + this.id = id; + this.name = name; + this.points = points; + this.played = played; + } + + // Getters and Setters + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getPoints() { + return points; + } + + public void setPoints(int points) { + this.points = points; + } + + public int getPlayed() { + return played; + } + + public void setPlayed(int played) { + this.played = played; + } + + public int getWon() { + return won; + } + + public void setWon(int won) { + this.won = won; + } + + public int getDrawn() { + return drawn; + } + + public void setDrawn(int drawn) { + this.drawn = drawn; + } + + public int getLost() { + return lost; + } + + public void setLost(int lost) { + this.lost = lost; + } + + public int getGoalsFor() { + return goalsFor; + } + + public void setGoalsFor(int goalsFor) { + this.goalsFor = goalsFor; + } + + public int getGoalsAgainst() { + return goalsAgainst; + } + + public void setGoalsAgainst(int goalsAgainst) { + this.goalsAgainst = goalsAgainst; + } + + public int getGoalDifference() { + return goalDifference; + } + + public void setGoalDifference(int goalDifference) { + this.goalDifference = goalDifference; } - - @Exclude public int getDrawn() { return empates; } - @Exclude public int getLost() { return derrotas; } - @Exclude public int getGoalDifference() { return diferenca_golos; } - @Exclude public int getGoalsFor() { return golos_marcados; } - @Exclude public int getGoalsAgainst() { return golos_sofridos; } - @Exclude public int getPoints() { return pontos; } - @Exclude public String getImageUrl() { return imagem; } }