tencentcloud-sdk-lcic 3.0.679 → 3.0.680

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: 7337c65e493dfc54719f56ed3326687903a4cb26
4
- data.tar.gz: e0d1173491459928f4f4e8a732a30a42fca1348d
3
+ metadata.gz: 82531355f8e34e18ba046679a2aeff869e6e186e
4
+ data.tar.gz: 93b04e3a45362dc92286c39f6ce1b063c203dfd7
5
5
  SHA512:
6
- metadata.gz: b6dde7ace4fb060a11e8325cbb3c923b5aa3be9a4b37c71e760060efa263a849d611617c28bc172265559a0c6151a49cf758570657129dc7da2ecc8b90e7a5c3
7
- data.tar.gz: a64d221e06cd807aaf909fad7f62737900159c46c66ae7ef513c82cef53065eff96e0eed9ef2b9ae9587b5a0770ce69e804d660cc98c070bfd5a6fafe01e907f
6
+ metadata.gz: 31bde5c12d8da5ae7b72f0b801100a40c2d38d287f4fdaa00aaefc1d7586f388ac01bde2e6ccf4d82943f3e938591a6bb670a87e7d21df0c050081df53969b84
7
+ data.tar.gz: 40af960af6f0e562fc6f98b49fa44e0a9cceb2855cf65c7dc199a404dfdeea0368a58760244cc3291456baf209261991dca7650dd71c0d6431e18cdd21643a48
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.679
1
+ 3.0.680
@@ -1279,6 +1279,54 @@ module TencentCloud
1279
1279
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1280
1280
  end
1281
1281
 
1282
+ # 1、按照指定身份发送消息,目前支持表情消息、图片消息、文本消息。
1283
+
1284
+ # @param request: Request instance for SendRoomNormalMessage.
1285
+ # @type request: :class:`Tencentcloud::lcic::V20220817::SendRoomNormalMessageRequest`
1286
+ # @rtype: :class:`Tencentcloud::lcic::V20220817::SendRoomNormalMessageResponse`
1287
+ def SendRoomNormalMessage(request)
1288
+ body = send_request('SendRoomNormalMessage', request.serialize)
1289
+ response = JSON.parse(body)
1290
+ if response['Response'].key?('Error') == false
1291
+ model = SendRoomNormalMessageResponse.new
1292
+ model.deserialize(response['Response'])
1293
+ model
1294
+ else
1295
+ code = response['Response']['Error']['Code']
1296
+ message = response['Response']['Error']['Message']
1297
+ reqid = response['Response']['RequestId']
1298
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1299
+ end
1300
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1301
+ raise e
1302
+ rescue StandardError => e
1303
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1304
+ end
1305
+
1306
+ # App 管理员可以通过该接口在群组中发送通知、公告等。目前仅支持文本消息。
1307
+
1308
+ # @param request: Request instance for SendRoomNotificationMessage.
1309
+ # @type request: :class:`Tencentcloud::lcic::V20220817::SendRoomNotificationMessageRequest`
1310
+ # @rtype: :class:`Tencentcloud::lcic::V20220817::SendRoomNotificationMessageResponse`
1311
+ def SendRoomNotificationMessage(request)
1312
+ body = send_request('SendRoomNotificationMessage', request.serialize)
1313
+ response = JSON.parse(body)
1314
+ if response['Response'].key?('Error') == false
1315
+ model = SendRoomNotificationMessageResponse.new
1316
+ model.deserialize(response['Response'])
1317
+ model
1318
+ else
1319
+ code = response['Response']['Error']['Code']
1320
+ message = response['Response']['Error']['Message']
1321
+ reqid = response['Response']['RequestId']
1322
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1323
+ end
1324
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1325
+ raise e
1326
+ rescue StandardError => e
1327
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1328
+ end
1329
+
1282
1330
  # 设置应用的自定义内容,包括应用图标,自定义的代码等。如果已存在,则为更新。更新js、css内容后,要生效也需要调用该接口
1283
1331
 
1284
1332
  # @param request: Request instance for SetAppCustomContent.
@@ -2610,6 +2610,26 @@ module TencentCloud
2610
2610
  end
