ภาษา

AudioCard Class

Definition

Audio card.

public class AudioCard : Microsoft.Agents.Core.Models.Card
type AudioCard = class
    inherit Card
Public Class AudioCard
Inherits Card
Inheritance
AudioCard

Constructors

Name Description
AudioCard()

Initializes a new instance of AudioCard.

AudioCard(String, String, String, ThumbnailUrl, IList<MediaUrl>, IList<CardAction>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, Object, String)

Initializes a new instance of AudioCard.

Fields

Name Description
ContentType

The content type value of a AudioCard.

Properties

Name Description
Aspect

Aspect ratio of thumbnail/media placeholder. Allowed values are Standard and WideScreen.

Autoloop

Should the client loop playback at end of content (default:true).

Autostart

Should the client automatically start playback of media in this card (default:true).

Buttons

Actions on this card.

Duration

Describes the length of the media content without requiring a receiver to open the content. Formatted as an ISO 8601 Duration field.

Image

Thumbnail URL.

Media

Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.

Shareable

This content may be shared with others (default:true).

Subtitle

Subtitle of this card.

Text

Text of this card.

Title

Title of this card.

Value

Supplementary parameter for this card.

Methods

Name Description
AddButton(CardAction)

Adds a button and returns this card.

AddMedia(MediaUrl)

Adds a media URL and returns this card.

AddMedia(String, String)

Adds a media URL by string and returns this card.

ToAttachment()

Creates a new attachment from AudioCard.

ToMessage()

Creates a new message activity that includes this card as an attachment.

(Inherited from Card)

Extension Methods

Name Description
ToTeamsAttachment(AudioCard)

Wraps an AudioCard in a Teams Attachment with the appropriate content type.

Applies to