POST api/win/{winner}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| winner | string |
Required |
Body Parameters
PlayModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OnlineGameID | integer |
None. |
|
| FromGUID | string |
None. |
|
| ToGUID | string |
None. |
|
| Status | integer |
None. |
|
| Player1GUID | string |
None. |
|
| Player2GUID | string |
None. |
|
| RequesterName | string |
None. |
|
| OpponentName | string |
None. |
|
| CurrentlyPlayed | string |
None. |
|
| CurrentColumn | integer |
None. |
|
| CurrentRow | integer |
None. |
|
| Timestamp | string |
None. |
|
| Message | string |
None. |
|
| ErrorMessage | string |
None. |
|
| StepCount | integer |
None. |
|
| NextToPlay | string |
None. |
|
| ReplayTimeStamp | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OnlineGameID": 1,
"FromGUID": "sample string 2",
"ToGUID": "sample string 3",
"Status": 4,
"Player1GUID": "sample string 5",
"Player2GUID": "sample string 6",
"RequesterName": "sample string 7",
"OpponentName": "sample string 8",
"CurrentlyPlayed": "sample string 9",
"CurrentColumn": 10,
"CurrentRow": 11,
"Timestamp": "sample string 12",
"Message": "sample string 13",
"ErrorMessage": "sample string 14",
"StepCount": 15,
"NextToPlay": "sample string 16",
"ReplayTimeStamp": "sample string 17"
}
text/xml
Sample:
<PlayModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FourInARowAPI.Models"> <CurrentColumn>10</CurrentColumn> <CurrentRow>11</CurrentRow> <CurrentlyPlayed>sample string 9</CurrentlyPlayed> <ErrorMessage>sample string 14</ErrorMessage> <FromGUID>sample string 2</FromGUID> <Message>sample string 13</Message> <NextToPlay>sample string 16</NextToPlay> <OnlineGameID>1</OnlineGameID> <OpponentName>sample string 8</OpponentName> <Player1GUID>sample string 5</Player1GUID> <Player2GUID>sample string 6</Player2GUID> <ReplayTimeStamp>sample string 17</ReplayTimeStamp> <RequesterName>sample string 7</RequesterName> <Status>4</Status> <StepCount>15</StepCount> <Timestamp>sample string 12</Timestamp> <ToGUID>sample string 3</ToGUID> </PlayModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>