2611
2611
  end
2612
2612
 
2613
+ # 表情消息
2614
+ class FaceMsgContent < TencentCloud::Common::AbstractModel
2615
+ # @param Index: 表情索引,用户自定义。
2616
+ # @type Index: Integer
2617
+ # @param Data: 额外数据。
2618
+ # @type Data: String
2619
+
2620
+ attr_accessor :Index, :Data
2621
+
2622
+ def initialize(index=nil, data=nil)
2623
+ @Index = index
2624
+ @Data = data
2625
+ end
2626
+
2627
+ def deserialize(params)
2628
+ @Index = params['Index']
2629
+ @Data = params['Data']
2630
+ end
2631
+ end
2632
+
2613
2633
  # GetRoomEvent请求参数结构体
2614
2634
  class GetRoomEventRequest < TencentCloud::Common::AbstractModel
2615
2635
  # @param RoomId: 房间Id。
@@ -2932,6 +2952,77 @@ module TencentCloud
2932
2952
  end
2933
2953
  end
2934
2954
 
2955
+ # 单张图片信息
2956
+ class ImageInfo < TencentCloud::Common::AbstractModel
2957
+ # @param Type: 图片类型:
2958
+ # 1-原图
2959
+ # 2-大图
2960
+ # 3-缩略图
2961
+ # @type Type: Integer
2962
+ # @param Size: 图片数据大小,单位:字节。
2963
+ # @type Size: Integer
2964
+ # @param Width: 图片宽度,单位为像素。
2965
+ # @type Width: Integer
2966
+ # @param Height: 图片高度,单位为像素。
2967
+ # @type Height: Integer
2968
+ # @param URL: 图片下载地址。
2969
+ # @type URL: String
2970
+
2971
+ attr_accessor :Type, :Size, :Width, :Height, :URL
2972
+
2973
+ def initialize(type=nil, size=nil, width=nil, height=nil, url=nil)
2974
+ @Type = type
2975
+ @Size = size
2976
+ @Width = width
2977
+ @Height = height
2978
+ @URL = url
2979
+ end
2980
+
2981
+ def deserialize(params)
2982
+ @Type = params['Type']
2983
+ @Size = params['Size']
2984
+ @Width = params['Width']
2985
+ @Height = params['Height']
2986
+ @URL = params['URL']
2987
+ end
2988
+ end
2989
+
2990
+ # 图片消息
2991
+ class ImageMsgContent < TencentCloud::Common::AbstractModel
2992
+ # @param UUID: 图片的唯一标识,客户端用于索引图片的键值。
2993
+ # @type UUID: String
2994
+ # @param ImageFormat: 图片格式。
2995
+ # JPG = 1
2996
+ # GIF = 2
2997
+ # PNG = 3
2998
+ # BMP = 4
2999
+ # 其他 = 255
3000
+ # @type ImageFormat: Integer
3001
+ # @param ImageInfoList: 图片信息
3002
+ # @type ImageInfoList: Array
3003
+
3004
+ attr_accessor :UUID, :ImageFormat, :ImageInfoList
3005
+
3006
+ def initialize(uuid=nil, imageformat=nil, imageinfolist=nil)
3007
+ @UUID = uuid
3008
+ @ImageFormat = imageformat
3009
+ @ImageInfoList = imageinfolist
3010
+ end
3011
+
3012
+ def deserialize(params)
3013
+ @UUID = params['UUID']
3014
+ @ImageFormat = params['ImageFormat']
3015
+ unless params['ImageInfoList'].nil?
3016
+ @ImageInfoList = []
3017
+ params['ImageInfoList'].each do |i|
3018
+ imageinfo_tmp = ImageInfo.new
3019
+ imageinfo_tmp.deserialize(i)
3020
+ @ImageInfoList << imageinfo_tmp
3021
+ end
3022
+ end
3023
+ end
3024
+ end
3025
+
2935
3026
  # KickUserFromRoom请求参数结构体
2936
3027
  class KickUserFromRoomRequest < TencentCloud::Common::AbstractModel
2937
3028
  # @param RoomId: 房间Id。
