tencentcloud-sdk-mgobe 1.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
 - data/lib/VERSION +1 -0
 - data/lib/tencentcloud-sdk-mgobe.rb +14 -0
 - data/lib/v20190929/client.rb +60 -0
 - data/lib/v20190929/models.rb +59 -0
 - data/lib/v20201014/client.rb +204 -0
 - data/lib/v20201014/models.rb +531 -0
 - metadata +68 -0
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA1:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 4e3b12615c9ee8545290da1a4b1c719479dc5f3d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 9501a8a10e355a27e9c0b18cba9994a1189a4e7f
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a4192eddb57e1cad5560a4f6e1e16cfb5e75c64e5e3efce585b7a2214471bebdeebbf4ff128c25776725c21db76fb9fd6e902e3fb7b7f18f82e57d319381242b
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b7dc633fbfd6ab5146302b6ad70f4712e53699ca950fa48c41a0ac0fa4ee0073b49541d3629d8424bcceab7d452704e09b28faf346e342e3e227e8332dc8c4b0
         
     | 
    
        data/lib/VERSION
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            1.0.200
         
     | 
| 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require 'tencentcloud-sdk-common'
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            require_relative 'v20201014/client'
         
     | 
| 
      
 6 
     | 
    
         
            +
            require_relative 'v20201014/models'
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            require_relative 'v20190929/client'
         
     | 
| 
      
 9 
     | 
    
         
            +
            require_relative 'v20190929/models'
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            module TencentCloud
         
     | 
| 
      
 12 
     | 
    
         
            +
              module Mgobe
         
     | 
| 
      
 13 
     | 
    
         
            +
              end
         
     | 
| 
      
 14 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,60 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
         
     | 
| 
      
 4 
     | 
    
         
            +
            #
         
     | 
| 
      
 5 
     | 
    
         
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
      
 6 
     | 
    
         
            +
            # you may not use this file except in compliance with the License.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # You may obtain a copy of the License at
         
     | 
| 
      
 8 
     | 
    
         
            +
            #
         
     | 
| 
      
 9 
     | 
    
         
            +
            #    http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
      
 10 
     | 
    
         
            +
            #
         
     | 
| 
      
 11 
     | 
    
         
            +
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
      
 12 
     | 
    
         
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
      
 13 
     | 
    
         
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
      
 14 
     | 
    
         
            +
            # See the License for the specific language governing permissions and
         
     | 
| 
      
 15 
     | 
    
         
            +
            # limitations under the License.
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            require 'json'
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            module TencentCloud
         
     | 
| 
      
 20 
     | 
    
         
            +
              module Mgobe
         
     | 
| 
      
 21 
     | 
    
         
            +
                module V20190929
         
     | 
| 
      
 22 
     | 
    
         
            +
                  class Client < TencentCloud::Common::AbstractClient
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                    def initialize(credential, region, profile = nil)
         
     | 
| 
      
 25 
     | 
    
         
            +
                        api_version = '2019-09-29'
         
     | 
| 
      
 26 
     | 
    
         
            +
                        api_endpoint = 'mgobe.tencentcloudapi.com'
         
     | 
| 
      
 27 
     | 
    
         
            +
                        sdk_version = 'MGOBE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
         
     | 
| 
      
 28 
     | 
    
         
            +
                        super(credential, region, api_version, api_endpoint, sdk_version, profile)
         
     | 
| 
      
 29 
     | 
    
         
            +
                    end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
                    # 通过game_id、room_id解散房间
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                    # @param request: Request instance for DismissRoom.
         
     | 
| 
      
 35 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20190929::DismissRoomRequest`
         
     | 
| 
      
 36 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20190929::DismissRoomResponse`
         
     | 
| 
      
 37 
     | 
    
         
            +
                    def DismissRoom(request)
         
     | 
| 
      
 38 
     | 
    
         
            +
                      body = send_request('DismissRoom', request.serialize)
         
     | 
| 
      
 39 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 40 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 41 
     | 
    
         
            +
                        model = DismissRoomResponse.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 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
                  end
         
     | 
| 
      
 58 
     | 
    
         
            +
                end
         
     | 
| 
      
 59 
     | 
    
         
            +
              end
         
     | 
| 
      
 60 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,59 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
         
     | 
| 
      
 4 
     | 
    
         
            +
            #
         
     | 
| 
      
 5 
     | 
    
         
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
      
 6 
     | 
    
         
            +
            # you may not use this file except in compliance with the License.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # You may obtain a copy of the License at
         
     | 
| 
      
 8 
     | 
    
         
            +
            #
         
     | 
| 
      
 9 
     | 
    
         
            +
            #    http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
      
 10 
     | 
    
         
            +
            #
         
     | 
| 
      
 11 
     | 
    
         
            +
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
      
 12 
     | 
    
         
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
      
 13 
     | 
    
         
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
      
 14 
     | 
    
         
            +
            # See the License for the specific language governing permissions and
         
     | 
| 
      
 15 
     | 
    
         
            +
            # limitations under the License.
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            module TencentCloud
         
     | 
| 
      
 18 
     | 
    
         
            +
              module Mgobe
         
     | 
| 
      
 19 
     | 
    
         
            +
                module V20190929
         
     | 
| 
      
 20 
     | 
    
         
            +
                  # DismissRoom请求参数结构体
         
     | 
| 
      
 21 
     | 
    
         
            +
                  class DismissRoomRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 22 
     | 
    
         
            +
                    # @param GameId: 表示游戏资源唯一 ID, 由后台自动分配, 无法修改。
         
     | 
| 
      
 23 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 24 
     | 
    
         
            +
                    # @param RoomId: 表示游戏房间唯一ID。
         
     | 
| 
      
 25 
     | 
    
         
            +
                    # @type RoomId: String
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                    attr_accessor :GameId, :RoomId
         
     | 
| 
      
 28 
     | 
    
         
            +
                    
         
     | 
| 
      
 29 
     | 
    
         
            +
                    def initialize(gameid=nil, roomid=nil)
         
     | 
| 
      
 30 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 31 
     | 
    
         
            +
                      @RoomId = roomid
         
     | 
| 
      
 32 
     | 
    
         
            +
                    end
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 35 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 36 
     | 
    
         
            +
                      @RoomId = params['RoomId']
         
     | 
| 
      
 37 
     | 
    
         
            +
                    end
         
     | 
| 
      
 38 
     | 
    
         
            +
                  end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
                  # DismissRoom返回参数结构体
         
     | 
| 
      
 41 
     | 
    
         
            +
                  class DismissRoomResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 42 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 43 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
                    attr_accessor :RequestId
         
     | 
| 
      
 46 
     | 
    
         
            +
                    
         
     | 
| 
      
 47 
     | 
    
         
            +
                    def initialize(requestid=nil)
         
     | 
| 
      
 48 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 49 
     | 
    
         
            +
                    end
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 52 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 53 
     | 
    
         
            +
                    end
         
     | 
| 
      
 54 
     | 
    
         
            +
                  end
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                end
         
     | 
| 
      
 57 
     | 
    
         
            +
              end
         
     | 
| 
      
 58 
     | 
    
         
            +
            end
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,204 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
         
     | 
| 
      
 4 
     | 
    
         
            +
            #
         
     | 
| 
      
 5 
     | 
    
         
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
      
 6 
     | 
    
         
            +
            # you may not use this file except in compliance with the License.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # You may obtain a copy of the License at
         
     | 
| 
      
 8 
     | 
    
         
            +
            #
         
     | 
| 
      
 9 
     | 
    
         
            +
            #    http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
      
 10 
     | 
    
         
            +
            #
         
     | 
| 
      
 11 
     | 
    
         
            +
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
      
 12 
     | 
    
         
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
      
 13 
     | 
    
         
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
      
 14 
     | 
    
         
            +
            # See the License for the specific language governing permissions and
         
     | 
| 
      
 15 
     | 
    
         
            +
            # limitations under the License.
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            require 'json'
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            module TencentCloud
         
     | 
| 
      
 20 
     | 
    
         
            +
              module Mgobe
         
     | 
| 
      
 21 
     | 
    
         
            +
                module V20201014
         
     | 
| 
      
 22 
     | 
    
         
            +
                  class Client < TencentCloud::Common::AbstractClient
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                    def initialize(credential, region, profile = nil)
         
     | 
| 
      
 25 
     | 
    
         
            +
                        api_version = '2020-10-14'
         
     | 
| 
      
 26 
     | 
    
         
            +
                        api_endpoint = 'mgobe.tencentcloudapi.com'
         
     | 
| 
      
 27 
     | 
    
         
            +
                        sdk_version = 'MGOBE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
         
     | 
| 
      
 28 
     | 
    
         
            +
                        super(credential, region, api_version, api_endpoint, sdk_version, profile)
         
     | 
| 
      
 29 
     | 
    
         
            +
                    end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
                    # 修改房间玩家自定义属性
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                    # @param request: Request instance for ChangeRoomPlayerProfile.
         
     | 
| 
      
 35 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::ChangeRoomPlayerProfileRequest`
         
     | 
| 
      
 36 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::ChangeRoomPlayerProfileResponse`
         
     | 
| 
      
 37 
     | 
    
         
            +
                    def ChangeRoomPlayerProfile(request)
         
     | 
| 
      
 38 
     | 
    
         
            +
                      body = send_request('ChangeRoomPlayerProfile', request.serialize)
         
     | 
| 
      
 39 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 40 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 41 
     | 
    
         
            +
                        model = ChangeRoomPlayerProfileResponse.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 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                    # 修改玩家自定义状态
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                    # @param request: Request instance for ChangeRoomPlayerStatus.
         
     | 
| 
      
 59 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::ChangeRoomPlayerStatusRequest`
         
     | 
| 
      
 60 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::ChangeRoomPlayerStatusResponse`
         
     | 
| 
      
 61 
     | 
    
         
            +
                    def ChangeRoomPlayerStatus(request)
         
     | 
| 
      
 62 
     | 
    
         
            +
                      body = send_request('ChangeRoomPlayerStatus', request.serialize)
         
     | 
| 
      
 63 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 64 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 65 
     | 
    
         
            +
                        model = ChangeRoomPlayerStatusResponse.new
         
     | 
| 
      
 66 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 67 
     | 
    
         
            +
                        model
         
     | 
| 
      
 68 
     | 
    
         
            +
                      else
         
     | 
| 
      
 69 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 70 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 71 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 72 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 73 
     | 
    
         
            +
                      end
         
     | 
| 
      
 74 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 75 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 76 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 77 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 78 
     | 
    
         
            +
                    end
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                    # 该接口用于查询玩家信息。支持两种用法,当OpenId不传的时候,PlayerId必传,传入PlayerId可以查询当前PlayerId的玩家信息,当OpenId传入的时候,PlayerId可不传,按照OpenId查询玩家信息。
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                    # @param request: Request instance for DescribePlayer.
         
     | 
| 
      
 83 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::DescribePlayerRequest`
         
     | 
| 
      
 84 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::DescribePlayerResponse`
         
     | 
| 
      
 85 
     | 
    
         
            +
                    def DescribePlayer(request)
         
     | 
| 
      
 86 
     | 
    
         
            +
                      body = send_request('DescribePlayer', request.serialize)
         
     | 
| 
      
 87 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 88 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 89 
     | 
    
         
            +
                        model = DescribePlayerResponse.new
         
     | 
| 
      
 90 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 91 
     | 
    
         
            +
                        model
         
     | 
| 
      
 92 
     | 
    
         
            +
                      else
         
     | 
| 
      
 93 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 94 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 95 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 96 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 97 
     | 
    
         
            +
                      end
         
     | 
| 
      
 98 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 99 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 100 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 101 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 102 
     | 
    
         
            +
                    end
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
                    # 该接口用于查询房间信息。支持两种用法,当房间Id不传的时候,玩家Id必传,传入玩家Id可以查询当前玩家所在的房间信息,当房间Id传入的时候,玩家Id可不传,按照房间Id查询房间信息。
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
                    # @param request: Request instance for DescribeRoom.
         
     | 
| 
      
 107 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::DescribeRoomRequest`
         
     | 
| 
      
 108 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::DescribeRoomResponse`
         
     | 
| 
      
 109 
     | 
    
         
            +
                    def DescribeRoom(request)
         
     | 
| 
      
 110 
     | 
    
         
            +
                      body = send_request('DescribeRoom', request.serialize)
         
     | 
| 
      
 111 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 112 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 113 
     | 
    
         
            +
                        model = DescribeRoomResponse.new
         
     | 
| 
      
 114 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 115 
     | 
    
         
            +
                        model
         
     | 
| 
      
 116 
     | 
    
         
            +
                      else
         
     | 
| 
      
 117 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 118 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 119 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 120 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 121 
     | 
    
         
            +
                      end
         
     | 
| 
      
 122 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 123 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 124 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 125 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 126 
     | 
    
         
            +
                    end
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                    # 通过game_id、room_id解散房间
         
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
                    # @param request: Request instance for DismissRoom.
         
     | 
| 
      
 131 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::DismissRoomRequest`
         
     | 
| 
      
 132 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::DismissRoomResponse`
         
     | 
| 
      
 133 
     | 
    
         
            +
                    def DismissRoom(request)
         
     | 
| 
      
 134 
     | 
    
         
            +
                      body = send_request('DismissRoom', request.serialize)
         
     | 
| 
      
 135 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 136 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 137 
     | 
    
         
            +
                        model = DismissRoomResponse.new
         
     | 
| 
      
 138 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 139 
     | 
    
         
            +
                        model
         
     | 
| 
      
 140 
     | 
    
         
            +
                      else
         
     | 
| 
      
 141 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 142 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 143 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 144 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 145 
     | 
    
         
            +
                      end
         
     | 
| 
      
 146 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 147 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 148 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 149 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 150 
     | 
    
         
            +
                    end
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                    # 修改房间
         
     | 
| 
      
 153 
     | 
    
         
            +
             
     | 
| 
      
 154 
     | 
    
         
            +
                    # @param request: Request instance for ModifyRoom.
         
     | 
| 
      
 155 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::ModifyRoomRequest`
         
     | 
| 
      
 156 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::ModifyRoomResponse`
         
     | 
| 
      
 157 
     | 
    
         
            +
                    def ModifyRoom(request)
         
     | 
| 
      
 158 
     | 
    
         
            +
                      body = send_request('ModifyRoom', request.serialize)
         
     | 
| 
      
 159 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 160 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 161 
     | 
    
         
            +
                        model = ModifyRoomResponse.new
         
     | 
| 
      
 162 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 163 
     | 
    
         
            +
                        model
         
     | 
| 
      
 164 
     | 
    
         
            +
                      else
         
     | 
| 
      
 165 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 166 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 167 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 168 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 169 
     | 
    
         
            +
                      end
         
     | 
| 
      
 170 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 171 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 172 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 173 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 174 
     | 
    
         
            +
                    end
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
                    # 踢出房间玩家
         
     | 
| 
      
 177 
     | 
    
         
            +
             
     | 
| 
      
 178 
     | 
    
         
            +
                    # @param request: Request instance for RemoveRoomPlayer.
         
     | 
| 
      
 179 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::mgobe::V20201014::RemoveRoomPlayerRequest`
         
     | 
| 
      
 180 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::mgobe::V20201014::RemoveRoomPlayerResponse`
         
     | 
| 
      
 181 
     | 
    
         
            +
                    def RemoveRoomPlayer(request)
         
     | 
| 
      
 182 
     | 
    
         
            +
                      body = send_request('RemoveRoomPlayer', request.serialize)
         
     | 
| 
      
 183 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 184 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 185 
     | 
    
         
            +
                        model = RemoveRoomPlayerResponse.new
         
     | 
| 
      
 186 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 187 
     | 
    
         
            +
                        model
         
     | 
| 
      
 188 
     | 
    
         
            +
                      else
         
     | 
