CardImage Class

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

public class CardImage

An image on a card.

Constructor Summary

Constructor Description
CardImage()

Creates a new CardImage.

CardImage(String withUrl)

Creates a new CardImage with an initial URL.

Method Summary

Modifier and Type Method and Description
java.lang.String getAlt()

Get the alt value.

CardAction getTap()

Get the tap value.

java.lang.String getUrl()

Get the url value.

void setAlt(String withAlt)

Set the alt value.

void setTap(CardAction withTap)

Set the tap value.

void setUrl(String withUrl)

Set the url value.

Methods inherited from 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

Constructor Details

CardImage

public CardImage()

Creates a new CardImage.

CardImage

public CardImage(String withUrl)

Creates a new CardImage with an initial URL.

Parameters:

withUrl - The URL for the image.

Method Details

getAlt

public String getAlt()

Get the alt value.

Returns:

the alt value

getTap

public CardAction getTap()

Get the tap value.

Returns:

the tap value

getUrl

public String getUrl()

Get the url value.

Returns:

the url value

setAlt

public void setAlt(String withAlt)

Set the alt value.

Parameters:

withAlt - the alt value to set

setTap

public void setTap(CardAction withTap)

Set the tap value.

Parameters:

withTap - the tap value to set

setUrl

public void setUrl(String withUrl)

Set the url value.

Parameters:

withUrl - the url value to set

Applies to