@@ -3486,6 +3577,46 @@ module TencentCloud
3486
3577
  end
3487
3578
  end
3488
3579
 
3580
+ # 自定义消息结构
3581
+ class MsgBody < TencentCloud::Common::AbstractModel
3582
+ # @param MsgType: TIM 消息对象类型,目前支持的消息对象包括:
3583
+ # TIMTextElem(文本消息)
3584
+ # TIMFaceElem(表情消息)
3585
+ # TIMImageElem(图像消息)
3586
+ # @type MsgType: String
3587
+ # @param TextMsgContent: 文本消息,当MsgType 为TIMTextElem(文本消息)必选。
3588
+ # @type TextMsgContent: :class:`Tencentcloud::Lcic.v20220817.models.TextMsgContent`
3589
+ # @param FaceMsgContent: 表情消息,当MsgType 为TIMFaceElem(表情消息)必选。
3590
+ # @type FaceMsgContent: :class:`Tencentcloud::Lcic.v20220817.models.FaceMsgContent`
3591
+ # @param ImageMsgContent: 图像消息,当MsgType为TIMImageElem(图像消息)必选。
3592
+ # @type ImageMsgContent: :class:`Tencentcloud::Lcic.v20220817.models.ImageMsgContent`
3593
+
3594
+ attr_accessor :MsgType, :TextMsgContent, :FaceMsgContent, :ImageMsgContent
3595
+
3596
+ def initialize(msgtype=nil, textmsgcontent=nil, facemsgcontent=nil, imagemsgcontent=nil)
3597
+ @MsgType = msgtype
3598
+ @TextMsgContent = textmsgcontent
3599
+ @FaceMsgContent = facemsgcontent
3600
+ @ImageMsgContent = imagemsgcontent
3601
+ end
3602
+
3603
+ def deserialize(params)
3604
+ @MsgType = params['MsgType']
3605
+ unless params['TextMsgContent'].nil?
3606
+ @TextMsgContent = TextMsgContent.new
3607
+ @TextMsgContent.deserialize(params['TextMsgContent'])
3608
+ end
3609
+ unless params['FaceMsgContent'].nil?
3610
+ @FaceMsgContent = FaceMsgContent.new
3611
+ @FaceMsgContent.deserialize(params['FaceMsgContent'])
3612
+ end
3613
+ unless params['ImageMsgContent'].nil?
3614
+ @ImageMsgContent = ImageMsgContent.new
3615
+ @ImageMsgContent.deserialize(params['ImageMsgContent'])
3616
+ end
3617
+ end
3618
+ end
3619
+
3489
3620
  # 房间问答问题详情
3490
3621
  class QuestionInfo < TencentCloud::Common::AbstractModel
3491
3622
  # @param QuestionId: 问题ID
@@ -3793,6 +3924,101 @@ module TencentCloud
3793
3924
  end
3794
3925
  end
3795
3926
 
3927
+ # SendRoomNormalMessage请求参数结构体
3928
+ class SendRoomNormalMessageRequest < TencentCloud::Common::AbstractModel
3929
+ # @param SdkAppId: 低代码互动课堂的SdkAppId。
3930
+ # @type SdkAppId: Integer
3931
+ # @param RoomId: 房间ID。
3932
+ # @type RoomId: Integer
3933
+ # @param FromAccount: 管理员指定消息发送方账号(若需设置 FromAccount 信息,则该参数取值不能为空)
3934
+ # @type FromAccount: String
3935
+ # @param MsgBody: 自定义消息
3936
+ # @type MsgBody: Array
3937
+ # @param CloudCustomData: 消息自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到)。
3938
+ # @type CloudCustomData: String
3939
+
3940
+ attr_accessor :SdkAppId, :RoomId, :FromAccount, :MsgBody, :CloudCustomData
3941
+
3942
+ def initialize(sdkappid=nil, roomid=nil, fromaccount=nil, msgbody=nil, cloudcustomdata=nil)
3943
+ @SdkAppId = sdkappid
3944
+ @RoomId = roomid
3945
+ @FromAccount = fromaccount
3946
+ @MsgBody = msgbody
3947
+ @CloudCustomData = cloudcustomdata
3948
+ end
3949
+
3950
+ def deserialize(params)
3951
+ @SdkAppId = params['SdkAppId']
3952
+ @RoomId = params['RoomId']
3953
+ @FromAccount = params['FromAccount']
3954
+ unless params['MsgBody'].nil?
3955
+ @MsgBody = []
3956
+ params['MsgBody'].each do |i|
3957
+ msgbody_tmp = MsgBody.new
3958
+ msgbody_tmp.deserialize(i)
3959
+ @MsgBody << msgbody_tmp
3960
+ end
3961
+ end
3962
+ @CloudCustomData = params['CloudCustomData']
3963
+ end
3964
+ end
3965
+
3966
+ # SendRoomNormalMessage返回参数结构体
3967
+ class SendRoomNormalMessageResponse < TencentCloud::Common::AbstractModel
3968
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3969
+ # @type RequestId: String
3970
+
3971
+ attr_accessor :RequestId
3972
+
3973
+ def initialize(requestid=nil)
3974
+ @RequestId = requestid
3975
+ end
3976
+
3977
+ def deserialize(params)
3978
+ @RequestId = params['RequestId']
3979
+ end
3980
+ end
3981
+
3982
+ # SendRoomNotificationMessage请求参数结构体
3983
+ class SendRoomNotificationMessageRequest < TencentCloud::Common::AbstractModel
3984
+ # @param SdkAppId: 低代码互动课堂的SdkAppId。
3985
+ # @type SdkAppId: Integer
3986
+ # @param RoomId: 房间ID。
3987
+ # @type RoomId: Integer
3988
+ # @param MsgContent: 消息。
3989
+ # @type MsgContent: String
3990
+
3991
+ attr_accessor :SdkAppId, :RoomId, :MsgContent
3992
+
3993
+ def initialize(sdkappid=nil, roomid=nil, msgcontent=nil)
3994
+ @SdkAppId = sdkappid
3995
+ @RoomId = roomid
3996
+ @MsgContent = msgcontent
3997
+ end
3998
+
3999
+ def deserialize(params)
4000
+ @SdkAppId = params['SdkAppId']
4001
+ @RoomId = params['RoomId']
4002
+ @MsgContent = params['MsgContent']
4003
+ end
4004
+ end
4005
+
4006
+ # SendRoomNotificationMessage返回参数结构体
4007
+ class SendRoomNotificationMessageResponse < TencentCloud::Common::AbstractModel
4008
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4009
+ # @type RequestId: String
4010
+
4011
+ attr_accessor :RequestId
4012
+
4013
+ def initialize(requestid=nil)
4014
+ @RequestId = requestid
4015
+ end
4016
+
4017
+ def deserialize(params)
4018
+ @RequestId = params['RequestId']
4019
+ end
4020
+ end
4021
+
3796
4022
  # SetAppCustomContent请求参数结构体
3797
4023
  class SetAppCustomContentRequest < TencentCloud::Common::AbstractModel
3798
4024
  # @param CustomContent: 自定义内容。
@@ -3974,6 +4200,22 @@ module TencentCloud
3974
4200
  end
3975
4201
  end
3976
4202
 
4203
+ # 文本消息
4204
+ class TextMsgContent < TencentCloud::Common::AbstractModel
4205
+ # @param Text: 文本消息。
4206
+ # @type Text: String
4207
+
4208
+ attr_accessor :Text
4209
+
4210
+ def initialize(text=nil)
4211
+ @Text = text
4212
+ end
4213
+
4214
+ def deserialize(params)
4215
+ @Text = params['Text']
4216
+ end
4217
+ end
4218
+
3977
4219
  # UnbindDocumentFromRoom请求参数结构体
3978
4220
  class UnbindDocumentFromRoomRequest < TencentCloud::Common::AbstractModel
3979
4221
  # @param RoomId: 房间ID。
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.679
4
+ version: 3.0.680
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-10-18 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-lcic.rb
37
- - lib/v20220817/models.rb
38
36
  - lib/v20220817/client.rb
37
+ - lib/v20220817/models.rb
38
+ - lib/tencentcloud-sdk-lcic.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: