POST api/broker/getrandombroker

获取随机推荐专家包括其房源

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

CityModel
名称说明数据类型附加信息
City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">
  <Platform>sample string 3</Platform>
  <Token>sample string 2</Token>
  <City>sample string 1</City>
</CityModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

BrokerRandomResult
名称说明数据类型附加信息
Brokers

经纪人

Collection of BrokerWithHouse

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Brokers": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "Houses": [
        {
          "HouseType": 1,
          "Id": 1,
          "BuildingName": "sample string 2",
          "RoomCount": 3,
          "Area": 4.1,
          "Price": 5.1,
          "PriceUnit": "sample string 6"
        },
        {
          "HouseType": 1,
          "Id": 1,
          "BuildingName": "sample string 2",
          "RoomCount": 3,
          "Area": 4.1,
          "Price": 5.1,
          "PriceUnit": "sample string 6"
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "Houses": [
        {
          "HouseType": 1,
          "Id": 1,
          "BuildingName": "sample string 2",
          "RoomCount": 3,
          "Area": 4.1,
          "Price": 5.1,
          "PriceUnit": "sample string 6"
        },
        {
          "HouseType": 1,
          "Id": 1,
          "BuildingName": "sample string 2",
          "RoomCount": 3,
          "Area": 4.1,
          "Price": 5.1,
          "PriceUnit": "sample string 6"
        }
      ]
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BrokerRandomResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
  <Brokers>
    <BrokerRandomResult.BrokerWithHouse>
      <Houses>
        <BrokerRandomResult.BrokerRandomHouse>
          <Area>4.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <HouseType>ES</HouseType>
          <Id>1</Id>
          <Price>5.1</Price>
          <PriceUnit>sample string 6</PriceUnit>
          <RoomCount>3</RoomCount>
        </BrokerRandomResult.BrokerRandomHouse>
        <BrokerRandomResult.BrokerRandomHouse>
          <Area>4.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <HouseType>ES</HouseType>
          <Id>1</Id>
          <Price>5.1</Price>
          <PriceUnit>sample string 6</PriceUnit>
          <RoomCount>3</RoomCount>
        </BrokerRandomResult.BrokerRandomHouse>
      </Houses>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Photo>sample string 3</Photo>
    </BrokerRandomResult.BrokerWithHouse>
    <BrokerRandomResult.BrokerWithHouse>
      <Houses>
        <BrokerRandomResult.BrokerRandomHouse>
          <Area>4.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <HouseType>ES</HouseType>
          <Id>1</Id>
          <Price>5.1</Price>
          <PriceUnit>sample string 6</PriceUnit>
          <RoomCount>3</RoomCount>
        </BrokerRandomResult.BrokerRandomHouse>
        <BrokerRandomResult.BrokerRandomHouse>
          <Area>4.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <HouseType>ES</HouseType>
          <Id>1</Id>
          <Price>5.1</Price>
          <PriceUnit>sample string 6</PriceUnit>
          <RoomCount>3</RoomCount>
        </BrokerRandomResult.BrokerRandomHouse>
      </Houses>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Photo>sample string 3</Photo>
    </BrokerRandomResult.BrokerWithHouse>
  </Brokers>
</BrokerRandomResult>