| 
      
 189 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 190 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 191 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 192 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 193 
     | 
    
         
            +
                      end
         
     | 
| 
      
 194 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 195 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 196 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 197 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 198 
     | 
    
         
            +
                    end
         
     | 
| 
      
 199 
     | 
    
         
            +
             
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
                  end
         
     | 
| 
      
 202 
     | 
    
         
            +
                end
         
     | 
| 
      
 203 
     | 
    
         
            +
              end
         
     | 
| 
      
 204 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,531 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
         
     | 
| 
      
 4 
     | 
    
         
            +
            #
         
     | 
| 
      
 5 
     | 
    
         
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
      
 6 
     | 
    
         
            +
            # you may not use this file except in compliance with the License.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # You may obtain a copy of the License at
         
     | 
| 
      
 8 
     | 
    
         
            +
            #
         
     | 
| 
      
 9 
     | 
    
         
            +
            #    http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
      
 10 
     | 
    
         
            +
            #
         
     | 
| 
      
 11 
     | 
    
         
            +
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
      
 12 
     | 
    
         
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
      
 13 
     | 
    
         
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
      
 14 
     | 
    
         
            +
            # See the License for the specific language governing permissions and
         
     | 
| 
      
 15 
     | 
    
         
            +
            # limitations under the License.
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            module TencentCloud
         
     | 
| 
      
 18 
     | 
    
         
            +
              module Mgobe
         
     | 
| 
      
 19 
     | 
    
         
            +
                module V20201014
         
     | 
| 
      
 20 
     | 
    
         
            +
                  # ChangeRoomPlayerProfile请求参数结构体
         
     | 
| 
      
 21 
     | 
    
         
            +
                  class ChangeRoomPlayerProfileRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 22 
     | 
    
         
            +
                    # @param GameId: 游戏资源Id。
         
     | 
| 
      
 23 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 24 
     | 
    
         
            +
                    # @param PlayerId: 发起修改的玩家Id。
         
     | 
| 
      
 25 
     | 
    
         
            +
                    # @type PlayerId: String
         
     | 
| 
      
 26 
     | 
    
         
            +
                    # @param CustomProfile: 需要修改的玩家自定义属性。
         
     | 
| 
      
 27 
     | 
    
         
            +
                    # @type CustomProfile: String
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                    attr_accessor :GameId, :PlayerId, :CustomProfile
         
     | 
| 
      
 30 
     | 
    
         
            +
                    
         
     | 
| 
      
 31 
     | 
    
         
            +
                    def initialize(gameid=nil, playerid=nil, customprofile=nil)
         
     | 
| 
      
 32 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 33 
     | 
    
         
            +
                      @PlayerId = playerid
         
     | 
| 
      
 34 
     | 
    
         
            +
                      @CustomProfile = customprofile
         
     | 
| 
      
 35 
     | 
    
         
            +
                    end
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 38 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 39 
     | 
    
         
            +
                      @PlayerId = params['PlayerId']
         
     | 
| 
      
 40 
     | 
    
         
            +
                      @CustomProfile = params['CustomProfile']
         
     | 
| 
      
 41 
     | 
    
         
            +
                    end
         
     | 
| 
      
 42 
     | 
    
         
            +
                  end
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                  # ChangeRoomPlayerProfile返回参数结构体
         
     | 
| 
      
 45 
     | 
    
         
            +
                  class ChangeRoomPlayerProfileResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 46 
     | 
    
         
            +
                    # @param Room: 房间信息。
         
     | 
| 
      
 47 
     | 
    
         
            +
                    # @type Room: :class:`Tencentcloud::Mgobe.v20201014.models.Room`
         
     | 
| 
      
 48 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 49 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                    attr_accessor :Room, :RequestId
         
     | 
| 
      
 52 
     | 
    
         
            +
                    
         
     | 
| 
      
 53 
     | 
    
         
            +
                    def initialize(room=nil, requestid=nil)
         
     | 
| 
      
 54 
     | 
    
         
            +
                      @Room = room
         
     | 
| 
      
 55 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 56 
     | 
    
         
            +
                    end
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 59 
     | 
    
         
            +
                      unless params['Room'].nil?
         
     | 
| 
      
 60 
     | 
    
         
            +
                        @Room = Room.new
         
     | 
| 
      
 61 
     | 
    
         
            +
                        @Room.deserialize(params['Room'])
         
     | 
| 
      
 62 
     | 
    
         
            +
                      end
         
     | 
| 
      
 63 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 64 
     | 
    
         
            +
                    end
         
     | 
| 
      
 65 
     | 
    
         
            +
                  end
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
      
 67 
     | 
    
         
            +
                  # ChangeRoomPlayerStatus请求参数结构体
         
     | 
| 
      
 68 
     | 
    
         
            +
                  class ChangeRoomPlayerStatusRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 69 
     | 
    
         
            +
                    # @param GameId: 游戏资源Id。
         
     | 
| 
      
 70 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 71 
     | 
    
         
            +
                    # @param CustomStatus: 玩家自定义状态。
         
     | 
| 
      
 72 
     | 
    
         
            +
                    # @type CustomStatus: Integer
         
     | 
| 
      
 73 
     | 
    
         
            +
                    # @param PlayerId: 玩家id。
         
     | 
| 
      
 74 
     | 
    
         
            +
                    # @type PlayerId: String
         
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
                    attr_accessor :GameId, :CustomStatus, :PlayerId
         
     | 
| 
      
 77 
     | 
    
         
            +
                    
         
     | 
| 
      
 78 
     | 
    
         
            +
                    def initialize(gameid=nil, customstatus=nil, playerid=nil)
         
     | 
| 
      
 79 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 80 
     | 
    
         
            +
                      @CustomStatus = customstatus
         
     | 
| 
      
 81 
     | 
    
         
            +
                      @PlayerId = playerid
         
     | 
| 
      
 82 
     | 
    
         
            +
                    end
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 85 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 86 
     | 
    
         
            +
                      @CustomStatus = params['CustomStatus']
         
     | 
| 
      
 87 
     | 
    
         
            +
                      @PlayerId = params['PlayerId']
         
     | 
| 
      
 88 
     | 
    
         
            +
                    end
         
     | 
| 
      
 89 
     | 
    
         
            +
                  end
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
                  # ChangeRoomPlayerStatus返回参数结构体
         
     | 
| 
      
 92 
     | 
    
         
            +
                  class ChangeRoomPlayerStatusResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 93 
     | 
    
         
            +
                    # @param Room: 房间信息
         
     | 
| 
      
 94 
     | 
    
         
            +
                    # @type Room: :class:`Tencentcloud::Mgobe.v20201014.models.Room`
         
     | 
| 
      
 95 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 96 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                    attr_accessor :Room, :RequestId
         
     | 
| 
      
 99 
     | 
    
         
            +
                    
         
     | 
| 
      
 100 
     | 
    
         
            +
                    def initialize(room=nil, requestid=nil)
         
     | 
| 
      
 101 
     | 
    
         
            +
                      @Room = room
         
     | 
| 
      
 102 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 103 
     | 
    
         
            +
                    end
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 106 
     | 
    
         
            +
                      unless params['Room'].nil?
         
     | 
| 
      
 107 
     | 
    
         
            +
                        @Room = Room.new
         
     | 
| 
      
 108 
     | 
    
         
            +
                        @Room.deserialize(params['Room'])
         
     | 
| 
      
 109 
     | 
    
         
            +
                      end
         
     | 
| 
      
 110 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 111 
     | 
    
         
            +
                    end
         
     | 
| 
      
 112 
     | 
    
         
            +
                  end
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                  # DescribePlayer请求参数结构体
         
     | 
| 
      
 115 
     | 
    
         
            +
                  class DescribePlayerRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 116 
     | 
    
         
            +
                    # @param GameId: 游戏资源Id。
         
     | 
| 
      
 117 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 118 
     | 
    
         
            +
                    # @param OpenId: 玩家OpenId。
         
     | 
| 
      
 119 
     | 
    
         
            +
                    # @type OpenId: String
         
     | 
