
com.jdcloud.sdk.service.openjrtc.model.CreateTokenResult 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.
*
* Token
* 鉴权信息接口
*
* 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.service.JdcloudResult;
/**
* 生成token-用户加入房间时携带token校验通过后方能加入
*/
public class CreateTokenResult extends JdcloudResult implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* appId
*/
private String appId;
/**
* appKey
*/
private String appKey;
/**
* 业务接入方用户体系定义的且在JRTC系统内注册过的userId
*/
private String userId;
/**
* 业务接入方定义的且在JRTC系统内注册过的房间号
*/
private String userRoomId;
/**
* 随机令牌
*/
private String nonce;
/**
* 时间戳-毫秒
*/
private Long timestamp;
/**
* token
*/
private String token;
/**
* 是否可用(true-可用,false-不可用)
*/
private Boolean available;
/**
* get appId
*
* @return
*/
public String getAppId() {
return appId;
}
/**
* set appId
*
* @param appId
*/
public void setAppId(String appId) {
this.appId = appId;
}
/**
* get appKey
*
* @return
*/
public String getAppKey() {
return appKey;
}
/**
* set appKey
*
* @param appKey
*/
public void setAppKey(String appKey) {
this.appKey = appKey;
}
/**
* get 业务接入方用户体系定义的且在JRTC系统内注册过的userId
*
* @return
*/
public String getUserId() {
return userId;
}
/**
* set 业务接入方用户体系定义的且在JRTC系统内注册过的userId
*
* @param userId
*/
public void setUserId(String userId) {
this.userId = userId;
}
/**
* get 业务接入方定义的且在JRTC系统内注册过的房间号
*
* @return
*/
public String getUserRoomId() {
return userRoomId;
}
/**
* set 业务接入方定义的且在JRTC系统内注册过的房间号
*
* @param userRoomId
*/
public void setUserRoomId(String userRoomId) {
this.userRoomId = userRoomId;
}
/**
* get 随机令牌
*
* @return
*/
public String getNonce() {
return nonce;
}
/**
* set 随机令牌
*
* @param nonce
*/
public void setNonce(String nonce) {
this.nonce = nonce;
}
/**
* get 时间戳-毫秒
*
* @return
*/
public Long getTimestamp() {
return timestamp;
}
/**
* set 时间戳-毫秒
*
* @param timestamp
*/
public void setTimestamp(Long timestamp) {
this.timestamp = timestamp;
}
/**
* get token
*
* @return
*/
public String getToken() {
return token;
}
/**
* set token
*
* @param token
*/
public void setToken(String token) {
this.token = token;
}
/**
* get 是否可用(true-可用,false-不可用)
*
* @return
*/
public Boolean getAvailable() {
return available;
}
/**
* set 是否可用(true-可用,false-不可用)
*
* @param available
*/
public void setAvailable(Boolean available) {
this.available = available;
}
/**
* set appId
*
* @param appId
*/
public CreateTokenResult appId(String appId) {
this.appId = appId;
return this;
}
/**
* set appKey
*
* @param appKey
*/
public CreateTokenResult appKey(String appKey) {
this.appKey = appKey;
return this;
}
/**
* set 业务接入方用户体系定义的且在JRTC系统内注册过的userId
*
* @param userId
*/
public CreateTokenResult userId(String userId) {
this.userId = userId;
return this;
}
/**
* set 业务接入方定义的且在JRTC系统内注册过的房间号
*
* @param userRoomId
*/
public CreateTokenResult userRoomId(String userRoomId) {
this.userRoomId = userRoomId;
return this;
}
/**
* set 随机令牌
*
* @param nonce
*/
public CreateTokenResult nonce(String nonce) {
this.nonce = nonce;
return this;
}
/**
* set 时间戳-毫秒
*
* @param timestamp
*/
public CreateTokenResult timestamp(Long timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* set token
*
* @param token
*/
public CreateTokenResult token(String token) {
this.token = token;
return this;
}
/**
* set 是否可用(true-可用,false-不可用)
*
* @param available
*/
public CreateTokenResult available(Boolean available) {
this.available = available;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy