TRT - Metode: TournamentStandings

Introduksjon

Metoden gir samlet, kalkulert tabell for en turnering/sesong. Ikke alle felter er relevante for alle idretter. Bruk TRT - Metode: TournamentStandings/Settings for å se hvilke felter, og typer som er relevant for den aktuelle turnering.

Paramater(e)

tournamentId eller tournamentNo

Eksempel på response:

Metoden lister ut alle lag, i poengrekkefølge/plasseringsrekkefølge fra 1 til XX

Siste felt: "teamEntryStatus": null gir indikasjon på om laget kan være trukket

/ strøket.

[ { "awayRecord": "10-0-0-0", "bonusPointsAway": 0, "bonusPointsHome": 0, "bonusPointsTotal": 0, "dispensation": false, "draws": 0, "drawsAway": 0, "drawsHome": 0, "entryId": 13357320, "goalDifference": 187, "goalRatio": 1.4082969432314409, "goalsAwayFormatted": "311 - 234", "goalsConcededAway": 234, "goalsConcededHome": 224, "goalsConceeded": 458, "goalsHomeFormatted": "334 - 224", "goalsScored": 645, "goalsScoredAway": 311, "goalsScoredHome": 334, "homeRecord": "9-0-0-1", "losses": 1, "lossesAway": 0, "lossesFulltimeAway": 0, "lossesFulltimeHome": 1, "lossesFulltimeTotal": 1, "lossesHome": 1, "lossesOvertimeAway": 0, "lossesOvertimeHome": 0, "lossesOvertimeTotal": 0, "lossesPenaltiesAway": 0, "lossesPenaltiesHome": 0, "lossesPenaltiesTotal": 0, "matchesHome": 10, "matchesAway": 10, "matches": 20, "orgId": 223994, "orgName": "Larvik", "partialPointsConceded": 686, "partialPointsConcededAway": 337, "partialPointsConcededHome": 349, "partialPointsDifference": 270, "partialPointsDifferenceHome": 145, "partialPointsDifferenceAway": 125, "partialPointsScored": 956, "partialPointsScoredAway": 462, "partialPointsScoredHome": 494, "penaltyMinutes": 0, "pointsAway": 0, "pointsHome": 38, "pointsPercentageOfTotal": null, "pointsStart": 0, "position": 1, "teamPenalty": "", "teamPenaltyNegative": 0, "teamPenaltyPositive": 0, "totalGoals": 645, "totalGoalsFormatted": "645 - 458", "totalMatches": 132, "totalPoints": 38, "victories": 19, "victoriesAway": 10, "victoriesFulltimeAway": 10, "victoriesFulltimeHome": 9, "victoriesFulltimeTotal": 19, "victoriesHome": 9, "victoriesOvertimeAway": 0, "victoriesOvertimeHome": 0, "victoriesOvertimeTotal": 0, "victoriesPenaltiesAway": 0, "victoriesPenaltiesHome": 0, "victoriesPenaltiesTotal": 0, "teamEntryStatus": null }, { "awayRecord": "9-0-0-1", "bonusPointsAway": 0, "bonusPointsHome": 0, "bonusPointsTotal": 0, "dispensation": false, "draws": 0, "drawsAway": 0, "drawsHome": 0, "entryId": 13357311, "goalDifference": 150, "goalRatio": 1.3311258278145695, "goalsAwayFormatted": "298 - 227", "goalsConcededAway": 227, "goalsConcededHome": 226, "goalsConceeded": 453, "goalsHomeFormatted": "305 - 226", "goalsScored": 603, "goalsScoredAway": 298, "goalsScoredHome": 305, "homeRecord": "8-0-0-2", "losses": 3, "lossesAway": 1, "lossesFulltimeAway": 1, "lossesFulltimeHome": 2, "lossesFulltimeTotal": 3, "lossesHome": 2, "lossesOvertimeAway": 0, "lossesOvertimeHome": 0, "lossesOvertimeTotal": 0, "lossesPenaltiesAway": 0, "lossesPenaltiesHome": 0, "lossesPenaltiesTotal": 0, "matchesHome": 10, "matchesAway": 10, "matches": 20, "orgId": 746278, "orgName": "Vipers Kristiansand (Våg Elite)", "partialPointsConceded": 685, "partialPointsConcededAway": 344, "partialPointsConcededHome": 341, "partialPointsDifference": 216, "partialPointsDifferenceHome": 105, "partialPointsDifferenceAway": 111, "partialPointsScored": 901, "partialPointsScoredAway": 455, "partialPointsScoredHome": 446, "penaltyMinutes": 0, "pointsAway": 0, "pointsHome": 34, "pointsPercentageOfTotal": null, "pointsStart": 0, "position": 2, "teamPenalty": "", "teamPenaltyNegative": 0, "teamPenaltyPositive": 0, "totalGoals": 603, "totalGoalsFormatted": "603 - 453", "totalMatches": 132, "totalPoints": 34, "victories": 17, "victoriesAway": 9, "victoriesFulltimeAway": 9, "victoriesFulltimeHome": 8, "victoriesFulltimeTotal": 17, "victoriesHome": 8, "victoriesOvertimeAway": 0, "victoriesOvertimeHome": 0, "victoriesOvertimeTotal": 0, "victoriesPenaltiesAway": 0, "victoriesPenaltiesHome": 0, "victoriesPenaltiesTotal": 0, "teamEntryStatus": null }, ..... ..... ]