| 
      
 120 
     | 
    
         
            +
                    # @param PlayerId: 玩家PlayerId,由后台分配,当OpenId不传的时候,PlayerId必传,传入PlayerId可以查询当前PlayerId的玩家信息,当OpenId传入的时候,PlayerId可不传,按照OpenId查询玩家信息。
         
     | 
| 
      
 121 
     | 
    
         
            +
                    # @type PlayerId: String
         
     | 
| 
      
 122 
     | 
    
         
            +
             
     | 
| 
      
 123 
     | 
    
         
            +
                    attr_accessor :GameId, :OpenId, :PlayerId
         
     | 
| 
      
 124 
     | 
    
         
            +
                    
         
     | 
| 
      
 125 
     | 
    
         
            +
                    def initialize(gameid=nil, openid=nil, playerid=nil)
         
     | 
| 
      
 126 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 127 
     | 
    
         
            +
                      @OpenId = openid
         
     | 
| 
      
 128 
     | 
    
         
            +
                      @PlayerId = playerid
         
     | 
| 
      
 129 
     | 
    
         
            +
                    end
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 132 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 133 
     | 
    
         
            +
                      @OpenId = params['OpenId']
         
     | 
| 
      
 134 
     | 
    
         
            +
                      @PlayerId = params['PlayerId']
         
     | 
| 
      
 135 
     | 
    
         
            +
                    end
         
     | 
| 
      
 136 
     | 
    
         
            +
                  end
         
     | 
| 
      
 137 
     | 
    
         
            +
             
     | 
| 
      
 138 
     | 
    
         
            +
                  # DescribePlayer返回参数结构体
         
     | 
| 
      
 139 
     | 
    
         
            +
                  class DescribePlayerResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 140 
     | 
    
         
            +
                    # @param Player: 玩家信息。
         
     | 
| 
      
 141 
     | 
    
         
            +
                    # @type Player: :class:`Tencentcloud::Mgobe.v20201014.models.Player`
         
     | 
| 
      
 142 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 143 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
                    attr_accessor :Player, :RequestId
         
     | 
| 
      
 146 
     | 
    
         
            +
                    
         
     | 
| 
      
 147 
     | 
    
         
            +
                    def initialize(player=nil, requestid=nil)
         
     | 
| 
      
 148 
     | 
    
         
            +
                      @Player = player
         
     | 
| 
      
 149 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 150 
     | 
    
         
            +
                    end
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 153 
     | 
    
         
            +
                      unless params['Player'].nil?
         
     | 
| 
      
 154 
     | 
    
         
            +
                        @Player = Player.new
         
     | 
| 
      
 155 
     | 
    
         
            +
                        @Player.deserialize(params['Player'])
         
     | 
| 
      
 156 
     | 
    
         
            +
                      end
         
     | 
| 
      
 157 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 158 
     | 
    
         
            +
                    end
         
     | 
| 
      
 159 
     | 
    
         
            +
                  end
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
                  # DescribeRoom请求参数结构体
         
     | 
| 
      
 162 
     | 
    
         
            +
                  class DescribeRoomRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 163 
     | 
    
         
            +
                    # @param GameId: 游戏资源Id。
         
     | 
| 
      
 164 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 165 
     | 
    
         
            +
                    # @param PlayerId: 玩家Id。当房间Id不传的时候,玩家Id必传,传入玩家Id可以查询当前玩家所在的房间信息,当房间Id传入的时候,优先按照房间Id查询房间信息。
         
     | 
| 
      
 166 
     | 
    
         
            +
                    # @type PlayerId: String
         
     | 
| 
      
 167 
     | 
    
         
            +
                    # @param RoomId: 房间Id。
         
     | 
| 
      
 168 
     | 
    
         
            +
                    # @type RoomId: String
         
     | 
| 
      
 169 
     | 
    
         
            +
             
     | 
| 
      
 170 
     | 
    
         
            +
                    attr_accessor :GameId, :PlayerId, :RoomId
         
     | 
| 
      
 171 
     | 
    
         
            +
                    
         
     | 
| 
      
 172 
     | 
    
         
            +
                    def initialize(gameid=nil, playerid=nil, roomid=nil)
         
     | 
| 
      
 173 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 174 
     | 
    
         
            +
                      @PlayerId = playerid
         
     | 
| 
      
 175 
     | 
    
         
            +
                      @RoomId = roomid
         
     | 
| 
      
 176 
     | 
    
         
            +
                    end
         
     | 
| 
      
 177 
     | 
    
         
            +
             
     | 
| 
      
 178 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 179 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 180 
     | 
    
         
            +
                      @PlayerId = params['PlayerId']
         
     | 
| 
      
 181 
     | 
    
         
            +
                      @RoomId = params['RoomId']
         
     | 
| 
      
 182 
     | 
    
         
            +
                    end
         
     | 
| 
      
 183 
     | 
    
         
            +
                  end
         
     | 
| 
      
 184 
     | 
    
         
            +
             
     | 
| 
      
 185 
     | 
    
         
            +
                  # DescribeRoom返回参数结构体
         
     | 
| 
      
 186 
     | 
    
         
            +
                  class DescribeRoomResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 187 
     | 
    
         
            +
                    # @param Room: 房间信息。
         
     | 
| 
      
 188 
     | 
    
         
            +
                    # @type Room: :class:`Tencentcloud::Mgobe.v20201014.models.Room`
         
     | 
| 
      
 189 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 190 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 191 
     | 
    
         
            +
             
     | 
| 
      
 192 
     | 
    
         
            +
                    attr_accessor :Room, :RequestId
         
     | 
| 
      
 193 
     | 
    
         
            +
                    
         
     | 
| 
      
 194 
     | 
    
         
            +
                    def initialize(room=nil, requestid=nil)
         
     | 
| 
      
 195 
     | 
    
         
            +
                      @Room = room
         
     | 
| 
      
 196 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 197 
     | 
    
         
            +
                    end
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 200 
     | 
    
         
            +
                      unless params['Room'].nil?
         
     | 
| 
      
 201 
     | 
    
         
            +
                        @Room = Room.new
         
     | 
| 
      
 202 
     | 
    
         
            +
                        @Room.deserialize(params['Room'])
         
     | 
| 
      
 203 
     | 
    
         
            +
                      end
         
     | 
| 
      
 204 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 205 
     | 
    
         
            +
                    end
         
     | 
| 
      
 206 
     | 
    
         
            +
                  end
         
     | 
| 
      
 207 
     | 
    
         
            +
             
     | 
| 
      
 208 
     | 
    
         
            +
                  # DismissRoom请求参数结构体
         
     | 
| 
      
 209 
     | 
    
         
            +
                  class DismissRoomRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 210 
     | 
    
         
            +
                    # @param GameId: 表示游戏资源唯一 ID, 由后台自动分配, 无法修改。
         
     | 
| 
      
 211 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 212 
     | 
    
         
            +
                    # @param RoomId: 表示游戏房间唯一ID。
         
     | 
| 
      
 213 
     | 
    
         
            +
                    # @type RoomId: String
         
     | 
| 
      
 214 
     | 
    
         
            +
             
     | 
| 
      
 215 
     | 
    
         
            +
                    attr_accessor :GameId, :RoomId
         
     | 
| 
      
 216 
     | 
    
         
            +
                    
         
     | 
| 
      
 217 
     | 
    
         
            +
                    def initialize(gameid=nil, roomid=nil)
         
     | 
| 
      
 218 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 219 
     | 
    
         
            +
                      @RoomId = roomid
         
     | 
| 
      
 220 
     | 
    
         
            +
                    end
         
     | 
| 
      
 221 
     | 
    
         
            +
             
     | 
| 
      
 222 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 223 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 224 
     | 
    
         
            +
                      @RoomId = params['RoomId']
         
     | 
| 
      
 225 
     | 
    
         
            +
                    end
         
     | 
| 
      
 226 
     | 
    
         
            +
                  end
         
     | 
| 
      
 227 
     | 
    
         
            +
             
     | 
| 
      
 228 
     | 
    
         
            +
                  # DismissRoom返回参数结构体
         
     | 
| 
      
 229 
     | 
    
         
            +
                  class DismissRoomResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 230 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 231 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
                    attr_accessor :RequestId
         
     | 
| 
      
 234 
     | 
    
         
            +
                    
         
     | 
| 
      
 235 
     | 
    
         
            +
                    def initialize(requestid=nil)
         
     | 
| 
      
 236 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 237 
     | 
    
         
            +
                    end
         
     | 
| 
      
 238 
     | 
    
         
            +
             
     | 
| 
      
 239 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 240 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 241 
     | 
    
         
            +
                    end
         
     | 
| 
      
 242 
     | 
    
         
            +
                  end
         
     | 
| 
      
 243 
     | 
    
         
            +
             
     | 
| 
      
 244 
     | 
    
         
            +
                  # ModifyRoom请求参数结构体
         
     | 
| 
      
 245 
     | 
    
         
            +
                  class ModifyRoomRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 246 
     | 
    
         
            +
                    # @param GameId: 游戏资源Id。
         
     | 
| 
      
 247 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 248 
     | 
    
         
            +
                    # @param RoomId: 房间ID。
         
     | 
| 
      
 249 
     | 
    
         
            +
                    # @type RoomId: String
         
     | 
| 
      
 250 
     | 
    
         
            +
                    # @param PlayerId: 发起者的PlayerId。
         
     | 
| 
      
 251 
     | 
    
         
            +
                    # @type PlayerId: String
         
     | 
| 
      
 252 
     | 
    
         
            +
                    # @param ChangeRoomOptionList: 需要修改的房间选项,0表示房间名称,1表示房主,2表示是否允许观战,3表示是否支持邀请码/密码,4表示是否私有,5表示是否自定义房间属性,6表示是否禁止加人。
         
     | 
| 
      
 253 
     | 
    
         
            +
                    # @type ChangeRoomOptionList: Array
         
     | 
| 
      
 254 
     | 
    
         
            +
                    # @param RoomName: 房间名称。
         
     | 
| 
      
 255 
     | 
    
         
            +
                    # @type RoomName: String
         
     | 
| 
      
 256 
     | 
    
         
            +
                    # @param Owner: 变更房主。
         
     | 
| 
      
 257 
     | 
    
         
            +
                    # @type Owner: String
         
     | 
| 
      
 258 
     | 
    
         
            +
                    # @param IsViewed: 是否支持观战。
         
     | 
| 
      
 259 
     | 
    
         
            +
                    # @type IsViewed: Boolean
         
     | 
| 
      
 260 
     | 
    
         
            +
                    # @param IsInvited: 是否支持邀请码/密码。
         
     | 
| 
      
 261 
     | 
    
         
            +
                    # @type IsInvited: Boolean
         
     | 
| 
      
 262 
     | 
    
         
            +
                    # @param IsPrivate: 是否私有。
         
     | 
| 
      
 263 
     | 
    
         
            +
                    # @type IsPrivate: Boolean
         
     | 
| 
      
 264 
     | 
    
         
            +
                    # @param CustomProperties: 自定义房间属性。
         
     | 
| 
      
 265 
     | 
    
         
            +
                    # @type CustomProperties: String
         
     | 
| 
      
 266 
     | 
    
         
            +
                    # @param IsForbidJoin: 房间是否禁止加人。
         
     | 
| 
      
 267 
     | 
    
         
            +
                    # @type IsForbidJoin: Boolean
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
                    attr_accessor :GameId, :RoomId, :PlayerId, :ChangeRoomOptionList, :RoomName, :Owner, :IsViewed, :IsInvited, :IsPrivate, :CustomProperties, :IsForbidJoin
         
     | 
| 
      
 270 
     | 
    
         
            +
                    
         
     | 
| 
      
 271 
     | 
    
         
            +
                    def initialize(gameid=nil, roomid=nil, playerid=nil, changeroomoptionlist=nil, roomname=nil, owner=nil, isviewed=nil, isinvited=nil, isprivate=nil, customproperties=nil, isforbidjoin=nil)
         
     | 
| 
      
 272 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 273 
     | 
    
         
            +
                      @RoomId = roomid
         
     | 
| 
      
 274 
     | 
    
         
            +
                      @PlayerId = playerid
         
     | 
| 
      
 275 
     | 
    
         
            +
                      @ChangeRoomOptionList = changeroomoptionlist
         
     | 
| 
      
 276 
     | 
    
         
            +
                      @RoomName = roomname
         
     | 
| 
      
 277 
     | 
    
         
            +
                      @Owner = owner
         
     | 
| 
      
 278 
     | 
    
         
            +
                      @IsViewed = isviewed
         
     | 
| 
      
 279 
     | 
    
         
            +
                      @IsInvited = isinvited
         
     | 
| 
      
 280 
     | 
    
         
            +
                      @IsPrivate = isprivate
         
     | 
| 
      
 281 
     | 
    
         
            +
                      @CustomProperties = customproperties
         
     | 
| 
      
 282 
     | 
    
         
            +
                      @IsForbidJoin = isforbidjoin
         
     | 
| 
      
 283 
     | 
    
         
            +
                    end
         
     | 
| 
      
 284 
     | 
    
         
            +
             
     | 
| 
      
 285 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 286 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 287 
     | 
    
         
            +
                      @RoomId = params['RoomId']
         
     | 
| 
      
 288 
     | 
    
         
            +
                      @PlayerId = params['PlayerId']
         
     | 
| 
      
 289 
     | 
    
         
            +
                      @ChangeRoomOptionList = params['ChangeRoomOptionList']
         
     | 
| 
      
 290 
     | 
    
         
            +
                      @RoomName = params['RoomName']
         
     | 
| 
      
 291 
     | 
    
         
            +
                      @Owner = params['Owner']
         
     | 
| 
      
 292 
     | 
    
         
            +
                      @IsViewed = params['IsViewed']
         
     | 
| 
      
 293 
     | 
    
         
            +
                      @IsInvited = params['IsInvited']
         
     | 
| 
      
 294 
     | 
    
         
            +
                      @IsPrivate = params['IsPrivate']
         
     | 
| 
      
 295 
     | 
    
         
            +
                      @CustomProperties = params['CustomProperties']
         
     | 
| 
      
 296 
     | 
    
         
            +
                      @IsForbidJoin = params['IsForbidJoin']
         
     | 
| 
      
 297 
     | 
    
         
            +
                    end
         
     | 
| 
      
 298 
     | 
    
         
            +
                  end
         
     | 
| 
      
 299 
     | 
    
         
            +
             
     | 
| 
      
 300 
     | 
    
         
            +
                  # ModifyRoom返回参数结构体
         
     | 
| 
      
 301 
     | 
    
         
            +
                  class ModifyRoomResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 302 
     | 
    
         
            +
                    # @param Room: 房间信息
         
     | 
| 
      
 303 
     | 
    
         
            +
                    # @type Room: :class:`Tencentcloud::Mgobe.v20201014.models.Room`
         
     | 
| 
      
 304 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 305 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 306 
     | 
    
         
            +
             
     | 
| 
      
 307 
     | 
    
         
            +
                    attr_accessor :Room, :RequestId
         
     | 
| 
      
 308 
     | 
    
         
            +
                    
         
     | 
| 
      
 309 
     | 
    
         
            +
                    def initialize(room=nil, requestid=nil)
         
     | 
| 
      
 310 
     | 
    
         
            +
                      @Room = room
         
     | 
| 
      
 311 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 312 
     | 
    
         
            +
                    end
         
     | 
| 
      
 313 
     | 
    
         
            +
             
     | 
| 
      
 314 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 315 
     | 
    
         
            +
                      unless params['Room'].nil?
         
     | 
| 
      
 316 
     | 
    
         
            +
                        @Room = Room.new
         
     | 
| 
      
 317 
     | 
    
         
            +
                        @Room.deserialize(params['Room'])
         
     | 
| 
      
 318 
     | 
    
         
            +
                      end
         
     | 
