human: 如何处理七牛云的低代码QRooms

gpt: [低代码](https://developer.qiniu.com/lowcode) > API 文档 >
[互动直播](https://developer.qiniu.com/lowcode/api/12007/qlive-api) > [android
API文档](https://developer.qiniu.com/lowcode/api/12032/the-android-api-
documentation) > QRooms

#  QRooms

最近更新时间: 2022-10-31 14:18:46

interface com.qlive.sdk.QRooms

房间管理接口

Index

方法

  * createRoom
  * deleteRoom
  * getRoomInfo
  * listRoom
  * liveRecord
  * getLiveStatistics
  * getGiftConfig
  * getLiveGiftStatistics
  * getAnchorGiftStatistics
  * getUserGiftStatistics

方法

createRoom

  * public void createRoom(QCreateRoomParam param,QLiveCallBack callBack)
  * 创建房间

Parameters

    * param: [QCreateRoomParam](https://developer.qiniu.com/lowcode/api/12057/QCreateRoomParam)

创建房间参数

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

deleteRoom

  * public void deleteRoom(String roomID,QLiveCallBack callBack)
  * 删除房间

Parameters

    * roomID: String 

房间ID

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

getRoomInfo

  * public void getRoomInfo(String roomID,QLiveCallBack callBack)
  * 根据ID获取房间信息

Parameters

    * roomID: String 

房间ID

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

listRoom

  * public void listRoom(int pageNumber,int pageSize,QLiveCallBack callBack)
  * 房间列表

Parameters

    * pageNumber: int 

    * pageSize: int 

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

liveRecord

  * public void liveRecord(int pageNumber,int pageSize,QLiveCallBack callBack)
  * 我的直播记录

Parameters

    * pageNumber: int 

    * pageSize: int 

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

getLiveStatistics

  * public void getLiveStatistics(String roomID,QLiveCallBack callBack)
  * 获取直播间数据统计

Parameters

    * roomID: String 

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

getGiftConfig

  * public void getGiftConfig(int type,QLiveCallBack callback)
  * 获取礼物配置

Parameters

    * type: int 

礼物类型 -1代表全部

    * callback: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

getLiveGiftStatistics

  * public void getLiveGiftStatistics(String roomID,int pageNumber,int pageSize,QLiveCallBack callback)
  * 获取直播间礼物统计

Parameters

    * roomID: String 

    * pageNumber: int 

    * pageSize: int 

    * callback: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

getAnchorGiftStatistics

  * public void getAnchorGiftStatistics(int pageNumber,int pageSize,QLiveCallBack callback)
  * 获取主播礼物统计

Parameters

    * pageNumber: int 

    * pageSize: int 

    * callback: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

getUserGiftStatistics

  * public void getUserGiftStatistics(int pageNumber,int pageSize,QLiveCallBack callback)
  * 获取用户礼物统计

Parameters

    * pageNumber: int 

    * pageSize: int 

    * callback: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

Returns void

以上内容是否对您有帮助？