POST api/Game/PostGameInvite?profileId={profileId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
profileId

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of 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.

Response Formats

application/json, text/json

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"
  },
  {
    "$ref": "1"
  }
]

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"},{"$ref":"1"}]

application/xml, text/xml

Sample:
<ArrayOfGameInvite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBG.Models">
  <GameInvite>
    <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>
  <GameInvite>
    <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>
</ArrayOfGameInvite>