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

com.sap.cloud.sdk.services.recastai.botresponses.ButtonResponse Maven / Gradle / Ivy

Go to download

Integration of SAP Conversational AI, aka Recast AI (Beta release, still subject to change - up to discontinuation of module).

There is a newer version: 2.28.0
Show newest version
/*
 * 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