| 
      
 319 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 320 
     | 
    
         
            +
                    end
         
     | 
| 
      
 321 
     | 
    
         
            +
                  end
         
     | 
| 
      
 322 
     | 
    
         
            +
             
     | 
| 
      
 323 
     | 
    
         
            +
                  # 玩家信息详情
         
     | 
| 
      
 324 
     | 
    
         
            +
                  class Player < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 325 
     | 
    
         
            +
                    # @param OpenId: 玩家 OpenId。最长不超过64个字符。
         
     | 
| 
      
 326 
     | 
    
         
            +
                    # @type OpenId: String
         
     | 
| 
      
 327 
     | 
    
         
            +
                    # @param Name: 玩家昵称。最长不超过32个字符。
         
     | 
| 
      
 328 
     | 
    
         
            +
                    # @type Name: String
         
     | 
| 
      
 329 
     | 
    
         
            +
                    # @param TeamId: 队伍 ID。最长不超过16个字符。
         
     | 
| 
      
 330 
     | 
    
         
            +
                    # @type TeamId: String
         
     | 
| 
      
 331 
     | 
    
         
            +
                    # @param IsRobot: 是否为机器人。
         
     | 
| 
      
 332 
     | 
    
         
            +
                    # @type IsRobot: Boolean
         
     | 
| 
      
 333 
     | 
    
         
            +
                    # @param PlayerId: 玩家 PlayerId。出参使用,由后端返回。
         
     | 
| 
      
 334 
     | 
    
         
            +
                    # @type PlayerId: String
         
     | 
| 
      
 335 
     | 
    
         
            +
                    # @param CustomPlayerStatus: 自定义玩家状态。非负数,最大不超过4294967295。默认为0。
         
     | 
| 
      
 336 
     | 
    
         
            +
                    # @type CustomPlayerStatus: Integer
         
     | 
| 
      
 337 
     | 
    
         
            +
                    # @param CustomProfile: 自定义玩家属性。最长不超过256个字符。默认为空字符串。
         
     | 
| 
      
 338 
     | 
    
         
            +
                    # @type CustomProfile: String
         
     | 
| 
      
 339 
     | 
    
         
            +
             
     | 
| 
      
 340 
     | 
    
         
            +
                    attr_accessor :OpenId, :Name, :TeamId, :IsRobot, :PlayerId, :CustomPlayerStatus, :CustomProfile
         
     | 
| 
      
 341 
     | 
    
         
            +
                    
         
     | 
| 
      
 342 
     | 
    
         
            +
                    def initialize(openid=nil, name=nil, teamid=nil, isrobot=nil, playerid=nil, customplayerstatus=nil, customprofile=nil)
         
     | 
| 
      
 343 
     | 
    
         
            +
                      @OpenId = openid
         
     | 
| 
      
 344 
     | 
    
         
            +
                      @Name = name
         
     | 
| 
      
 345 
     | 
    
         
            +
                      @TeamId = teamid
         
     | 
| 
      
 346 
     | 
    
         
            +
                      @IsRobot = isrobot
         
     | 
| 
      
 347 
     | 
    
         
            +
                      @PlayerId = playerid
         
     | 
| 
      
 348 
     | 
    
         
            +
                      @CustomPlayerStatus = customplayerstatus
         
     | 
| 
      
 349 
     | 
    
         
            +
                      @CustomProfile = customprofile
         
     | 
| 
      
 350 
     | 
    
         
            +
                    end
         
     | 
| 
      
 351 
     | 
    
         
            +
             
     | 
| 
      
 352 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 353 
     | 
    
         
            +
                      @OpenId = params['OpenId']
         
     | 
| 
      
 354 
     | 
    
         
            +
                      @Name = params['Name']
         
     | 
| 
      
 355 
     | 
    
         
            +
                      @TeamId = params['TeamId']
         
     | 
| 
      
 356 
     | 
    
         
            +
                      @IsRobot = params['IsRobot']
         
     | 
| 
      
 357 
     | 
    
         
            +
                      @PlayerId = params['PlayerId']
         
     | 
| 
      
 358 
     | 
    
         
            +
                      @CustomPlayerStatus = params['CustomPlayerStatus']
         
     | 
| 
      
 359 
     | 
    
         
            +
                      @CustomProfile = params['CustomProfile']
         
     | 
| 
      
 360 
     | 
    
         
            +
                    end
         
     | 
| 
      
 361 
     | 
    
         
            +
                  end
         
     | 
| 
      
 362 
     | 
    
         
            +
             
     | 
| 
      
 363 
     | 
    
         
            +
                  # RemoveRoomPlayer请求参数结构体
         
     | 
| 
      
 364 
     | 
    
         
            +
                  class RemoveRoomPlayerRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 365 
     | 
    
         
            +
                    # @param GameId: 游戏资源Id。
         
     | 
| 
      
 366 
     | 
    
         
            +
                    # @type GameId: String
         
     | 
| 
      
 367 
     | 
    
         
            +
                    # @param RemovePlayerId: 被踢出房间的玩家Id。
         
     | 
| 
      
 368 
     | 
    
         
            +
                    # @type RemovePlayerId: String
         
     | 
| 
      
 369 
     | 
    
         
            +
             
     | 
| 
      
 370 
     | 
    
         
            +
                    attr_accessor :GameId, :RemovePlayerId
         
     | 
| 
      
 371 
     | 
    
         
            +
                    
         
     | 
| 
      
 372 
     | 
    
         
            +
                    def initialize(gameid=nil, removeplayerid=nil)
         
     | 
| 
      
 373 
     | 
    
         
            +
                      @GameId = gameid
         
     | 
| 
      
 374 
     | 
    
         
            +
                      @RemovePlayerId = removeplayerid
         
     | 
| 
      
 375 
     | 
    
         
            +
                    end
         
     | 
| 
      
 376 
     | 
    
         
            +
             
     | 
| 
      
 377 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 378 
     | 
    
         
            +
                      @GameId = params['GameId']
         
     | 
| 
      
 379 
     | 
    
         
            +
                      @RemovePlayerId = params['RemovePlayerId']
         
     | 
| 
      
 380 
     | 
    
         
            +
                    end
         
     | 
| 
      
 381 
     | 
    
         
            +
                  end
         
     | 
| 
      
 382 
     | 
    
         
            +
             
     | 
| 
      
 383 
     | 
    
         
            +
                  # RemoveRoomPlayer返回参数结构体
         
     | 
| 
      
 384 
     | 
    
         
            +
                  class RemoveRoomPlayerResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 385 
     | 
    
         
            +
                    # @param Room: 房间信息
         
     | 
| 
      
 386 
     | 
    
         
            +
                    # @type Room: :class:`Tencentcloud::Mgobe.v20201014.models.Room`
         
     | 
| 
      
 387 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 388 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 389 
     | 
    
         
            +
             
     | 
| 
      
 390 
     | 
    
         
            +
                    attr_accessor :Room, :RequestId
         
     | 
| 
      
 391 
     | 
    
         
            +
                    
         
     | 
| 
      
 392 
     | 
    
         
            +
                    def initialize(room=nil, requestid=nil)
         
     | 
| 
      
 393 
     | 
    
         
            +
                      @Room = room
         
     | 
| 
      
 394 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 395 
     | 
    
         
            +
                    end
         
     | 
| 
      
 396 
     | 
    
         
            +
             
     | 
| 
      
 397 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 398 
     | 
    
         
            +
                      unless params['Room'].nil?
         
     | 
| 
      
 399 
     | 
    
         
            +
                        @Room = Room.new
         
     | 
| 
      
 400 
     | 
    
         
            +
                        @Room.deserialize(params['Room'])
         
     | 
| 
      
 401 
     | 
    
         
            +
                      end
         
     | 
| 
      
 402 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 403 
     | 
    
         
            +
                    end
         
     | 
| 
      
 404 
     | 
    
         
            +
                  end
         
     | 
| 
      
 405 
     | 
    
         
            +
             
     | 
