-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAilabsIotDeviceControlNotifyAPIRequest.go
51 lines (43 loc) · 1.66 KB
/
AlibabaAilabsIotDeviceControlNotifyAPIRequest.go
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
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// AlibabaAilabsIotDeviceControlNotifyAPIRequest 天猫精灵IoT异步控制回调接口 API请求
// alibaba.ailabs.iot.device.control.notify
//
// 用于天猫精灵IoT云云接入控制结果的异步回调
type AlibabaAilabsIotDeviceControlNotifyAPIRequest struct {
model.Params
// 入参
_notifyControlParams *NotifyVehicleControlParams
}
// NewAlibabaAilabsIotDeviceControlNotifyRequest 初始化AlibabaAilabsIotDeviceControlNotifyAPIRequest对象
func NewAlibabaAilabsIotDeviceControlNotifyRequest() *AlibabaAilabsIotDeviceControlNotifyAPIRequest {
return &AlibabaAilabsIotDeviceControlNotifyAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAilabsIotDeviceControlNotifyAPIRequest) GetApiMethodName() string {
return "alibaba.ailabs.iot.device.control.notify"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAilabsIotDeviceControlNotifyAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetNotifyControlParams is NotifyControlParams Setter
// 入参
func (r *AlibabaAilabsIotDeviceControlNotifyAPIRequest) SetNotifyControlParams(_notifyControlParams *NotifyVehicleControlParams) error {
r._notifyControlParams = _notifyControlParams
r.Set("notify_control_params", _notifyControlParams)
return nil
}
// GetNotifyControlParams NotifyControlParams Getter
func (r AlibabaAilabsIotDeviceControlNotifyAPIRequest) GetNotifyControlParams() *NotifyVehicleControlParams {
return r._notifyControlParams
}