GET api/ChatCidadao/Sala?userID={userID}&contatoID={contatoID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userID

integer

Required

contatoID

integer

Required

Body Parameters

None.

Response Information

Resource Description

SalaSimple
NameDescriptionTypeAdditional information
SalaID

integer

None.

Mensagens

Collection of MensagemSimple

None.

Response Formats

application/json, text/json

Sample:
{
  "SalaID": 1,
  "Mensagens": [
    {
      "MsgId": 1,
      "Tipo": 2,
      "FileName": "sample string 3",
      "UsuarioIntranetId": "sample string 4",
      "DataMsg": "2019-05-19T21:39:11.9000867-04:00",
      "Mensagem": "sample string 6",
      "SalaId": 7,
      "UserId": 8,
      "UserName": "sample string 9"
    },
    {
      "MsgId": 1,
      "Tipo": 2,
      "FileName": "sample string 3",
      "UsuarioIntranetId": "sample string 4",
      "DataMsg": "2019-05-19T21:39:11.9000867-04:00",
      "Mensagem": "sample string 6",
      "SalaId": 7,
      "UserId": 8,
      "UserName": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<SalaSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.DTO">
  <Mensagens>
    <MensagemSimple>
      <DataMsg>2019-05-19T21:39:11.9000867-04:00</DataMsg>
      <FileName>sample string 3</FileName>
      <Mensagem>sample string 6</Mensagem>
      <MsgId>1</MsgId>
      <SalaId>7</SalaId>
      <Tipo>2</Tipo>
      <UserId>8</UserId>
      <UserName>sample string 9</UserName>
      <UsuarioIntranetId>sample string 4</UsuarioIntranetId>
    </MensagemSimple>
    <MensagemSimple>
      <DataMsg>2019-05-19T21:39:11.9000867-04:00</DataMsg>
      <FileName>sample string 3</FileName>
      <Mensagem>sample string 6</Mensagem>
      <MsgId>1</MsgId>
      <SalaId>7</SalaId>
      <Tipo>2</Tipo>
      <UserId>8</UserId>
      <UserName>sample string 9</UserName>
      <UsuarioIntranetId>sample string 4</UsuarioIntranetId>
    </MensagemSimple>
  </Mensagens>
  <SalaID>1</SalaID>
</SalaSimple>