Documentation
¶
Index ¶
- type Activity
- type AnimationCard
- type Attachment
- type AttachmentData
- type AttachmentInfo
- type AttachmentView
- type AudioCard
- type CardAction
- type CardImage
- type ChannelAccount
- type ConversationAccount
- type ConversationParameters
- type ConversationResourceResponse
- type Entity
- type Error
- type ErrorResponse
- type Fact
- type GeoCoordinates
- type HeroCard
- type MediaURL
- type Object
- type Place
- type ReceiptCard
- type ReceiptItem
- type ResourceResponse
- type SigninCard
- type ThumbnailCard
- type ThumbnailURL
- type VideoCard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { // ContactAdded/Removed action Action string `json:"action,omitempty"` // AttachmentLayout - hint for how to deal with multiple attachments Values: [list|carousel] Default:list AttachmentLayout string `json:"attachmentLayout,omitempty"` // Attachments Attachments []*Attachment `json:"attachments"` // Channel specific payload ChannelData Object `json:"channelData,omitempty"` // ChannelId the activity was on ChannelID string `json:"channelId,omitempty"` // Conversation Conversation *ConversationAccount `json:"conversation,omitempty"` // Collection of Entity objects, each of which contains metadata about this activity. Each Entity object is typed. Entities []*Entity `json:"entities"` // Sender address From *ChannelAccount `json:"from,omitempty"` // the previous history of the channel was disclosed HistoryDisclosed bool `json:"historyDisclosed,omitempty"` // Id for the activity ID string `json:"id,omitempty"` // Local time when message was sent (set by client Ex: 2016-09-23T13:07:49.4714686-07:00) LocalTimestamp strfmt.DateTime `json:"localTimestamp,omitempty"` // The language code of the Text field Locale string `json:"locale,omitempty"` // Array of address added MembersAdded []*ChannelAccount `json:"membersAdded"` // Array of addresses removed MembersRemoved []*ChannelAccount `json:"membersRemoved"` // (Outbound to bot only) Bot's address that received the message Recipient *ChannelAccount `json:"recipient,omitempty"` // the original id this message is a response to ReplyToID string `json:"replyToId,omitempty"` // Service endpoint ServiceURL string `json:"serviceUrl,omitempty"` // Text to display if you can't render cards Summary string `json:"summary,omitempty"` // Content for the message Text string `json:"text,omitempty"` // Format of text fields [plain|markdown] Default:markdown TextFormat string `json:"textFormat,omitempty"` // UTC Time when message was sent (Set by service) Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // Conversations new topic name TopicName string `json:"topicName,omitempty"` // The type of the activity [message|contactRelationUpdate|converationUpdate|typing] Type string `json:"type,omitempty"` // Open ended value Value Object `json:"value,omitempty"` }
Activity An Activity is the basic communication type for the Bot Framework 3.0 protocol swagger:model Activity
type AnimationCard ¶
type AnimationCard struct { // Should the client loop playback at end of content (default:true) Autoloop bool `json:"autoloop,omitempty"` // Should the client automatically start playback of video in this card (default:true) Autostart bool `json:"autostart,omitempty"` // Set of actions applicable to the current card Buttons []*CardAction `json:"buttons"` // Thumbnail placeholder Image *ThumbnailURL `json:"image,omitempty"` // Array of media Url objects Media []*MediaURL `json:"media"` Shareable bool `json:"shareable,omitempty"` // Subtitle of the card Subtitle string `json:"subtitle,omitempty"` // Text of the card Text string `json:"text,omitempty"` // Title of the card Title string `json:"title,omitempty"` }
AnimationCard An animation card (Ex: gif or short video clip) swagger:model AnimationCard
type Attachment ¶
type Attachment struct { // Embedded content Content Object `json:"content,omitempty"` // mimetype/Contenttype for the file ContentType string `json:"contentType,omitempty"` // Content Url ContentURL string `json:"contentUrl,omitempty"` // (OPTIONAL) The name of the attachment Name string `json:"name,omitempty"` // (OPTIONAL) Thumbnail associated with attachment ThumbnailURL string `json:"thumbnailUrl,omitempty"` }
Attachment An attachment within an activity swagger:model Attachment
type AttachmentData ¶
type AttachmentData struct { // Name of the attachment Name string `json:"name,omitempty"` // original content OriginalBase64 strfmt.Base64 `json:"originalBase64,omitempty"` // Thumbnail ThumbnailBase64 strfmt.Base64 `json:"thumbnailBase64,omitempty"` // content type of the attachmnet Type string `json:"type,omitempty"` }
AttachmentData Attachment data swagger:model AttachmentData
type AttachmentInfo ¶
type AttachmentInfo struct { // Name of the attachment Name string `json:"name,omitempty"` // ContentType of the attachment Type string `json:"type,omitempty"` // attachment views Views []*AttachmentView `json:"views"` }
AttachmentInfo Metdata for an attachment swagger:model AttachmentInfo
type AttachmentView ¶
type AttachmentView struct { // Name of the attachment Size int32 `json:"size,omitempty"` // content type of the attachmnet ViewID string `json:"viewId,omitempty"` }
AttachmentView Attachment View name and size swagger:model AttachmentView
type AudioCard ¶
type AudioCard struct { // Aspect ratio of thumbnail/media placeholder, allowed values are "16x9" and "9x16" Aspect string `json:"aspect,omitempty"` // Should the client loop playback at end of content (default:true) Autoloop bool `json:"autoloop,omitempty"` // Should the client automatically start playback of video in this card (default:true) Autostart bool `json:"autostart,omitempty"` // Set of actions applicable to the current card Buttons []*CardAction `json:"buttons"` // Thumbnail placeholder Image *ThumbnailURL `json:"image,omitempty"` // Array of media Url objects Media []*MediaURL `json:"media"` Shareable bool `json:"shareable,omitempty"` // Subtitle of the card Subtitle string `json:"subtitle,omitempty"` // Text of the card Text string `json:"text,omitempty"` // Title of the card Title string `json:"title,omitempty"` }
AudioCard A audio card swagger:model AudioCard
type CardAction ¶
type CardAction struct { // URL Picture which will appear on the button, next to text label. Image string `json:"image,omitempty"` // Text description which appear on the button. Title string `json:"title,omitempty"` // Defines the type of action implemented by this button. Type string `json:"type,omitempty"` // Supplementary parameter for action. Content of this property depends on the ActionType Value string `json:"value,omitempty"` }
CardAction An action on a card swagger:model CardAction
type CardImage ¶
type CardImage struct { // Image description intended for screen readers Alt string `json:"alt,omitempty"` // Action assigned to specific Attachment.E.g.navigate to specific URL or play/open media content Tap *CardAction `json:"tap,omitempty"` // URL Thumbnail image for major content property. URL string `json:"url,omitempty"` }
CardImage An image on a card swagger:model CardImage
type ChannelAccount ¶
type ChannelAccount struct { // Channel id for the user or bot on this channel (Example: joe@smith.com, or @joesmith or 123456) ID string `json:"id,omitempty"` // Display friendly name Name string `json:"name,omitempty"` }
ChannelAccount Channel account information needed to route a message swagger:model ChannelAccount
type ConversationAccount ¶
type ConversationAccount struct { // Channel id for the user or bot on this channel (Example: joe@smith.com, or @joesmith or 123456) ID string `json:"id,omitempty"` // Is this a reference to a group IsGroup bool `json:"isGroup,omitempty"` // Display friendly name Name string `json:"name,omitempty"` }
ConversationAccount Channel account information for a conversation swagger:model ConversationAccount
type ConversationParameters ¶
type ConversationParameters struct { // (Optional) When creating a new conversation, use this activity as the intial message to the conversation Activity *Activity `json:"activity,omitempty"` // The bot address for this conversation Bot *ChannelAccount `json:"bot,omitempty"` // Channel specific payload ChannelData Object `json:"channelData,omitempty"` // IsGroup IsGroup bool `json:"isGroup,omitempty"` // Members to add to the conversation Members []*ChannelAccount `json:"members"` // (Optional) Topic of the conversation (if supported by the channel) TopicName string `json:"topicName,omitempty"` }
ConversationParameters Parameters for creating a new conversation swagger:model ConversationParameters
type ConversationResourceResponse ¶
type ConversationResourceResponse struct { // Id of the Activity (if one was created) ActivityID string `json:"activityId,omitempty"` // Id of the resource ID string `json:"id,omitempty"` }
ConversationResourceResponse A response containing a resource swagger:model ConversationResourceResponse
type Entity ¶
type Entity struct { // Entity Type (typically from schema.org types) Type string `json:"type,omitempty"` }
Entity Object of schema.org types swagger:model Entity
type Error ¶
type Error struct { // Error code Code string `json:"code,omitempty"` // Error message Message string `json:"message,omitempty"` }
Error Object representing error information swagger:model Error
type ErrorResponse ¶
type ErrorResponse struct { // Error message Error *Error `json:"error,omitempty"` }
ErrorResponse An HTTP API response swagger:model ErrorResponse
type Fact ¶
type Fact struct { // The key for this Fact Key string `json:"key,omitempty"` // The value for this Fact Value string `json:"value,omitempty"` }
Fact Set of key-value pairs. Advantage of this section is that key and value properties will be
rendered with default style information with some delimiter between them. So there is no need for developer to specify style information.
swagger:model Fact
type GeoCoordinates ¶
type GeoCoordinates struct { // Elevation of the location [WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System) Elevation float64 `json:"elevation,omitempty"` // Latitude of the location [WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System) Latitude float64 `json:"latitude,omitempty"` // Longitude of the location [WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System) Longitude float64 `json:"longitude,omitempty"` // The name of the thing Name string `json:"name,omitempty"` // The type of the thing Type string `json:"type,omitempty"` }
GeoCoordinates GeoCoordinates (entity type: "https://schema.org/GeoCoordinates") swagger:model GeoCoordinates
type HeroCard ¶
type HeroCard struct { // Set of actions applicable to the current card Buttons []*CardAction `json:"buttons"` // Array of images for the card Images []*CardImage `json:"images"` // Subtitle of the card Subtitle string `json:"subtitle,omitempty"` // This action will be activated when user taps on the card itself Tap *CardAction `json:"tap,omitempty"` // Text for the card Text string `json:"text,omitempty"` // Title of the card Title string `json:"title,omitempty"` }
HeroCard A Hero card (card with a single, large image) swagger:model HeroCard
type MediaURL ¶
type MediaURL struct { // Optional profile hint to the client to differentiate multiple MediaUrl objects from each other Profile string `json:"profile,omitempty"` // Url for the media URL string `json:"url,omitempty"` }
MediaURL MediaUrl data swagger:model MediaUrl
type Place ¶
type Place struct { // Address of the place (may be `string` or complex object of type `PostalAddress`) Address Object `json:"address,omitempty"` // Geo coordinates of the place (may be complex object of type `GeoCoordinates` or `GeoShape`) Geo Object `json:"geo,omitempty"` // Map to the place (may be `string` (URL) or complex object of type `Map`) HasMap Object `json:"hasMap,omitempty"` // The name of the thing Name string `json:"name,omitempty"` // The type of the thing Type string `json:"type,omitempty"` }
Place Place (entity type: "https://schema.org/Place") swagger:model Place
type ReceiptCard ¶
type ReceiptCard struct { // Set of actions applicable to the current card Buttons []*CardAction `json:"buttons"` // Array of Fact Objects Array of key-value pairs. Facts []*Fact `json:"facts"` // Array of Receipt Items Items []*ReceiptItem `json:"items"` // This action will be activated when user taps on the card Tap *CardAction `json:"tap,omitempty"` // Total amount of TAX paid(or should be paid) Tax string `json:"tax,omitempty"` // Title of the card Title string `json:"title,omitempty"` // Total amount of money paid (or should be paid) Total string `json:"total,omitempty"` // Total amount of VAT paid(or should be paid) Vat string `json:"vat,omitempty"` }
ReceiptCard A receipt card swagger:model ReceiptCard
type ReceiptItem ¶
type ReceiptItem struct { // Image Image *CardImage `json:"image,omitempty"` // Amount with currency Price string `json:"price,omitempty"` // Number of items of given kind Quantity string `json:"quantity,omitempty"` // Subtitle appears just below Title field, differs from Title in font styling only Subtitle string `json:"subtitle,omitempty"` // This action will be activated when user taps on the Item bubble. Tap *CardAction `json:"tap,omitempty"` // Text field appears just below subtitle, differs from Subtitle in font styling only Text string `json:"text,omitempty"` // Title of the Card Title string `json:"title,omitempty"` }
ReceiptItem An item on a receipt card swagger:model ReceiptItem
type ResourceResponse ¶
type ResourceResponse struct { // Id of the resource ID string `json:"id,omitempty"` }
ResourceResponse A response containing a resource ID swagger:model ResourceResponse
type SigninCard ¶
type SigninCard struct { // Action to use to perform signin Buttons []*CardAction `json:"buttons"` // Text for signin request Text string `json:"text,omitempty"` }
SigninCard A card representing a request to sign in swagger:model SigninCard
type ThumbnailCard ¶
type ThumbnailCard struct { // Set of actions applicable to the current card Buttons []*CardAction `json:"buttons"` // Array of images for the card Images []*CardImage `json:"images"` // Subtitle of the card Subtitle string `json:"subtitle,omitempty"` // This action will be activated when user taps on the card itself Tap *CardAction `json:"tap,omitempty"` // Text for the card Text string `json:"text,omitempty"` // Title of the card Title string `json:"title,omitempty"` }
ThumbnailCard A thumbnail card (card with a single, small thumbnail image) swagger:model ThumbnailCard
type ThumbnailURL ¶
type ThumbnailURL struct { // Alt text to display for screen readers on the thumbnail image Alt string `json:"alt,omitempty"` // url pointing to an thumbnail to use for media content URL string `json:"url,omitempty"` }
ThumbnailURL Object describing a media thumbnail swagger:model ThumbnailUrl
type VideoCard ¶
type VideoCard struct { // Should the client loop playback at end of content (default:true) Autoloop bool `json:"autoloop,omitempty"` // Should the client automatically start playback of video in this card (default:true) Autostart bool `json:"autostart,omitempty"` // Set of actions applicable to the current card Buttons []*CardAction `json:"buttons"` // Thumbnail placeholder Image *ThumbnailURL `json:"image,omitempty"` // Array of media Url objects Media []*MediaURL `json:"media"` Shareable bool `json:"shareable,omitempty"` // Subtitle of the card Subtitle string `json:"subtitle,omitempty"` // Text of the card Text string `json:"text,omitempty"` // Title of the card Title string `json:"title,omitempty"` }
VideoCard A video card swagger:model VideoCard
Source Files
¶
- activity.go
- animation_card.go
- attachment.go
- attachment_data.go
- attachment_info.go
- attachment_view.go
- audio_card.go
- card_action.go
- card_image.go
- channel_account.go
- conversation_account.go
- conversation_parameters.go
- conversation_resource_response.go
- entity.go
- error.go
- error_response.go
- fact.go
- geo_coordinates.go
- hero_card.go
- media_url.go
- object.go
- place.go
- receipt_card.go
- receipt_item.go
- resource_response.go
- signin_card.go
- thumbnail_card.go
- thumbnail_url.go
- video_card.go