Skip to content

Instantly share code, notes, and snippets.

@fmcarvalho
Created May 25, 2016 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmcarvalho/307525062873c83c82ad662a2c7a3f74 to your computer and use it in GitHub Desktop.
Save fmcarvalho/307525062873c83c82ad662a2c7a3f74 to your computer and use it in GitHub Desktop.
import java.util.Date;
/**
* @author Miguel Gamboa
* created on 23-05-2016
*/
public class SoccerSeason {
public final int id;
public final String caption;
public final String league;
public final String year;
public final int currentMatchday;
public final int numberOfMatchdays;
public final int numberOfTeams;
public final int numberOfGames;
public final Date lastUpdated;
public SoccerSeason(
int id,
String caption,
String league,
String year,
int currentMatchday,
int numberOfMatchdays,
int numberOfTeams,
int numberOfGames,
Date lastUpdated)
{
this.id = id;
this.caption = caption;
this.league = league;
this.year = year;
this.currentMatchday = currentMatchday;
this.numberOfMatchdays = numberOfMatchdays;
this.numberOfTeams = numberOfTeams;
this.numberOfGames = numberOfGames;
this.lastUpdated = lastUpdated;
}
@Override
public String toString() {
return "SoccerSeason{" +
"id=" + id +
", caption='" + caption + '\'' +
", league='" + league + '\'' +
", year='" + year + '\'' +
", currentMatchday=" + currentMatchday +
", numberOfMatchdays=" + numberOfMatchdays +
", numberOfTeams=" + numberOfTeams +
", numberOfGames=" + numberOfGames +
", lastUpdated=" + lastUpdated +
"}";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment