Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1.               // ask top leagues matches
  2.                VectorMatchSerializable  result = WEBSERVICE.GetTopLeagueMatchesByDate(login, encryptedPass, date);
  3.                    
  4.                      // get competitions for date        
  5.                     VectorCompetitionSerializable competitions = WEBSERVICE.GetCompetitionsWithMatches(login, encryptedPass, date);
  6.                     for (CompetitionSerializable competition : safe(competitions)) {
  7.                        // get matches for selected competitions
  8.                         VectorMatchSerializable compMatches = WEBSERVICE.GetMatchesByCompetitionAndDate(login, encryptedPass, date, competition.statDNACompetitionID, true);
  9.                         result.addAll(compMatches);
  10.                     }
  11.                     for (MatchSerializable match : result) {
  12.                         match.competitionName = match.competitionCountry + " - " + match.competitionName;
  13.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement