Class: TencentCloud::Npp::V20190823::RreCallerHandle

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

Overview

结构体,主叫呼叫预处理操作,根据不同操作确认是否呼通被叫。如需使用,本结构体需要与 keyList 结构体配合使用,此时这两个参数都为必填项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(readprompt = nil, interruptprompt = nil, keylist = nil, repeattimes = nil, keypressurl = nil, promptgender = nil) ⇒ RreCallerHandle

Returns a new instance of RreCallerHandle.



788
789
790
791
792
793
794
795
# File 'lib/v20190823/models.rb', line 788

def initialize(readprompt=nil, interruptprompt=nil, keylist=nil, repeattimes=nil, keypressurl=nil, promptgender=nil)
  @ReadPrompt = readprompt
  @InterruptPrompt = interruptprompt
  @KeyList = keylist
  @RepeatTimes = repeattimes
  @KeyPressUrl = keypressurl
  @PromptGender = promptgender
end

Instance Attribute Details

#InterruptPromptObject

Parameters:

  • ReadPrompt:

    呼叫主叫以后,给主叫用户的语音提示,播放该提示时用户所有按键无效

  • InterruptPrompt:

    可中断提示,播放该提示时,用户可以按键

  • KeyList:

    对应按键操作,如果没有结构体里定义按键操作用户按键以后都从 interruptPrompt 重新播放

  • RepeatTimes:

    最多重复播放次数,超过该次数拆线

  • KeyPressUrl:

    用户按键回调通知地址,如果为空不回调

  • PromptGender:

    提示音男声女声:1女声,2男声。默认女声



786
787
788
# File 'lib/v20190823/models.rb', line 786

def InterruptPrompt
  @InterruptPrompt
end

#KeyListObject

Parameters:

  • ReadPrompt:

    呼叫主叫以后,给主叫用户的语音提示,播放该提示时用户所有按键无效

  • InterruptPrompt:

    可中断提示,播放该提示时,用户可以按键

  • KeyList:

    对应按键操作,如果没有结构体里定义按键操作用户按键以后都从 interruptPrompt 重新播放

  • RepeatTimes:

    最多重复播放次数,超过该次数拆线

  • KeyPressUrl:

    用户按键回调通知地址,如果为空不回调

  • PromptGender:

    提示音男声女声:1女声,2男声。默认女声



786
787
788
# File 'lib/v20190823/models.rb', line 786

def KeyList
  @KeyList
end

#KeyPressUrlObject

Parameters:

  • ReadPrompt:

    呼叫主叫以后,给主叫用户的语音提示,播放该提示时用户所有按键无效

  • InterruptPrompt:

    可中断提示,播放该提示时,用户可以按键

  • KeyList:

    对应按键操作,如果没有结构体里定义按键操作用户按键以后都从 interruptPrompt 重新播放

  • RepeatTimes:

    最多重复播放次数,超过该次数拆线

  • KeyPressUrl:

    用户按键回调通知地址,如果为空不回调

  • PromptGender:

    提示音男声女声:1女声,2男声。默认女声



786
787
788
# File 'lib/v20190823/models.rb', line 786

def KeyPressUrl
  @KeyPressUrl
end

#PromptGenderObject

Parameters:

  • ReadPrompt:

    呼叫主叫以后,给主叫用户的语音提示,播放该提示时用户所有按键无效

  • InterruptPrompt:

    可中断提示,播放该提示时,用户可以按键

  • KeyList:

    对应按键操作,如果没有结构体里定义按键操作用户按键以后都从 interruptPrompt 重新播放

  • RepeatTimes:

    最多重复播放次数,超过该次数拆线

  • KeyPressUrl:

    用户按键回调通知地址,如果为空不回调

  • PromptGender:

    提示音男声女声:1女声,2男声。默认女声



786
787
788
# File 'lib/v20190823/models.rb', line 786

def PromptGender
  @PromptGender
end

#ReadPromptObject

Parameters:

  • ReadPrompt:

    呼叫主叫以后,给主叫用户的语音提示,播放该提示时用户所有按键无效

  • InterruptPrompt:

    可中断提示,播放该提示时,用户可以按键

  • KeyList:

    对应按键操作,如果没有结构体里定义按键操作用户按键以后都从 interruptPrompt 重新播放

  • RepeatTimes:

    最多重复播放次数,超过该次数拆线

  • KeyPressUrl:

    用户按键回调通知地址,如果为空不回调

  • PromptGender:

    提示音男声女声:1女声,2男声。默认女声



786
787
788
# File 'lib/v20190823/models.rb', line 786

def ReadPrompt
  @ReadPrompt
end

#RepeatTimesObject

Parameters:

  • ReadPrompt:

    呼叫主叫以后,给主叫用户的语音提示,播放该提示时用户所有按键无效

  • InterruptPrompt:

    可中断提示,播放该提示时,用户可以按键

  • KeyList:

    对应按键操作,如果没有结构体里定义按键操作用户按键以后都从 interruptPrompt 重新播放

  • RepeatTimes:

    最多重复播放次数,超过该次数拆线

  • KeyPressUrl:

    用户按键回调通知地址,如果为空不回调

  • PromptGender:

    提示音男声女声:1女声,2男声。默认女声



786
787
788
# File 'lib/v20190823/models.rb', line 786

def RepeatTimes
  @RepeatTimes
end

Instance Method Details

#deserialize(params) ⇒ Object



797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
# File 'lib/v20190823/models.rb', line 797

def deserialize(params)
  @ReadPrompt = params['ReadPrompt']
  @InterruptPrompt = params['InterruptPrompt']
  unless params['KeyList'].nil?
    @KeyList = []
    params['KeyList'].each do |i|
      keylist_tmp = KeyList.new
      keylist_tmp.deserialize(i)
      @KeyList << keylist_tmp
    end
  end
  @RepeatTimes = params['RepeatTimes']
  @KeyPressUrl = params['KeyPressUrl']
  @PromptGender = params['PromptGender']
end