HotelGetRequest.php
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* TOP API: taobao.hotel.get request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class HotelGetRequest
{
/**
* true表示查询酒店审核状态,false表示查询已审核通过酒店详细信息
**/
private $checkAudit;
/**
* 要查询的酒店id。必须为数字
**/
private $hid;
/**
* 是否需要返回该酒店的房型列表。可选值:true,false。
**/
private $needRoomType;
private $apiParas = array();
public function setCheckAudit($checkAudit)
{
$this->checkAudit = $checkAudit;
$this->apiParas["check_audit"] = $checkAudit;
}
public function getCheckAudit()
{
return $this->checkAudit;
}
public function setHid($hid)
{
$this->hid = $hid;
$this->apiParas["hid"] = $hid;
}
public function getHid()
{
return $this->hid;
}
public function setNeedRoomType($needRoomType)
{
$this->needRoomType = $needRoomType;
$this->apiParas["need_room_type"] = $needRoomType;
}
public function getNeedRoomType()
{
return $this->needRoomType;
}
public function getApiMethodName()
{
return "taobao.hotel.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->hid,"hid");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}