|
| 1 | +# coding=utf8 |
| 2 | + |
| 3 | +# Copyright 2018 JDCLOUD.COM |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +# NOTE: This class is auto generated by the jdcloud code generator program. |
| 18 | + |
| 19 | +from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest |
| 20 | + |
| 21 | + |
| 22 | +class DescribeRoomUsersRequest(JDCloudRequest): |
| 23 | + """ |
| 24 | + 查询房间内人员列表 |
| 25 | +允许通过条件过滤查询,支持的过滤字段如下: |
| 26 | + - status[eq] 在线状态 1-在线 2-离线 |
| 27 | + - startTime[eq] 用户加入时间段开始时间-UTC时间 startTime,endTime同时有值时生效 |
| 28 | + - endTime[eq] 用户加入时间段结束时间-UTC时间 startTime,endTime同时有值时生效 |
| 29 | +
|
| 30 | + """ |
| 31 | + |
| 32 | + def __init__(self, parameters, header=None, version="v1"): |
| 33 | + super(DescribeRoomUsersRequest, self).__init__( |
| 34 | + '/describeRoomUsers/{appId}', 'GET', header, version) |
| 35 | + self.parameters = parameters |
| 36 | + |
| 37 | + |
| 38 | +class DescribeRoomUsersParameters(object): |
| 39 | + |
| 40 | + def __init__(self, appId, userRoomId, ): |
| 41 | + """ |
| 42 | + :param appId: 应用ID |
| 43 | + :param userRoomId: 业务接入方定义的且在JRTC系统内注册过的房间号 |
| 44 | + """ |
| 45 | + |
| 46 | + self.appId = appId |
| 47 | + self.pageNumber = None |
| 48 | + self.pageSize = None |
| 49 | + self.userRoomId = userRoomId |
| 50 | + self.filters = None |
| 51 | + |
| 52 | + def setPageNumber(self, pageNumber): |
| 53 | + """ |
| 54 | + :param pageNumber: (Optional) 页码;默认值为 1 |
| 55 | + """ |
| 56 | + self.pageNumber = pageNumber |
| 57 | + |
| 58 | + def setPageSize(self, pageSize): |
| 59 | + """ |
| 60 | + :param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100] |
| 61 | + """ |
| 62 | + self.pageSize = pageSize |
| 63 | + |
| 64 | + def setFilters(self, filters): |
| 65 | + """ |
| 66 | + :param filters: (Optional) 传参字段描述: |
| 67 | +- status[eq] 在线状态 1-在线 2-离线 |
| 68 | +- startTime[eq] 用户加入时间段开始时间-UTC时间 startTime,endTime同时有值时生效 |
| 69 | +- endTime[eq] 用户加入时间段结束时间-UTC时间 startTime,endTime同时有值时生效 |
| 70 | +
|
| 71 | + """ |
| 72 | + self.filters = filters |
| 73 | + |
0 commit comments