tencentcloud-sdk-yinsuda 3.0.488 → 3.0.489

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f5a643930dfc20971ddc50952ee485dbe5bf6a9
4
- data.tar.gz: a9743b39822658c3904b48ec6dc5061599539be2
3
+ metadata.gz: 5c2e49651c30b4bfbf7fecb6b842e89cf8831f7f
4
+ data.tar.gz: b7d438085c2e1290d1314335cd002ccb819ef030
5
5
  SHA512:
6
- metadata.gz: 84166bf5363113aebb2f2a485b0e757b8c776aa18008df35c9435d6b57cc2cd1d2c43e27a71796f3cb1afed132d63c363e95a134cd7628e72a8dc8e31c48b116
7
- data.tar.gz: 3aae74cf43a472d89703f7e0d45401be5560688d89695c587927c16569cc4adc3fefc14ea3aeb71dc821f63ddf13d131ab93ccc5e9bdef9ac019ee1d5fbc9f55
6
+ metadata.gz: fce1bdf5b218ebbfa85adec45d3456e9ff7003ce33c1657579fb96e23f0db2cfd62fc5c16cd78afd79924648ee999ca38d0dd7a37bb8054e0fda7be0b676b964
7
+ data.tar.gz: de66b56f4f90fcf3db0e17ad46afe395cfe215594e06749da3a6fb3dbb9ae0ab71ea5aacd488e72724ffab4759ab818ae32cd46beeb823a514e61fc509cd2d88
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.488
1
+ 3.0.489
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 申请合唱相关信息,用于标记用户的演唱是在合唱场景下。
33
+
34
+ # @param request: Request instance for ApplyChorus.
35
+ # @type request: :class:`Tencentcloud::yinsuda::V20220527::ApplyChorusRequest`
36
+ # @rtype: :class:`Tencentcloud::yinsuda::V20220527::ApplyChorusResponse`
37
+ def ApplyChorus(request)
38
+ body = send_request('ApplyChorus', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ApplyChorusResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 批量获取歌曲详细信息,包括:歌词下载链接、播放凭证、音高数据下载链接信息等。
33
57
 
34
58
  # @param request: Request instance for BatchDescribeKTVMusicDetails.
@@ -41,6 +41,62 @@ module TencentCloud
41
41
  end
42
42
  end
43
43
 
44
+ # ApplyChorus请求参数结构体
45
+ class ApplyChorusRequest < TencentCloud::Common::AbstractModel
46
+ # @param AppName: 应用名称。
47
+ # @type AppName: String
48
+ # @param UserId: 用户标识。
49
+ # @type UserId: String
50
+ # @param RoomId: 房间号。
51
+ # @type RoomId: String
52
+ # @param MusicId: 歌曲 Id。
53
+ # @type MusicId: String
54
+ # @param MaxChorusNum: 最大合唱人数,默认值为 8,最大值为 20。
55
+ # @type MaxChorusNum: Integer
56
+ # @param ChorusUserIds: 合唱用户标识列表。
57
+ # @type ChorusUserIds: Array
58
+
59
+ attr_accessor :AppName, :UserId, :RoomId, :MusicId, :MaxChorusNum, :ChorusUserIds
60
+
61
+ def initialize(appname=nil, userid=nil, roomid=nil, musicid=nil, maxchorusnum=nil, chorususerids=nil)
62
+ @AppName = appname
63
+ @UserId = userid
64
+ @RoomId = roomid
65
+ @MusicId = musicid
66
+ @MaxChorusNum = maxchorusnum
67
+ @ChorusUserIds = chorususerids
68
+ end
69
+
70
+ def deserialize(params)
71
+ @AppName = params['AppName']
72
+ @UserId = params['UserId']
73
+ @RoomId = params['RoomId']
74
+ @MusicId = params['MusicId']
75
+ @MaxChorusNum = params['MaxChorusNum']
76
+ @ChorusUserIds = params['ChorusUserIds']
77
+ end
78
+ end
79
+
80
+ # ApplyChorus返回参数结构体
81
+ class ApplyChorusResponse < TencentCloud::Common::AbstractModel
82
+ # @param ChorusToken: 合唱 Token。
83
+ # @type ChorusToken: String
84
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
85
+ # @type RequestId: String
86
+
87
+ attr_accessor :ChorusToken, :RequestId
88
+
89
+ def initialize(chorustoken=nil, requestid=nil)
90
+ @ChorusToken = chorustoken
91
+ @RequestId = requestid
92
+ end
93
+
94
+ def deserialize(params)
95
+ @ChorusToken = params['ChorusToken']
96
+ @RequestId = params['RequestId']
97
+ end
98
+ end
99
+
44
100
  # BatchDescribeKTVMusicDetails请求参数结构体
45
101
  class BatchDescribeKTVMusicDetailsRequest < TencentCloud::Common::AbstractModel
46
102
  # @param AppName: 应用名称。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-yinsuda
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.488
4
+ version: 3.0.489
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common