tencentcloud-sdk-lcic 3.0.517 → 3.0.518
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220817/client.rb +24 -0
- data/lib/v20220817/models.rb +141 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 895208d8f35514bd49d92f5e4b01a89fcd31bea2
|
4
|
+
data.tar.gz: 3745c0a7aad93ac8c4706df8a12f143e33b96d6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13187c6618531b85124b5feb5f733b3668fde20e51e8980a6e7de2574d6d6c744fc1652fef6195a752b7fe4d1d58a3b9048548d3b18bf9a67bab0f6de66c4413
|
7
|
+
data.tar.gz: d35d0e0d8de351508fcc63b159d2e8b718a217eb0a1032e54dd0a7815b6c5b987c62681ad1af9877b47adda6408b5a0e13e9859a2f2aaeb8644f312ff7c9f928
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.518
|
data/lib/v20220817/client.rb
CHANGED
@@ -725,6 +725,30 @@ module TencentCloud
|
|
725
725
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
726
|
end
|
727
727
|
|
728
|
+
# 获取房间历史消息(房间历史消息保存7天)
|
729
|
+
|
730
|
+
# @param request: Request instance for GetRoomMessage.
|
731
|
+
# @type request: :class:`Tencentcloud::lcic::V20220817::GetRoomMessageRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::lcic::V20220817::GetRoomMessageResponse`
|
733
|
+
def GetRoomMessage(request)
|
734
|
+
body = send_request('GetRoomMessage', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = GetRoomMessageResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
728
752
|
# 获取水印设置
|
729
753
|
|
730
754
|
# @param request: Request instance for GetWatermark.
|
data/lib/v20220817/models.rb
CHANGED
@@ -1557,18 +1557,24 @@ module TencentCloud
|
|
1557
1557
|
# @param RealEndTime: 秒级unix时间戳,实际房间结束时间。
|
1558
1558
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1559
1559
|
# @type RealEndTime: Integer
|
1560
|
+
# @param MessageCount: 房间消息总数。
|
1561
|
+
# @type MessageCount: Integer
|
1562
|
+
# @param MicCount: 房间连麦总数。
|
1563
|
+
# @type MicCount: Integer
|
1560
1564
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1561
1565
|
# @type RequestId: String
|
1562
1566
|
|
1563
|
-
attr_accessor :PeakMemberNumber, :MemberNumber, :Total, :MemberRecords, :RealStartTime, :RealEndTime, :RequestId
|
1567
|
+
attr_accessor :PeakMemberNumber, :MemberNumber, :Total, :MemberRecords, :RealStartTime, :RealEndTime, :MessageCount, :MicCount, :RequestId
|
1564
1568
|
|
1565
|
-
def initialize(peakmembernumber=nil, membernumber=nil, total=nil, memberrecords=nil, realstarttime=nil, realendtime=nil, requestid=nil)
|
1569
|
+
def initialize(peakmembernumber=nil, membernumber=nil, total=nil, memberrecords=nil, realstarttime=nil, realendtime=nil, messagecount=nil, miccount=nil, requestid=nil)
|
1566
1570
|
@PeakMemberNumber = peakmembernumber
|
1567
1571
|
@MemberNumber = membernumber
|
1568
1572
|
@Total = total
|
1569
1573
|
@MemberRecords = memberrecords
|
1570
1574
|
@RealStartTime = realstarttime
|
1571
1575
|
@RealEndTime = realendtime
|
1576
|
+
@MessageCount = messagecount
|
1577
|
+
@MicCount = miccount
|
1572
1578
|
@RequestId = requestid
|
1573
1579
|
end
|
1574
1580
|
|
@@ -1586,6 +1592,8 @@ module TencentCloud
|
|
1586
1592
|
end
|
1587
1593
|
@RealStartTime = params['RealStartTime']
|
1588
1594
|
@RealEndTime = params['RealEndTime']
|
1595
|
+
@MessageCount = params['MessageCount']
|
1596
|
+
@MicCount = params['MicCount']
|
1589
1597
|
@RequestId = params['RequestId']
|
1590
1598
|
end
|
1591
1599
|
end
|
@@ -1776,6 +1784,61 @@ module TencentCloud
|
|
1776
1784
|
end
|
1777
1785
|
end
|
1778
1786
|
|
1787
|
+
# GetRoomMessage请求参数结构体
|
1788
|
+
class GetRoomMessageRequest < TencentCloud::Common::AbstractModel
|
1789
|
+
# @param SdkAppId: 低代码互动课堂的SdkAppId。
|
1790
|
+
# @type SdkAppId: Integer
|
1791
|
+
# @param RoomId: 房间Id。
|
1792
|
+
# @type RoomId: Integer
|
1793
|
+
# @param Seq: 消息序列。获取该序列以前前的消息(不包含该seq消息)
|
1794
|
+
# @type Seq: Integer
|
1795
|
+
# @param Limit: 消息拉取的条数。最大数量不能超过套餐包限制。
|
1796
|
+
# @type Limit: Integer
|
1797
|
+
|
1798
|
+
attr_accessor :SdkAppId, :RoomId, :Seq, :Limit
|
1799
|
+
|
1800
|
+
def initialize(sdkappid=nil, roomid=nil, seq=nil, limit=nil)
|
1801
|
+
@SdkAppId = sdkappid
|
1802
|
+
@RoomId = roomid
|
1803
|
+
@Seq = seq
|
1804
|
+
@Limit = limit
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
def deserialize(params)
|
1808
|
+
@SdkAppId = params['SdkAppId']
|
1809
|
+
@RoomId = params['RoomId']
|
1810
|
+
@Seq = params['Seq']
|
1811
|
+
@Limit = params['Limit']
|
1812
|
+
end
|
1813
|
+
end
|
1814
|
+
|
1815
|
+
# GetRoomMessage返回参数结构体
|
1816
|
+
class GetRoomMessageResponse < TencentCloud::Common::AbstractModel
|
1817
|
+
# @param Messages: 消息列表
|
1818
|
+
# @type Messages: Array
|
1819
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1820
|
+
# @type RequestId: String
|
1821
|
+
|
1822
|
+
attr_accessor :Messages, :RequestId
|
1823
|
+
|
1824
|
+
def initialize(messages=nil, requestid=nil)
|
1825
|
+
@Messages = messages
|
1826
|
+
@RequestId = requestid
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
def deserialize(params)
|
1830
|
+
unless params['Messages'].nil?
|
1831
|
+
@Messages = []
|
1832
|
+
params['Messages'].each do |i|
|
1833
|
+
messagelist_tmp = MessageList.new
|
1834
|
+
messagelist_tmp.deserialize(i)
|
1835
|
+
@Messages << messagelist_tmp
|
1836
|
+
end
|
1837
|
+
end
|
1838
|
+
@RequestId = params['RequestId']
|
1839
|
+
end
|
1840
|
+
end
|
1841
|
+
|
1779
1842
|
# GetWatermark请求参数结构体
|
1780
1843
|
class GetWatermarkRequest < TencentCloud::Common::AbstractModel
|
1781
1844
|
# @param SdkAppId: 低代码互动课堂的SdkAppId。
|
@@ -2015,10 +2078,14 @@ module TencentCloud
|
|
2015
2078
|
# @type Location: String
|
2016
2079
|
# @param Device: 用户设备平台信息。0:unknown 1:windows 2:mac 3:android 4:ios 5:web 6:h5 7:miniprogram (小程序)
|
2017
2080
|
# @type Device: Integer
|
2081
|
+
# @param PerMemberMicCount: 每个成员上麦次数。
|
2082
|
+
# @type PerMemberMicCount: Integer
|
2083
|
+
# @param PerMemberMessageCount: 每个成员发送消息数量。
|
2084
|
+
# @type PerMemberMessageCount: Integer
|
2018
2085
|
|
2019
|
-
attr_accessor :UserId, :UserName, :PresentTime, :Camera, :Mic, :Silence, :AnswerQuestions, :HandUps, :FirstJoinTimestamp, :LastQuitTimestamp, :Rewords, :IPAddress, :Location, :Device
|
2086
|
+
attr_accessor :UserId, :UserName, :PresentTime, :Camera, :Mic, :Silence, :AnswerQuestions, :HandUps, :FirstJoinTimestamp, :LastQuitTimestamp, :Rewords, :IPAddress, :Location, :Device, :PerMemberMicCount, :PerMemberMessageCount
|
2020
2087
|
|
2021
|
-
def initialize(userid=nil, username=nil, presenttime=nil, camera=nil, mic=nil, silence=nil, answerquestions=nil, handups=nil, firstjointimestamp=nil, lastquittimestamp=nil, rewords=nil, ipaddress=nil, location=nil, device=nil)
|
2088
|
+
def initialize(userid=nil, username=nil, presenttime=nil, camera=nil, mic=nil, silence=nil, answerquestions=nil, handups=nil, firstjointimestamp=nil, lastquittimestamp=nil, rewords=nil, ipaddress=nil, location=nil, device=nil, permembermiccount=nil, permembermessagecount=nil)
|
2022
2089
|
@UserId = userid
|
2023
2090
|
@UserName = username
|
2024
2091
|
@PresentTime = presenttime
|
@@ -2033,6 +2100,8 @@ module TencentCloud
|
|
2033
2100
|
@IPAddress = ipaddress
|
2034
2101
|
@Location = location
|
2035
2102
|
@Device = device
|
2103
|
+
@PerMemberMicCount = permembermiccount
|
2104
|
+
@PerMemberMessageCount = permembermessagecount
|
2036
2105
|
end
|
2037
2106
|
|
2038
2107
|
def deserialize(params)
|
@@ -2050,6 +2119,74 @@ module TencentCloud
|
|
2050
2119
|
@IPAddress = params['IPAddress']
|
2051
2120
|
@Location = params['Location']
|
2052
2121
|
@Device = params['Device']
|
2122
|
+
@PerMemberMicCount = params['PerMemberMicCount']
|
2123
|
+
@PerMemberMessageCount = params['PerMemberMessageCount']
|
2124
|
+
end
|
2125
|
+
end
|
2126
|
+
|
2127
|
+
# 单条消息体内容
|
2128
|
+
class MessageItem < TencentCloud::Common::AbstractModel
|
2129
|
+
# @param MessageType: 消息类型。0表示文本消息,1表示图片消息
|
2130
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2131
|
+
# @type MessageType: Integer
|
2132
|
+
# @param TextMessage: 文本消息内容。message type为0时有效。
|
2133
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2134
|
+
# @type TextMessage: String
|
2135
|
+
# @param ImageMessage: 图片消息URL。 message type为1时有效。
|
2136
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2137
|
+
# @type ImageMessage: String
|
2138
|
+
|
2139
|
+
attr_accessor :MessageType, :TextMessage, :ImageMessage
|
2140
|
+
|
2141
|
+
def initialize(messagetype=nil, textmessage=nil, imagemessage=nil)
|
2142
|
+
@MessageType = messagetype
|
2143
|
+
@TextMessage = textmessage
|
2144
|
+
@ImageMessage = imagemessage
|
2145
|
+
end
|
2146
|
+
|
2147
|
+
def deserialize(params)
|
2148
|
+
@MessageType = params['MessageType']
|
2149
|
+
@TextMessage = params['TextMessage']
|
2150
|
+
@ImageMessage = params['ImageMessage']
|
2151
|
+
end
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
# 历史消息列表
|
2155
|
+
class MessageList < TencentCloud::Common::AbstractModel
|
2156
|
+
# @param Timestamp: 消息时间戳
|
2157
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2158
|
+
# @type Timestamp: Integer
|
2159
|
+
# @param FromAccount: 消息发送者
|
2160
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2161
|
+
# @type FromAccount: String
|
2162
|
+
# @param Seq: 消息序列号,当前课堂内唯一且单调递增
|
2163
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2164
|
+
# @type Seq: Integer
|
2165
|
+
# @param MessageBody: 历史消息列表
|
2166
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2167
|
+
# @type MessageBody: Array
|
2168
|
+
|
2169
|
+
attr_accessor :Timestamp, :FromAccount, :Seq, :MessageBody
|
2170
|
+
|
2171
|
+
def initialize(timestamp=nil, fromaccount=nil, seq=nil, messagebody=nil)
|
2172
|
+
@Timestamp = timestamp
|
2173
|
+
@FromAccount = fromaccount
|
2174
|
+
@Seq = seq
|
2175
|
+
@MessageBody = messagebody
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
def deserialize(params)
|
2179
|
+
@Timestamp = params['Timestamp']
|
2180
|
+
@FromAccount = params['FromAccount']
|
2181
|
+
@Seq = params['Seq']
|
2182
|
+
unless params['MessageBody'].nil?
|
2183
|
+
@MessageBody = []
|
2184
|
+
params['MessageBody'].each do |i|
|
2185
|
+
messageitem_tmp = MessageItem.new
|
2186
|
+
messageitem_tmp.deserialize(i)
|
2187
|
+
@MessageBody << messageitem_tmp
|
2188
|
+
end
|
2189
|
+
end
|
2053
2190
|
end
|
2054
2191
|
end
|
2055
2192
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-lcic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.518
|
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-02-
|
11
|
+
date: 2023-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|