POST api/BrainGrub
Request Information
URI Parameters
None.
Body Parameters
BrainGrubModelName | Description | Type | Additional information |
---|---|---|---|
UserzID | globally unique identifier |
Required |
|
TimePlayed | date |
Required |
|
TotalTime | decimal number |
Required Range: inclusive between 0 and 10000 |
|
GameType | GameType |
Required |
|
IsSuccessful | boolean |
Required |
|
TimeInSeconds | integer |
Required Range: inclusive between 0 and 10000 |
|
NumberOfMoves | integer |
Required Range: inclusive between 0 and 10000 |
|
AverageTimeUntilCardPicked | decimal number |
Required Range: inclusive between 0 and 10000 |
|
Score | integer |
Required Range: inclusive between 0 and 10000 |
|
Lives | integer |
Required Range: inclusive between 0 and 4 |
|
HandType | HandType___ |
Required |
|
LevelNumber | integer |
Required Range: inclusive between 1 and 30 |
|
MaxLevelFreeMode | integer |
None. |
|
MaxLevelTimeMode | integer |
None. |
|
MaxLevelRememberMode | integer |
None. |
|
Pictures | Collection of PictureClass |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserzID": "753e2a9b-de3b-4498-b61a-4f57e47e3c15", "TimePlayed": "2024-12-06T15:38:35.9677605+00:00", "TotalTime": 3.1, "GameType": 0, "IsSuccessful": true, "TimeInSeconds": 5, "NumberOfMoves": 6, "AverageTimeUntilCardPicked": 7.1, "Score": 8, "Lives": 9, "HandType": 0, "LevelNumber": 10, "MaxLevelFreeMode": 11, "MaxLevelTimeMode": 12, "MaxLevelRememberMode": 13, "Pictures": [ { "GameTime": 1.1, "PicID": "3aa97fcc-7594-4430-b28b-d4d5416c778f" }, { "GameTime": 1.1, "PicID": "3aa97fcc-7594-4430-b28b-d4d5416c778f" } ] }
application/xml, text/xml
Sample:
<BrainGrubController.BrainGrub xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers"> <AverageTimeUntilCardPicked>7.1</AverageTimeUntilCardPicked> <GameType>freePlay</GameType> <HandType>RIGHT</HandType> <IsSuccessful>true</IsSuccessful> <LevelNumber>10</LevelNumber> <Lives>9</Lives> <MaxLevelFreeMode>11</MaxLevelFreeMode> <MaxLevelRememberMode>13</MaxLevelRememberMode> <MaxLevelTimeMode>12</MaxLevelTimeMode> <NumberOfMoves>6</NumberOfMoves> <Pictures xmlns:d2p1="http://schemas.datacontract.org/2004/07/GameAPIV3.Models"> <d2p1:PictureClass> <d2p1:GameTime>1.1</d2p1:GameTime> <d2p1:PicID>3aa97fcc-7594-4430-b28b-d4d5416c778f</d2p1:PicID> </d2p1:PictureClass> <d2p1:PictureClass> <d2p1:GameTime>1.1</d2p1:GameTime> <d2p1:PicID>3aa97fcc-7594-4430-b28b-d4d5416c778f</d2p1:PicID> </d2p1:PictureClass> </Pictures> <Score>8</Score> <TimeInSeconds>5</TimeInSeconds> <TimePlayed>2024-12-06T15:38:35.9677605+00:00</TimePlayed> <TotalTime>3.1</TotalTime> <UserzID>753e2a9b-de3b-4498-b61a-4f57e47e3c15</UserzID> </BrainGrubController.BrainGrub>
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.