| 
      
 406 
     | 
    
         
            +
                  # 房间信息详情。
         
     | 
| 
      
 407 
     | 
    
         
            +
                  class Room < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 408 
     | 
    
         
            +
                    # @param Name: 表示房间名称。最长不超过32个字符。
         
     | 
| 
      
 409 
     | 
    
         
            +
                    # @type Name: String
         
     | 
| 
      
 410 
     | 
    
         
            +
                    # @param MaxPlayers: 表示房间最大玩家数量。最大不超过100人。
         
     | 
| 
      
 411 
     | 
    
         
            +
                    # @type MaxPlayers: Integer
         
     | 
| 
      
 412 
     | 
    
         
            +
                    # @param OwnerOpenId: 表示房主OpenId。最长不超过16个字符。
         
     | 
| 
      
 413 
     | 
    
         
            +
                    # @type OwnerOpenId: String
         
     | 
| 
      
 414 
     | 
    
         
            +
                    # @param IsPrivate: 表示是否私有,私有指的是不允许其他玩家通过匹配加入房间。
         
     | 
| 
      
 415 
     | 
    
         
            +
                    # @type IsPrivate: Boolean
         
     | 
| 
      
 416 
     | 
    
         
            +
                    # @param Players: 表示玩家详情列表。
         
     | 
| 
      
 417 
     | 
    
         
            +
                    # @type Players: Array
         
     | 
| 
      
 418 
     | 
    
         
            +
                    # @param Teams: 表示团队属性列表。
         
     | 
| 
      
 419 
     | 
    
         
            +
                    # @type Teams: Array
         
     | 
| 
      
 420 
     | 
    
         
            +
                    # @param Id: 表示房间 ID。出参用,由后端返回。
         
     | 
| 
      
 421 
     | 
    
         
            +
                    # @type Id: String
         
     | 
| 
      
 422 
     | 
    
         
            +
                    # @param Type: 表示房间类型。最长不超过32个字符。
         
     | 
| 
      
 423 
     | 
    
         
            +
                    # @type Type: String
         
     | 
| 
      
 424 
     | 
    
         
            +
                    # @param CreateType: 表示创建方式:0.单人主动发起创建房间请求;1.多人在线匹配请求分配房间;2. 直接创建满员房间。调用云API的创房请求默认为3,目前通过云API调用只支持第3种方式。
         
     | 
| 
      
 425 
     | 
    
         
            +
                    # @type CreateType: Integer
         
     | 
| 
      
 426 
     | 
    
         
            +
                    # @param CustomProperties: 表示自定义房间属性,不传为空字符串。最长不超过1024个字符。
         
     | 
| 
      
 427 
     | 
    
         
            +
                    # @type CustomProperties: String
         
     | 
| 
      
 428 
     | 
    
         
            +
                    # @param FrameSyncState: 表示房间帧同步状态。0表示未开始帧同步,1表示已开始帧同步,用于出参。
         
     | 
| 
      
 429 
     | 
    
         
            +
                    # @type FrameSyncState: Integer
         
     | 
| 
      
 430 
     | 
    
         
            +
                    # @param FrameRate: 表示帧率。由控制台设置,用于出参。
         
     | 
| 
      
 431 
     | 
    
         
            +
                    # @type FrameRate: Integer
         
     | 
| 
      
 432 
     | 
    
         
            +
                    # @param RouteId: 表示路由ID。用于出参。
         
     | 
| 
      
 433 
     | 
    
         
            +
                    # @type RouteId: String
         
     | 
| 
      
 434 
     | 
    
         
            +
                    # @param CreateTime: 表示房间创建的时间戳(单位:秒)。
         
     | 
| 
      
 435 
     | 
    
         
            +
                    # @type CreateTime: Integer
         
     | 
| 
      
 436 
     | 
    
         
            +
                    # @param StartGameTime: 表示开始帧同步时的时间戳(单位:秒),未开始帧同步时返回为0。
         
     | 
| 
      
 437 
     | 
    
         
            +
                    # @type StartGameTime: Integer
         
     | 
| 
      
 438 
     | 
    
         
            +
                    # @param IsForbidJoin: 表示是否禁止加入房间。出参使用,默认为False,通过SDK的ChangeRoom接口可以修改。
         
     | 
| 
      
 439 
     | 
    
         
            +
                    # @type IsForbidJoin: Boolean
         
     | 
| 
      
 440 
     | 
    
         
            +
                    # @param Owner: 表示房主PlayerId。
         
     | 
| 
      
 441 
     | 
    
         
            +
                    # @type Owner: String
         
     | 
| 
      
 442 
     | 
    
         
            +
             
     | 
| 
      
 443 
     | 
    
         
            +
                    attr_accessor :Name, :MaxPlayers, :OwnerOpenId, :IsPrivate, :Players, :Teams, :Id, :Type, :CreateType, :CustomProperties, :FrameSyncState, :FrameRate, :RouteId, :CreateTime, :StartGameTime, :IsForbidJoin, :Owner
         
     | 
| 
      
 444 
     | 
    
         
            +
                    
         
     | 
| 
      
 445 
     | 
    
         
            +
                    def initialize(name=nil, maxplayers=nil, owneropenid=nil, isprivate=nil, players=nil, teams=nil, id=nil, type=nil, createtype=nil, customproperties=nil, framesyncstate=nil, framerate=nil, routeid=nil, createtime=nil, startgametime=nil, isforbidjoin=nil, owner=nil)
         
     | 
| 
      
 446 
     | 
    
         
            +
                      @Name = name
         
     | 
| 
      
 447 
     | 
    
         
            +
                      @MaxPlayers = maxplayers
         
     | 
| 
      
 448 
     | 
    
         
            +
                      @OwnerOpenId = owneropenid
         
     | 
| 
      
 449 
     | 
    
         
            +
                      @IsPrivate = isprivate
         
     | 
| 
      
 450 
     | 
    
         
            +
                      @Players = players
         
     | 
| 
      
 451 
     | 
    
         
            +
                      @Teams = teams
         
     | 
| 
      
 452 
     | 
    
         
            +
                      @Id = id
         
     | 
| 
      
 453 
     | 
    
         
            +
                      @Type = type
         
     | 
| 
      
 454 
     | 
    
         
            +
                      @CreateType = createtype
         
     | 
| 
      
 455 
     | 
    
         
            +
                      @CustomProperties = customproperties
         
     | 
| 
      
 456 
     | 
    
         
            +
                      @FrameSyncState = framesyncstate
         
     | 
| 
      
 457 
     | 
    
         
            +
                      @FrameRate = framerate
         
     | 
| 
      
 458 
     | 
    
         
            +
                      @RouteId = routeid
         
     | 
| 
      
 459 
     | 
    
         
            +
                      @CreateTime = createtime
         
     | 
| 
      
 460 
     | 
    
         
            +
                      @StartGameTime = startgametime
         
     | 
| 
      
 461 
     | 
    
         
            +
                      @IsForbidJoin = isforbidjoin
         
     | 
| 
      
 462 
     | 
    
         
            +
                      @Owner = owner
         
     | 
| 
      
 463 
     | 
    
         
            +
                    end
         
     | 
| 
      
 464 
     | 
    
         
            +
             
     | 
| 
      
 465 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 466 
     | 
    
         
            +
                      @Name = params['Name']
         
     | 
| 
      
 467 
     | 
    
         
            +
                      @MaxPlayers = params['MaxPlayers']
         
     | 
| 
      
 468 
     | 
    
         
            +
                      @OwnerOpenId = params['OwnerOpenId']
         
     | 
| 
      
 469 
     | 
    
         
            +
                      @IsPrivate = params['IsPrivate']
         
     | 
| 
      
 470 
     | 
    
         
            +
                      unless params['Players'].nil?
         
     | 
| 
      
 471 
     | 
    
         
            +
                        @Players = []
         
     | 
| 
      
 472 
     | 
    
         
            +
                        params['Players'].each do |i|
         
     | 
| 
      
 473 
     | 
    
         
            +
                          player_tmp = Player.new
         
     | 
| 
      
 474 
     | 
    
         
            +
                          player_tmp.deserialize(i)
         
     | 
| 
      
 475 
     | 
    
         
            +
                          @Players << player_tmp
         
     | 
| 
      
 476 
     | 
    
         
            +
                        end
         
     | 
| 
      
 477 
     | 
    
         
            +
                      end
         
     | 
| 
      
 478 
     | 
    
         
            +
                      unless params['Teams'].nil?
         
     | 
| 
      
 479 
     | 
    
         
            +
                        @Teams = []
         
     | 
| 
      
 480 
     | 
    
         
            +
                        params['Teams'].each do |i|
         
     | 
| 
      
 481 
     | 
    
         
            +
                          team_tmp = Team.new
         
     | 
| 
      
 482 
     | 
    
         
            +
                          team_tmp.deserialize(i)
         
     | 
| 
      
 483 
     | 
    
         
            +
                          @Teams << team_tmp
         
     | 
| 
      
 484 
     | 
    
         
            +
                        end
         
     | 
| 
      
 485 
     | 
    
         
            +
                      end
         
     | 
| 
      
 486 
     | 
    
         
            +
                      @Id = params['Id']
         
     | 
| 
      
 487 
     | 
    
         
            +
                      @Type = params['Type']
         
     | 
| 
      
 488 
     | 
    
         
            +
                      @CreateType = params['CreateType']
         
     | 
| 
      
 489 
     | 
    
         
            +
                      @CustomProperties = params['CustomProperties']
         
     | 
| 
      
 490 
     | 
    
         
            +
                      @FrameSyncState = params['FrameSyncState']
         
     | 
| 
      
 491 
     | 
    
         
            +
                      @FrameRate = params['FrameRate']
         
     | 
| 
      
 492 
     | 
    
         
            +
                      @RouteId = params['RouteId']
         
     | 
| 
      
 493 
     | 
    
         
            +
                      @CreateTime = params['CreateTime']
         
     | 
| 
      
 494 
     | 
    
         
            +
                      @StartGameTime = params['StartGameTime']
         
     | 
| 
      
 495 
     | 
    
         
            +
                      @IsForbidJoin = params['IsForbidJoin']
         
     | 
| 
      
 496 
     | 
    
         
            +
                      @Owner = params['Owner']
         
     | 
| 
      
 497 
     | 
    
         
            +
                    end
         
     | 
| 
      
 498 
     | 
    
         
            +
                  end
         
     | 
| 
      
 499 
     | 
    
         
            +
             
     | 
| 
      
 500 
     | 
    
         
            +
                  # 团队属性
         
     | 
| 
      
 501 
     | 
    
         
            +
                  class Team < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 502 
     | 
    
         
            +
                    # @param Id: 队伍ID。最长不超过16个字符。
         
     | 
| 
      
 503 
     | 
    
         
            +
                    # @type Id: String
         
     | 
| 
      
 504 
     | 
    
         
            +
                    # @param Name: 队伍名称。最长不超过32个字符。
         
     | 
| 
      
 505 
     | 
    
         
            +
                    # @type Name: String
         
     | 
| 
      
 506 
     | 
    
         
            +
                    # @param MinPlayers: 队伍最小人数。最大不超过100人。
         
     | 
| 
      
 507 
     | 
    
         
            +
                    # @type MinPlayers: Integer
         
     | 
| 
      
 508 
     | 
    
         
            +
                    # @param MaxPlayers: 队伍最大人数。最大不超过100人。
         
     | 
| 
      
 509 
     | 
    
         
            +
                    # @type MaxPlayers: Integer
         
     | 
| 
      
 510 
     | 
    
         
            +
             
     | 
| 
      
 511 
     | 
    
         
            +
                    attr_accessor :Id, :Name, :MinPlayers, :MaxPlayers
         
     | 
| 
      
 512 
     | 
    
         
            +
                    
         
     | 
| 
      
 513 
     | 
    
         
            +
                    def initialize(id=nil, name=nil, minplayers=nil, maxplayers=nil)
         
     | 
| 
      
 514 
     | 
    
         
            +
                      @Id = id
         
     | 
| 
      
 515 
     | 
    
         
            +
                      @Name = name
         
     | 
| 
      
 516 
     | 
    
         
            +
                      @MinPlayers = minplayers
         
     | 
| 
      
 517 
     | 
    
         
            +
                      @MaxPlayers = maxplayers
         
     | 
| 
      
 518 
     | 
    
         
            +
                    end
         
     | 
| 
      
 519 
     | 
    
         
            +
             
     | 
| 
      
 520 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 521 
     | 
    
         
            +
                      @Id = params['Id']
         
     | 
| 
      
 522 
     | 
    
         
            +
                      @Name = params['Name']
         
     | 
| 
      
 523 
     | 
    
         
            +
                      @MinPlayers = params['MinPlayers']
         
     | 
| 
      
 524 
     | 
    
         
            +
                      @MaxPlayers = params['MaxPlayers']
         
     | 
| 
      
 525 
     | 
    
         
            +
                    end
         
     | 
| 
      
 526 
     | 
    
         
            +
                  end
         
     | 
| 
      
 527 
     | 
    
         
            +
             
     | 
| 
      
 528 
     | 
    
         
            +
                end
         
     | 
| 
      
 529 
     | 
    
         
            +
              end
         
     | 
| 
      
 530 
     | 
    
         
            +
            end
         
     | 
| 
      
 531 
     | 
    
         
            +
             
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,68 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: tencentcloud-sdk-mgobe
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.200
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Tencent Cloud
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-11-11 00:00:00.000000000 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 13 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 14 
     | 
    
         
            +
              name: tencentcloud-sdk-common
         
     | 
| 
      
 15 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 16 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 17 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 18 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
      
 20 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 21 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 22 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 23 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 24 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 25 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 26 
     | 
    
         
            +
                    version: '1.0'
         
     | 
| 
      
 27 
     | 
    
         
            +
            description: Tencent Cloud Ruby SDK is the official software development kit, which
         
     | 
| 
      
 28 
     | 
    
         
            +
              allows Ruby developers to write software that makes use of Tencent Cloud service
         
     | 
| 
      
 29 
     | 
    
         
            +
              MGOBE.
         
     | 
| 
      
 30 
     | 
    
         
            +
            email:
         
     | 
| 
      
 31 
     | 
    
         
            +
            - tencentcloudapi@tencent.com
         
     | 
| 
      
 32 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 33 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 34 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 35 
     | 
    
         
            +
            files:
         
     | 
| 
      
 36 
     | 
    
         
            +
            - lib/VERSION
         
     | 
| 
      
 37 
     | 
    
         
            +
            - lib/tencentcloud-sdk-mgobe.rb
         
     | 
| 
      
 38 
     | 
    
         
            +
            - lib/v20190929/client.rb
         
     | 
| 
      
 39 
     | 
    
         
            +
            - lib/v20190929/models.rb
         
     | 
| 
      
 40 
     | 
    
         
            +
            - lib/v20201014/client.rb
         
     | 
| 
      
 41 
     | 
    
         
            +
            - lib/v20201014/models.rb
         
     | 
| 
      
 42 
     | 
    
         
            +
            homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
         
     | 
| 
      
 43 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 44 
     | 
    
         
            +
            - Apache-2.0
         
     | 
| 
      
 45 
     | 
    
         
            +
            metadata:
         
     | 
| 
      
 46 
     | 
    
         
            +
              source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-mgobe
         
     | 
| 
      
 47 
     | 
    
         
            +
              changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
         
     | 
| 
      
 48 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 49 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 50 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 51 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 52 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 53 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 54 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 55 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 56 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 57 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 58 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 59 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 60 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 61 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 62 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 63 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 64 
     | 
    
         
            +
            rubygems_version: 2.6.14
         
     | 
| 
      
 65 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 66 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 67 
     | 
    
         
            +
            summary: Tencent Cloud SDK for Ruby - MGOBE
         
     | 
| 
      
 68 
     | 
    
         
            +
            test_files: []
         
     |