v20190722

package
v3.0.81+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-07-22"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) DissloveRoom

func (c *Client) DissloveRoom(request *DissloveRoomRequest) (response *DissloveRoomResponse, err error)

接口说明:把房间所有用户从房间踢出,解散房间。

func (*Client) KickOutUser

func (c *Client) KickOutUser(request *KickOutUserRequest) (response *KickOutUserResponse, err error)

接口说明:将用户从房间踢出。

type DissloveRoomRequest

type DissloveRoomRequest struct {
	*tchttp.BaseRequest

	// TRTC的SDKAppId。
	SdkAppId *uint64 `json:"SdkAppId,omitempty" name:"SdkAppId"`

	// 房间号。
	RoomId *uint64 `json:"RoomId,omitempty" name:"RoomId"`
}

func NewDissloveRoomRequest

func NewDissloveRoomRequest() (request *DissloveRoomRequest)

func (*DissloveRoomRequest) FromJsonString

func (r *DissloveRoomRequest) FromJsonString(s string) error

func (*DissloveRoomRequest) ToJsonString

func (r *DissloveRoomRequest) ToJsonString() string

type DissloveRoomResponse

type DissloveRoomResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDissloveRoomResponse

func NewDissloveRoomResponse() (response *DissloveRoomResponse)

func (*DissloveRoomResponse) FromJsonString

func (r *DissloveRoomResponse) FromJsonString(s string) error

func (*DissloveRoomResponse) ToJsonString

func (r *DissloveRoomResponse) ToJsonString() string

type KickOutUserRequest

type KickOutUserRequest struct {
	*tchttp.BaseRequest

	// TRTC的SDKAppId。
	SdkAppId *uint64 `json:"SdkAppId,omitempty" name:"SdkAppId"`

	// 房间号。
	RoomId *uint64 `json:"RoomId,omitempty" name:"RoomId"`

	// 要踢的用户列表,最多10个。
	UserIds []*string `json:"UserIds,omitempty" name:"UserIds" list`
}

func NewKickOutUserRequest

func NewKickOutUserRequest() (request *KickOutUserRequest)

func (*KickOutUserRequest) FromJsonString

func (r *KickOutUserRequest) FromJsonString(s string) error

func (*KickOutUserRequest) ToJsonString

func (r *KickOutUserRequest) ToJsonString() string

type KickOutUserResponse

type KickOutUserResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewKickOutUserResponse

func NewKickOutUserResponse() (response *KickOutUserResponse)

func (*KickOutUserResponse) FromJsonString

func (r *KickOutUserResponse) FromJsonString(s string) error

func (*KickOutUserResponse) ToJsonString

func (r *KickOutUserResponse) ToJsonString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL