POST api/AstroBlocksV2/PostGameData
Request Information
URI Parameters
None.
Body Parameters
AstroBlocksV2MetricsName | Description | Type | Additional information |
---|---|---|---|
UserzID | string |
Required |
|
TotalTime | decimal number |
Required Range: inclusive between 0 and 10000 |
|
LevelNumber | integer |
Required Range: inclusive between 0 and 100 |
|
LevelSuccessful | boolean |
Required |
|
Score | integer |
Required Range: inclusive between 0 and 10000 |
|
NumberOfStars | integer |
Required Range: inclusive between 0 and 10000 |
|
MotorMovement | decimal number |
Required Range: inclusive between 0 and 10000 |
|
MaxLevel | integer |
Required Range: inclusive between 0 and 100 |
|
TotalBricks | integer |
Required Range: inclusive between 0 and 10000 |
|
TotalBricksPopped | integer |
Required Range: inclusive between 0 and 10000 |
|
TotalLives | integer |
Required Range: inclusive between 0 and 4 |
|
TotalLivesRemaining | integer |
Required Range: inclusive between 0 and 4 |
|
NumberOfBallsLost | integer |
Required Range: inclusive between 0 and 10000 |
|
TotalNumberOfBalls | integer |
Required Range: inclusive between 0 and 10000 |
|
TimeMetrics | TimeDetail |
Required |
|
FPSMetrics | FPSDetail |
Required |
Request Formats
application/json, text/json
Sample:
{ "UserzID": "sample string 1", "TotalTime": 2.1, "LevelNumber": 3, "LevelSuccessful": true, "Score": 5, "NumberOfStars": 6, "MotorMovement": 7.1, "MaxLevel": 8, "TotalBricks": 9, "TotalBricksPopped": 10, "TotalLives": 11, "TotalLivesRemaining": 12, "NumberOfBallsLost": 13, "TotalNumberOfBalls": 14, "TimeMetrics": { "EngagedTime": [ 1.1, 2.1 ], "NoUserFoundTime": [ 1.1, 2.1 ], "NoUserFoundCount": 1, "PauseClicks": 2, "PauseTime": [ 1.1, 2.1 ], "WaitTime": [ 1.1, 2.1 ] }, "FPSMetrics": { "AvgFPS": 1.1, "MinFPS": 2.1, "MaxFPS": 3.1, "FPSBelow19Time": 4.1, "FPSBetween19And30Time": 5.1, "FPSAbove30Time": 6.1 } }
application/xml, text/xml
Sample:
<AstroBlocksV2Metrics xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers.MongoDB"> <FPSMetrics xmlns:d2p1="http://schemas.datacontract.org/2004/07/GameAPIV3.Models"> <d2p1:AvgFPS>1.1</d2p1:AvgFPS> <d2p1:FPSAbove30Time>6.1</d2p1:FPSAbove30Time> <d2p1:FPSBelow19Time>4.1</d2p1:FPSBelow19Time> <d2p1:FPSBetween19And30Time>5.1</d2p1:FPSBetween19And30Time> <d2p1:MaxFPS>3.1</d2p1:MaxFPS> <d2p1:MinFPS>2.1</d2p1:MinFPS> </FPSMetrics> <LevelNumber>3</LevelNumber> <LevelSuccessful>true</LevelSuccessful> <MaxLevel>8</MaxLevel> <MotorMovement>7.1</MotorMovement> <NumberOfBallsLost>13</NumberOfBallsLost> <NumberOfStars>6</NumberOfStars> <Score>5</Score> <TimeMetrics xmlns:d2p1="http://schemas.datacontract.org/2004/07/GameAPIV3.Models"> <d2p1:EngagedTime xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:float>1.1</d3p1:float> <d3p1:float>2.1</d3p1:float> </d2p1:EngagedTime> <d2p1:NoUserFoundCount>1</d2p1:NoUserFoundCount> <d2p1:NoUserFoundTime xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:float>1.1</d3p1:float> <d3p1:float>2.1</d3p1:float> </d2p1:NoUserFoundTime> <d2p1:PauseClicks>2</d2p1:PauseClicks> <d2p1:PauseTime xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:float>1.1</d3p1:float> <d3p1:float>2.1</d3p1:float> </d2p1:PauseTime> <d2p1:WaitTime xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:float>1.1</d3p1:float> <d3p1:float>2.1</d3p1:float> </d2p1:WaitTime> </TimeMetrics> <TotalBricks>9</TotalBricks> <TotalBricksPopped>10</TotalBricksPopped> <TotalLives>11</TotalLives> <TotalLivesRemaining>12</TotalLivesRemaining> <TotalNumberOfBalls>14</TotalNumberOfBalls> <TotalTime>2.1</TotalTime> <UserzID>sample string 1</UserzID> </AstroBlocksV2Metrics>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.