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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
profileId

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of GameInviteViewModel
NameDescriptionTypeAdditional information
invite

Invite

None.

game

GameInvite

None.

dt

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "invite": {
      "$id": "2",
      "inviteId": 1,
      "gameId": 2,
      "inviteStatus": 3,
      "inviteTime": "sample string 4",
      "profileId": 5,
      "isNotificationSent": 6
    },
    "game": {
      "$id": "3",
      "gameId": 1,
      "Location": "sample string 2",
      "gameDateTime": "sample string 3",
      "gameNumberOfPlayers": 4,
      "profileId": 5,
      "hostName": "sample string 6",
      "contactModels": [
        {
          "$id": "4",
          "userFirstName": "sample string 1",
          "userLastName": "sample string 2",
          "userMobileNumber": "sample string 3",
          "Selected": true
        },
        {
          "$ref": "4"
        }
      ],
      "gameteammodel": {
        "$id": "5",
        "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"
    },
    "dt": "2019-06-19T18:48:14.6837902+00:00"
  },
  {
    "$ref": "1"
  }
]

text/html

Sample:
[{"$id":"1","invite":{"$id":"2","inviteId":1,"gameId":2,"inviteStatus":3,"inviteTime":"sample string 4","profileId":5,"isNotificationSent":6},"game":{"$id":"3","gameId":1,"Location":"sample string 2","gameDateTime":"sample string 3","gameNumberOfPlayers":4,"profileId":5,"hostName":"sample string 6","contactModels":[{"$id":"4","userFirstName":"sample string 1","userLastName":"sample string 2","userMobileNumber":"sample string 3","Selected":true},{"$ref":"4"}],"gameteammodel":{"$id":"5","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"},"dt":"2019-06-19T18:48:14.6837902+00:00"},{"$ref":"1"}]

application/xml, text/xml

Sample:
<ArrayOfGameInviteViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBG.Models">
  <GameInviteViewModel>
    <dt>2019-06-19T18:48:14.6837902+00:00</dt>
    <game>
      <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>
    </game>
    <invite>
      <gameId>2</gameId>
      <inviteId>1</inviteId>
      <inviteStatus>3</inviteStatus>
      <inviteTime>sample string 4</inviteTime>
      <isNotificationSent>6</isNotificationSent>
      <profileId>5</profileId>
    </invite>
  </GameInviteViewModel>
  <GameInviteViewModel>
    <dt>2019-06-19T18:48:14.6837902+00:00</dt>
    <game>
      <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>
    </game>
    <invite>
      <gameId>2</gameId>
      <inviteId>1</inviteId>
      <inviteStatus>3</inviteStatus>
      <inviteTime>sample string 4</inviteTime>
      <isNotificationSent>6</isNotificationSent>
      <profileId>5</profileId>
    </invite>
  </GameInviteViewModel>
</ArrayOfGameInviteViewModel>