POST api/Game/GameInvite

Request Information

URI Parameters

None.

Body Parameters

GameInvite
NameDescriptionTypeAdditional information
gameId

integer

None.

Location

string

None.

gameDateTime

string

None.

gameNumberOfPlayers

integer

None.

profileId

integer

None.

hostName

string

None.

contactModels

Collection of ContactProfile

None.

gameteammodel

GameTeam

None.

isdeleted

integer

None.

isteamallocated

integer

None.

islogged

integer

None.

createdon

string

None.

Request Formats

application/json, text/json

Sample:
{
  "gameId": 1,
  "Location": "sample string 2",
  "gameDateTime": "sample string 3",
  "gameNumberOfPlayers": 4,
  "profileId": 5,
  "hostName": "sample string 6",
  "contactModels": [
    {
      "$id": "2",
      "userFirstName": "sample string 1",
      "userLastName": "sample string 2",
      "userMobileNumber": "sample string 3",
      "Selected": true
    },
    {
      "$ref": "2"
    }
  ],
  "gameteammodel": {
    "$id": "3",
    "gameteamId": 1,
    "gameId": 2,
    "team1Id": 3,
    "team2Id": 4,
    "team1goalscore": 5,
    "team2goalscore": 6,
    "teamwin": 7,
    "createdon": "sample string 8"
  },
  "isdeleted": 7,
  "isteamallocated": 8,
  "islogged": 9,
  "createdon": "sample string 10"
}

text/html

Sample:
{"$id":"1","gameId":1,"Location":"sample string 2","gameDateTime":"sample string 3","gameNumberOfPlayers":4,"profileId":5,"hostName":"sample string 6","contactModels":[{"$id":"2","userFirstName":"sample string 1","userLastName":"sample string 2","userMobileNumber":"sample string 3","Selected":true},{"$ref":"2"}],"gameteammodel":{"$id":"3","gameteamId":1,"gameId":2,"team1Id":3,"team2Id":4,"team1goalscore":5,"team2goalscore":6,"teamwin":7,"createdon":"sample string 8"},"isdeleted":7,"isteamallocated":8,"islogged":9,"createdon":"sample string 10"}

application/xml, text/xml

Sample:
<GameInvite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBG.Models">
  <Location>sample string 2</Location>
  <contactModels>
    <ContactProfile>
      <Selected>true</Selected>
      <userFirstName>sample string 1</userFirstName>
      <userLastName>sample string 2</userLastName>
      <userMobileNumber>sample string 3</userMobileNumber>
    </ContactProfile>
    <ContactProfile>
      <Selected>true</Selected>
      <userFirstName>sample string 1</userFirstName>
      <userLastName>sample string 2</userLastName>
      <userMobileNumber>sample string 3</userMobileNumber>
    </ContactProfile>
  </contactModels>
  <createdon>sample string 10</createdon>
  <gameDateTime>sample string 3</gameDateTime>
  <gameId>1</gameId>
  <gameNumberOfPlayers>4</gameNumberOfPlayers>
  <gameteammodel>
    <createdon>sample string 8</createdon>
    <gameId>2</gameId>
    <gameteamId>1</gameteamId>
    <team1Id>3</team1Id>
    <team1goalscore>5</team1goalscore>
    <team2Id>4</team2Id>
    <team2goalscore>6</team2goalscore>
    <teamwin>7</teamwin>
  </gameteammodel>
  <hostName>sample string 6</hostName>
  <isdeleted>7</isdeleted>
  <islogged>9</islogged>
  <isteamallocated>8</isteamallocated>
  <profileId>5</profileId>
</GameInvite>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.