Class: TencentCloud::Mps::V20190612::SubtitleTransResultItem

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

Overview

字幕翻译输出结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, transsrc = nil, transdst = nil, path = nil) ⇒ SubtitleTransResultItem

Returns a new instance of SubtitleTransResultItem.



29595
29596
29597
29598
29599
29600
# File 'lib/v20190612/models.rb', line 29595

def initialize(status=nil, transsrc=nil, transdst=nil, path=nil)
  @Status = status
  @TransSrc = transsrc
  @TransDst = transdst
  @Path = path
end

Instance Attribute Details

#PathObject

  • Success
  • Error

Parameters:

  • Status:

    翻译标识:

  • TransSrc:

    源语言(如"en")

  • TransDst:

    目标语言(如"zh")

  • Path:

    字幕文件地址



29593
29594
29595
# File 'lib/v20190612/models.rb', line 29593

def Path
  @Path
end

#StatusObject

  • Success
  • Error

Parameters:

  • Status:

    翻译标识:

  • TransSrc:

    源语言(如"en")

  • TransDst:

    目标语言(如"zh")

  • Path:

    字幕文件地址



29593
29594
29595
# File 'lib/v20190612/models.rb', line 29593

def Status
  @Status
end

#TransDstObject

  • Success
  • Error

Parameters:

  • Status:

    翻译标识:

  • TransSrc:

    源语言(如"en")

  • TransDst:

    目标语言(如"zh")

  • Path:

    字幕文件地址



29593
29594
29595
# File 'lib/v20190612/models.rb', line 29593

def TransDst
  @TransDst
end

#TransSrcObject

  • Success
  • Error

Parameters:

  • Status:

    翻译标识:

  • TransSrc:

    源语言(如"en")

  • TransDst:

    目标语言(如"zh")

  • Path:

    字幕文件地址



29593
29594
29595
# File 'lib/v20190612/models.rb', line 29593

def TransSrc
  @TransSrc
end

Instance Method Details

#deserialize(params) ⇒ Object



29602
29603
29604
29605
29606
29607
# File 'lib/v20190612/models.rb', line 29602

def deserialize(params)
  @Status = params['Status']
  @TransSrc = params['TransSrc']
  @TransDst = params['TransDst']
  @Path = params['Path']
end