POST api/broker/getbuildinghousecount

获取经纪人房源的小区房源数

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

Request 信息

URI 参数

None.

Body 参数

BrokerModel
名称说明数据类型附加信息
Id

经纪人Id

integer

Required

HasDescription

是否返回公告和个人介绍

boolean

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "HasDescription": true,
  "City": "sample string 3",
  "Token": "sample string 4",
  "Platform": "sample string 5"
}

application/xml, text/xml

示例:
<BrokerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</City>
  <HasDescription>true</HasDescription>
  <Id>1</Id>
</BrokerModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

BuildingHouseCountResult
名称说明数据类型附加信息
TradeBuildingHouseCount

二手房小区房源数

Collection of BuildingHouseCount

None.

LeaseBuildingHouseCount

出租房小区房源数

Collection of BuildingHouseCount

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "TradeBuildingHouseCount": [
    {
      "BuildingName": "sample string 1",
      "BuildingId": 2,
      "Count": 3
    },
    {
      "BuildingName": "sample string 1",
      "BuildingId": 2,
      "Count": 3
    }
  ],
  "LeaseBuildingHouseCount": [
    {
      "BuildingName": "sample string 1",
      "BuildingId": 2,
      "Count": 3
    },
    {
      "BuildingName": "sample string 1",
      "BuildingId": 2,
      "Count": 3
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BuildingHouseCountResult 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>
  <LeaseBuildingHouseCount>
    <BuildingHouseCountResult.BuildingHouseCount>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 1</BuildingName>
      <Count>3</Count>
    </BuildingHouseCountResult.BuildingHouseCount>
    <BuildingHouseCountResult.BuildingHouseCount>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 1</BuildingName>
      <Count>3</Count>
    </BuildingHouseCountResult.BuildingHouseCount>
  </LeaseBuildingHouseCount>
  <TradeBuildingHouseCount>
    <BuildingHouseCountResult.BuildingHouseCount>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 1</BuildingName>
      <Count>3</Count>
    </BuildingHouseCountResult.BuildingHouseCount>
    <BuildingHouseCountResult.BuildingHouseCount>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 1</BuildingName>
      <Count>3</Count>
    </BuildingHouseCountResult.BuildingHouseCount>
  </TradeBuildingHouseCount>
</BuildingHouseCountResult>