Mapping for felter og ID’er fra TournamentStandings/Settings:

switch(PresentationParameterTypeId) case 1: tournamentStanding.Matches //Spilt case 2: tournamentStanding.Victories //Vunnet case 3: tournamentStanding.Draws //Uavgjort case 4: tournamentStanding.Losses //Tapt case 5: tournamentStanding.TotalPoints //Poeng case 6: tournamentStanding.GoalDifference //Måldifferanse case 7: tournamentStanding.GoalsScored //Skåret case 8: tournamentStanding.GoalsConceeded //Innsluppet case 9: tournamentStanding.TeamPenalty; //Lagstraff case 10: tournamentStanding.MatchesHome //Spilt hjemme case 11: tournamentStanding.VictoriesHome //Vunnet hjemme case 12: tournamentStanding.DrawsHome //Uavgjort hjemme case 13: tournamentStanding.LossesHome //Tap hjemme case 14: tournamentStanding.GoalsScoredHome //Skåret hjemme case 15: tournamentStanding.GoalsConcededHome //Innsluppet hjemme case 16: tournamentStanding.PointsHome //Poeng hjemme case 17: tournamentStanding.MatchesAway //Spilt borte case 18: tournamentStanding.VictoriesAway //Vunnet borte case 19: tournamentStanding.DrawsAway //Uavgjort borte case 20: tournamentStanding.LossesAway //Tapt borte case 21: tournamentStanding.GoalsScoredAway //Skåret borte case 22: tournamentStanding.GoalsConcededAway //Innsluppet borte case 23: tournamentStanding.PointsAway //Poeng borte case 24: tournamentStanding.GoalRatio //Målkvotient case 25: tournamentStanding.PartialPointsScoredHome //Delpoeng skåret hjemme case 26: tournamentStanding.PartialPointsScoredAway //Delpoeng skåret borte case 27: tournamentStanding.PartialPointsConcededHome //Delpoeng innsluppet hjemme case 28: tournamentStanding.PartialPointsConcededAway //Delpoeng innsluppet borte case 29: tournamentStanding.PartialPointsScored //Delpoeng skåret totalt case 30: tournamentStanding.PartialPointsConceded //Delpoeng innsluppet totalt case 31: tournamentStanding.PartialPointsDifference //Delpoeng forskjell totalt case 32: tournamentStanding.PartialPointsDifferenceHome //Delpoeng forskjell hjemme case 33: tournamentStanding.PartialPointsDifferenceAway //Delpoeng forskjell borte case 100: tournamentStanding.TotalGoalsFormatted; //Skårede og innslupne mål case 101: tournamentStanding.GoalsHomeFormatted; //Skårede og innslupne mål hjemme case 102: tournamentStanding.GoalsAwayFormatted; //Skårede og innslupne mål borte case 34: tournamentStanding.BonusPointsTotal //Bonuspoeng case 35: tournamentStanding.VictoriesFulltimeTotal //Vunnet Fulltid case 36: tournamentStanding.VictoriesOvertimeTotal //Vunnet Overtid case 37: tournamentStanding.VictoriesPenaltiesTotal //Vunnet Straffekonkurranse case 38: tournamentStanding.LossesFulltimeTotal //Tapt Fulltid case 39: tournamentStanding.LossesOvertimeTotal //Tapt Overtid case 40: tournamentStanding.LossesPenaltiesTotal //Tapt Straffekonkurranse case 42: tournamentStanding.PointsPercentageOfTotal;