All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jdcloud.sdk.service.openjrtc.model.SendMessageToUserRequest Maven / Gradle / Ivy

/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * JrtcMessage
 * 自定义信令消息
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package com.jdcloud.sdk.service.openjrtc.model;

import com.jdcloud.sdk.annotation.Required;
import com.jdcloud.sdk.service.JdcloudRequest;

/**
 * 发送自定义信令给房间内的人员
 */
public class SendMessageToUserRequest extends JdcloudRequest implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 事件名称
     */
    private String eventName;

    /**
     * 自定义信令消息
     */
    private String message;

    /**
     * peerId
     */
    private Long peerId;

    /**
     * 应用ID
     * Required:true
     */
    @Required
    private String appId;

    /**
     * 房间ID
     * Required:true
     */
    @Required
    private Long roomId;


    /**
     * get 事件名称
     *
     * @return
     */
    public String getEventName() {
        return eventName;
    }

    /**
     * set 事件名称
     *
     * @param eventName
     */
    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    /**
     * get 自定义信令消息
     *
     * @return
     */
    public String getMessage() {
        return message;
    }

    /**
     * set 自定义信令消息
     *
     * @param message
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * get peerId
     *
     * @return
     */
    public Long getPeerId() {
        return peerId;
    }

    /**
     * set peerId
     *
     * @param peerId
     */
    public void setPeerId(Long peerId) {
        this.peerId = peerId;
    }

    /**
     * get 应用ID
     *
     * @return
     */
    public String getAppId() {
        return appId;
    }

    /**
     * set 应用ID
     *
     * @param appId
     */
    public void setAppId(String appId) {
        this.appId = appId;
    }

    /**
     * get 房间ID
     *
     * @return
     */
    public Long getRoomId() {
        return roomId;
    }

    /**
     * set 房间ID
     *
     * @param roomId
     */
    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }


    /**
     * set 事件名称
     *
     * @param eventName
     */
    public SendMessageToUserRequest eventName(String eventName) {
        this.eventName = eventName;
        return this;
    }

    /**
     * set 自定义信令消息
     *
     * @param message
     */
    public SendMessageToUserRequest message(String message) {
        this.message = message;
        return this;
    }

    /**
     * set peerId
     *
     * @param peerId
     */
    public SendMessageToUserRequest peerId(Long peerId) {
        this.peerId = peerId;
        return this;
    }

    /**
     * set 应用ID
     *
     * @param appId
     */
    public SendMessageToUserRequest appId(String appId) {
        this.appId = appId;
        return this;
    }

    /**
     * set 房间ID
     *
     * @param roomId
     */
    public SendMessageToUserRequest roomId(Long roomId) {
        this.roomId = roomId;
        return this;
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy