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

com.sap.cloud.sdk.services.recastai.botresponses.VideoResponse 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;

/**
 * This class wraps around an URL linking to a video to be send to a conversation.
 */
@Beta
public class VideoResponse implements ResponseInterface
{
    @SerializedName( "type" )
    @Expose
    private final String type = "video";

    @SerializedName( "content" )
    @Expose
    private String content;

    /**
     * The contructor to generate a new Video Response with an URL
     * 
     * @param content
     *            a url to a video
     */
    public VideoResponse( @Nonnull final String content )
    {
        this.content = content;
    }

    /**
     * Returns the content of this response.
     * 
     * @return the url of this response
     */
    @Nullable
    public String getContent()
    {
        return content;
    }

    /**
     * Function to allow the change of the content url
     * 
     * @param content
     *            the new url
     */
    public void setContent( @Nonnull final String content )
    {
        this.content = content;
    }

    /**
     * returns the present type, which is immutable to the user. Follows the Response types of Recast
     * 
     * @return the type of this response (video)
     */
    @Nullable
    @Override
    public String getType()
    {
        return type;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy