TokenResponse Clase

  • java.lang.Object
    • com.microsoft.bot.schema.TokenResponse

public class TokenResponse

Respuesta que incluye un token de usuario.

Resumen del constructor

Constructor Description
TokenResponse()

Inicializa una nueva instancia de la clase TokenResponse.

TokenResponse(String channelId, String connectionName, String token, String expiration)

Inicializa una nueva instancia de la clase TokenResponse.

Resumen del método

Modificador y tipo Método y descripción
java.lang.String getChannelId()

Obtiene el valor de id. decanal.

java.lang.String getConnectionName()

Obtenga el valorNombre de la conexión.

java.lang.String getExpiration()

Obtenga el valor de expiración.

java.lang.String getToken()

Obtenga el valor del token.

void setChannelId(String withChannelId)

Establece el valor de id. dede canal.

void setConnectionName(String withConnectionName)

Establezca el valorNombre de la conexión.

void setExpiration(String withExpiration)

Establezca el valor de expiración.

void setToken(String withToken)

Establezca el valor del token.

Métodos heredados de java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Detalles del constructor

TokenResponse

public TokenResponse()

Inicializa una nueva instancia de la clase TokenResponse.

TokenResponse

public TokenResponse(String channelId, String connectionName, String token, String expiration)

Inicializa una nueva instancia de la clase TokenResponse.

Parámetros:

channelId - ChannelId.
connectionName - ConnectionName.
token - Token.
expiration - expiración.

Detalles del método

getChannelId

public String getChannelId()

Obtiene el valor channelId.

Devoluciones:

Id. de canal de THe.

getConnectionName

public String getConnectionName()

Obtenga el valor connectionName.

Devoluciones:

el valor connectionName

getExpiration

public String getExpiration()

Obtenga el valor de expiración.

Devoluciones:

el valor de expiración

getToken

public String getToken()

Obtenga el valor del token.

Devoluciones:

el valor del token

setChannelId

public void setChannelId(String withChannelId)

Establece el valor channelId.

Parámetros:

withChannelId - Identificador del canal que se va a establecer.

setConnectionName

public void setConnectionName(String withConnectionName)

Establezca el valor connectionName.

Parámetros:

withConnectionName - valor connectionName que se va a establecer

setExpiration

public void setExpiration(String withExpiration)

Establezca el valor de expiración.

Parámetros:

withExpiration - valor de expiración que se va a establecer

setToken

public void setToken(String withToken)

Establezca el valor del token.

Parámetros:

withToken - el valor del token que se va a establecer

Se aplica a