com.sap.cloud.sdk.services.recastai.botresponses.ButtonResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of recast-ai Show documentation
Show all versions of recast-ai Show documentation
Integration of SAP Conversational AI, aka Recast AI
(Beta release, still subject to change - up to discontinuation of module).
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.services.recastai.botresponses;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.google.common.annotations.Beta;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Represents all different types of button responses. They include Quick Replies and ButtonResponse. Each of them can
* be different types of buttons. Including phonenumber, a web url and a reply.
*/
@Beta
public class ButtonResponse implements ResponseInterface
{
@SerializedName( "type" )
@Expose
private String type = "buttons";
@SerializedName( "content" )
@Expose
private ButtonCollection> content;
/**
* Assumes buttons as a type - full button style instead of quick replies.
*
* @param content
* the ButtonCollection to be sent as content of this buttonresponse.
*/
public ButtonResponse( @Nonnull final ButtonCollection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy