Class: TencentCloud::Lcic::V20220817::EventDataInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20220817/models.rb

Overview

房间事件对应的信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(roomid = nil, userid = nil, device = nil, duration = nil, recordsize = nil, recordurl = nil, reason = nil) ⇒ EventDataInfo

Returns a new instance of EventDataInfo.



3233
3234
3235
3236
3237
3238
3239
3240
3241
# File 'lib/v20220817/models.rb', line 3233

def initialize(roomid=nil, userid=nil, device=nil, duration=nil, recordsize=nil, recordurl=nil, reason=nil)
  @RoomId = roomid
  @UserId = userid
  @Device = device
  @Duration = duration
  @RecordSize = recordsize
  @RecordUrl = recordurl
  @Reason = reason
end

Instance Attribute Details

#DeviceObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def Device
  @Device
end

#DurationObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def Duration
  @Duration
end

#ReasonObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def Reason
  @Reason
end

#RecordSizeObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def RecordSize
  @RecordSize
end

#RecordUrlObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def RecordUrl
  @RecordUrl
end

#RoomIdObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def RoomId
  @RoomId
end

#UserIdObject

Parameters:

  • RoomId:

    事件发生的房间号。

  • UserId:

    事件发生的用户。

  • Device:

    用户设备类型。0: Unknown; 1: Windows; 2: macOS; 3: Android; 4: iOS; 5: Web; 6: Mobile webpage; 7: Weixin Mini Program.

  • Duration:

    录制时长。单位:秒

  • RecordSize:

    录制文件大小

  • RecordUrl:

    录制url

  • Reason:

    MemberQuit事件,对应Reason(0:主动退出 1:被踢 2:永久被踢 4:失去心跳下线 5:房间结束,成员自动退出)



3231
3232
3233
# File 'lib/v20220817/models.rb', line 3231

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



3243
3244
3245
3246
3247
3248
3249
3250
3251
# File 'lib/v20220817/models.rb', line 3243

def deserialize(params)
  @RoomId = params['RoomId']
  @UserId = params['UserId']
  @Device = params['Device']
  @Duration = params['Duration']
  @RecordSize = params['RecordSize']
  @RecordUrl = params['RecordUrl']
  @Reason = params['Reason']
end