Class: TencentCloud::Iotexplorer::V20190423::TalkIdleDetectionConfigInfo

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

Overview

空闲检测信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled = nil, timeoutseconds = nil, maxretries = nil, idleresponses = nil) ⇒ TalkIdleDetectionConfigInfo

Returns a new instance of TalkIdleDetectionConfigInfo.



13439
13440
13441
13442
13443
13444
# File 'lib/v20190423/models.rb', line 13439

def initialize(enabled=nil, timeoutseconds=nil, maxretries=nil, idleresponses=nil)
  @Enabled = enabled
  @TimeoutSeconds = timeoutseconds
  @MaxRetries = maxretries
  @IdleResponses = idleresponses
end

Instance Attribute Details

#EnabledObject

Parameters:

  • Enabled:

    是否启用

  • TimeoutSeconds:

    用户沉默多少秒后触发空闲回调

  • MaxRetries:

    最大重试次数(1-3)

  • IdleResponses:

    空闲响应



13437
13438
13439
# File 'lib/v20190423/models.rb', line 13437

def Enabled
  @Enabled
end

#IdleResponsesObject

Parameters:

  • Enabled:

    是否启用

  • TimeoutSeconds:

    用户沉默多少秒后触发空闲回调

  • MaxRetries:

    最大重试次数(1-3)

  • IdleResponses:

    空闲响应



13437
13438
13439
# File 'lib/v20190423/models.rb', line 13437

def IdleResponses
  @IdleResponses
end

#MaxRetriesObject

Parameters:

  • Enabled:

    是否启用

  • TimeoutSeconds:

    用户沉默多少秒后触发空闲回调

  • MaxRetries:

    最大重试次数(1-3)

  • IdleResponses:

    空闲响应



13437
13438
13439
# File 'lib/v20190423/models.rb', line 13437

def MaxRetries
  @MaxRetries
end

#TimeoutSecondsObject

Parameters:

  • Enabled:

    是否启用

  • TimeoutSeconds:

    用户沉默多少秒后触发空闲回调

  • MaxRetries:

    最大重试次数(1-3)

  • IdleResponses:

    空闲响应



13437
13438
13439
# File 'lib/v20190423/models.rb', line 13437

def TimeoutSeconds
  @TimeoutSeconds
end

Instance Method Details

#deserialize(params) ⇒ Object



13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
# File 'lib/v20190423/models.rb', line 13446

def deserialize(params)
  @Enabled = params['Enabled']
  @TimeoutSeconds = params['TimeoutSeconds']
  @MaxRetries = params['MaxRetries']
  unless params['IdleResponses'].nil?
    @IdleResponses = []
    params['IdleResponses'].each do |i|
      idleresponseinfo_tmp = IdleResponseInfo.new
      idleresponseinfo_tmp.deserialize(i)
      @IdleResponses << idleresponseinfo_tmp
    end
  end
end