<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ComunideskSoap_ChatThread"
  targetNamespace="https://gateway.comunidesk.com/soap"
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:tns="https://gateway.comunidesk.com/soap"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <types>
    <xsd:schema targetNamespace="https://gateway.comunidesk.com/soap" elementFormDefault="qualified">
      <xsd:complexType name="ChatThread"><xsd:sequence><xsd:element name="_id" type="xsd:string" minOccurs="0"/><xsd:element name="type" type="xsd:string" minOccurs="0"/><xsd:element name="edificioId" type="xsd:string" minOccurs="1"/><xsd:element name="participants" type="xsd:string" minOccurs="1"/><xsd:element name="kind" type="xsd:string" minOccurs="0"/><xsd:element name="title" type="xsd:string" minOccurs="0"/><xsd:element name="body" type="xsd:string" minOccurs="0"/><xsd:element name="fromEmail" type="xsd:string" minOccurs="0"/></xsd:sequence></xsd:complexType>
    </xsd:schema>
  </types>

  
  <message name="ListChatThreadRequest"><part name="edificioId" type="xsd:string"/></message>
  <message name="ListChatThreadResponse"><part name="items" type="xsd:string"/></message>
  <message name="GetChatThreadRequest"><part name="id" type="xsd:string"/><part name="edificioId" type="xsd:string"/></message>
  <message name="GetChatThreadResponse"><part name="item" type="tns:ChatThread"/></message>
  <message name="CreateChatThreadRequest"><part name="body" type="tns:ChatThread"/></message>
  <message name="CreateChatThreadResponse"><part name="item" type="tns:ChatThread"/></message>
  <message name="UpdateChatThreadRequest"><part name="id" type="xsd:string"/><part name="body" type="tns:ChatThread"/></message>
  <message name="UpdateChatThreadResponse"><part name="item" type="tns:ChatThread"/></message>
  <message name="DeleteChatThreadRequest"><part name="id" type="xsd:string"/><part name="edificioId" type="xsd:string"/></message>
  <message name="DeleteChatThreadResponse"><part name="ok" type="xsd:boolean"/></message>

  <portType name="ComunideskSoap_ChatThreadPortType">
    
    <operation name="ListChatThread">
      <documentation>Mensajes — List</documentation>
      <input message="tns:ListChatThreadRequest"/>
      <output message="tns:ListChatThreadResponse"/>
    </operation>
    <operation name="GetChatThread">
      <documentation>Mensajes — Get</documentation>
      <input message="tns:GetChatThreadRequest"/>
      <output message="tns:GetChatThreadResponse"/>
    </operation>
    <operation name="CreateChatThread">
      <documentation>Mensajes — Create</documentation>
      <input message="tns:CreateChatThreadRequest"/>
      <output message="tns:CreateChatThreadResponse"/>
    </operation>
    <operation name="UpdateChatThread">
      <documentation>Mensajes — Update</documentation>
      <input message="tns:UpdateChatThreadRequest"/>
      <output message="tns:UpdateChatThreadResponse"/>
    </operation>
    <operation name="DeleteChatThread">
      <documentation>Mensajes — Delete</documentation>
      <input message="tns:DeleteChatThreadRequest"/>
      <output message="tns:DeleteChatThreadResponse"/>
    </operation>
  </portType>

  <binding name="ComunideskSoap_ChatThreadBinding" type="tns:ComunideskSoap_ChatThreadPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    
    <operation name="ListChatThread">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/ListChatThread"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="GetChatThread">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/GetChatThread"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="CreateChatThread">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/CreateChatThread"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="UpdateChatThread">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/UpdateChatThread"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="DeleteChatThread">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/DeleteChatThread"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
  </binding>

  <service name="ComunideskSoap_ChatThreadService">
    <documentation>Chat entre residentes y administración (hilos y mensajes del edificio).</documentation>
    <port name="ComunideskSoap_ChatThreadPort" binding="tns:ComunideskSoap_ChatThreadBinding">
      <soap:address location="https://gateway.comunidesk.com/v1/soap"/>
    </port>
  </service>
</definitions>
