GET api/Tidbits/TournamentAges/{id}

Gets the top (5) oldest and youngest players in a championship.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The tournament identifier.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A record.

TidbitTournamentAgesReport
NameDescriptionTypeAdditional information
FieldAverageAge

Gets or sets the average age of the field

decimal number

None.

PlayersWithAge

Gets or sets the number of players with age set.

integer

None.

TotalPlayers

Gets or sets the total number of players.

integer

None.

Players

Gets or sets the list of the oldest players.

Collection of TidbitTournamentAgesReportData

None.

Response Formats

application/json, text/json

Sample:
{
  "FieldAverageAge": 1.0,
  "PlayersWithAge": 2,
  "TotalPlayers": 3,
  "Players": [
    {
      "Person": {
        "FirstName": "sample string 1",
        "Initial": "sample string 2",
        "PersonId": 3,
        "SurName": "sample string 4",
        "Links": []
      },
      "Association": {
        "AssociationId": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "FlagFileName": "sample string 4",
        "FlagFileX": 1,
        "FlagFileY": 1,
        "StartDate": "2020-07-07T19:06:29.3601253+00:00",
        "EndDate": "2020-07-07T19:06:29.3601253+00:00",
        "OfficialName": "sample string 5",
        "Links": []
      },
      "Position": {
        "Number": 1,
        "Name": "sample string 2",
        "IsSkip": true,
        "IsPlayer": true,
        "ShortName": "sample string 5"
      },
      "BirthDate": "2020-07-07T19:06:29.3601253+00:00",
      "Years": 1,
      "Months": 2
    },
    {
      "Person": {
        "FirstName": "sample string 1",
        "Initial": "sample string 2",
        "PersonId": 3,
        "SurName": "sample string 4",
        "Links": []
      },
      "Association": {
        "AssociationId": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "FlagFileName": "sample string 4",
        "FlagFileX": 1,
        "FlagFileY": 1,
        "StartDate": "2020-07-07T19:06:29.3601253+00:00",
        "EndDate": "2020-07-07T19:06:29.3601253+00:00",
        "OfficialName": "sample string 5",
        "Links": []
      },
      "Position": {
        "Number": 1,
        "Name": "sample string 2",
        "IsSkip": true,
        "IsPlayer": true,
        "ShortName": "sample string 5"
      },
      "BirthDate": "2020-07-07T19:06:29.3601253+00:00",
      "Years": 1,
      "Months": 2
    }
  ]
}

application/xml, text/xml

Sample:
<TidbitTournamentAgesReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WCF.Statistics.Entities.Tidbits">
  <FieldAverageAge>1</FieldAverageAge>
  <Players>
    <TidbitTournamentAgesReportData>
      <Association xmlns:d4p1="http://worldcurling.org/statistics/data/association">
        <Links xmlns:d5p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
        <d4p1:AssociationId>1</d4p1:AssociationId>
        <d4p1:Code>sample string 2</d4p1:Code>
        <d4p1:EndDate>2020-07-07T19:06:29.3601253+00:00</d4p1:EndDate>
        <d4p1:FlagFileName>sample string 4</d4p1:FlagFileName>
        <d4p1:FlagFileX>1</d4p1:FlagFileX>
        <d4p1:FlagFileY>1</d4p1:FlagFileY>
        <d4p1:Name>sample string 3</d4p1:Name>
        <d4p1:OfficialName>sample string 5</d4p1:OfficialName>
        <d4p1:StartDate>2020-07-07T19:06:29.3601253+00:00</d4p1:StartDate>
      </Association>
      <BirthDate>2020-07-07T19:06:29.3601253+00:00</BirthDate>
      <Months>2</Months>
      <Person xmlns:d4p1="http://worldcurling.org/statistics/data/personkeydata">
        <Links xmlns:d5p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
        <d4p1:FirstName>sample string 1</d4p1:FirstName>
        <d4p1:Initial>sample string 2</d4p1:Initial>
        <d4p1:PersonId>3</d4p1:PersonId>
        <d4p1:SurName>sample string 4</d4p1:SurName>
      </Person>
      <Position xmlns:d4p1="http://worldcurling.org/statistics/data/position">
        <d4p1:IsPlayer>true</d4p1:IsPlayer>
        <d4p1:IsSkip>true</d4p1:IsSkip>
        <d4p1:Name>sample string 2</d4p1:Name>
        <d4p1:Number>1</d4p1:Number>
        <d4p1:ShortName>sample string 5</d4p1:ShortName>
      </Position>
      <Years>1</Years>
    </TidbitTournamentAgesReportData>
    <TidbitTournamentAgesReportData>
      <Association xmlns:d4p1="http://worldcurling.org/statistics/data/association">
        <Links xmlns:d5p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
        <d4p1:AssociationId>1</d4p1:AssociationId>
        <d4p1:Code>sample string 2</d4p1:Code>
        <d4p1:EndDate>2020-07-07T19:06:29.3601253+00:00</d4p1:EndDate>
        <d4p1:FlagFileName>sample string 4</d4p1:FlagFileName>
        <d4p1:FlagFileX>1</d4p1:FlagFileX>
        <d4p1:FlagFileY>1</d4p1:FlagFileY>
        <d4p1:Name>sample string 3</d4p1:Name>
        <d4p1:OfficialName>sample string 5</d4p1:OfficialName>
        <d4p1:StartDate>2020-07-07T19:06:29.3601253+00:00</d4p1:StartDate>
      </Association>
      <BirthDate>2020-07-07T19:06:29.3601253+00:00</BirthDate>
      <Months>2</Months>
      <Person xmlns:d4p1="http://worldcurling.org/statistics/data/personkeydata">
        <Links xmlns:d5p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
        <d4p1:FirstName>sample string 1</d4p1:FirstName>
        <d4p1:Initial>sample string 2</d4p1:Initial>
        <d4p1:PersonId>3</d4p1:PersonId>
        <d4p1:SurName>sample string 4</d4p1:SurName>
      </Person>
      <Position xmlns:d4p1="http://worldcurling.org/statistics/data/position">
        <d4p1:IsPlayer>true</d4p1:IsPlayer>
        <d4p1:IsSkip>true</d4p1:IsSkip>
        <d4p1:Name>sample string 2</d4p1:Name>
        <d4p1:Number>1</d4p1:Number>
        <d4p1:ShortName>sample string 5</d4p1:ShortName>
      </Position>
      <Years>1</Years>
    </TidbitTournamentAgesReportData>
  </Players>
  <PlayersWithAge>2</PlayersWithAge>
  <TotalPlayers>3</TotalPlayers>
</TidbitTournamentAgesReport>