Added Jackson annotation to not output null or empty fields.
This commit is contained in:
Родитель
5ce699cf4d
Коммит
a55420cb95
|
@ -8,6 +8,9 @@ package com.microsoft.bot.schema;
|
|||
|
||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
|
@ -18,6 +21,7 @@ import java.time.LocalDateTime;
|
|||
import java.time.OffsetDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -37,18 +41,22 @@ public class Activity {
|
|||
* The {@link ActivityTypes} of the activity.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* Contains an ID that uniquely identifies the activity on the channel.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Contains the date and time that the message was sent, in UTC, expressed in ISO-8601 format.
|
||||
*/
|
||||
@JsonProperty(value = "timestamp")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm'Z'", timezone = "UTC")
|
||||
private OffsetDateTime timestamp;
|
||||
|
||||
/**
|
||||
|
@ -56,6 +64,8 @@ public class Activity {
|
|||
* For example, 2016-09-23T13:07:49.4714686-07:00.
|
||||
*/
|
||||
@JsonProperty(value = "localTimestamp")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm'Z'")
|
||||
private OffsetDateTime localTimestamp;
|
||||
|
||||
/**
|
||||
|
@ -63,6 +73,7 @@ public class Activity {
|
|||
* For example, America/Los_Angeles.
|
||||
*/
|
||||
@JsonProperty(value = "localTimezone")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String localTimezone;
|
||||
|
||||
/**
|
||||
|
@ -71,36 +82,42 @@ public class Activity {
|
|||
* that asserts the identity of the callers (e.g. tokens).
|
||||
*/
|
||||
@JsonProperty(value = "callerId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String callerId;
|
||||
|
||||
/**
|
||||
* Contains the URL that specifies the channel's service endpoint. Set by the channel.
|
||||
*/
|
||||
@JsonProperty(value = "serviceUrl")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String serviceUrl;
|
||||
|
||||
/**
|
||||
* Contains an ID that uniquely identifies the channel. Set by the channel.
|
||||
*/
|
||||
@JsonProperty(value = "channelId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String channelId;
|
||||
|
||||
/**
|
||||
* Identifies the sender of the message.
|
||||
*/
|
||||
@JsonProperty(value = "from")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ChannelAccount from;
|
||||
|
||||
/**
|
||||
* Identifies the conversation to which the activity belongs.
|
||||
*/
|
||||
@JsonProperty(value = "conversation")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ConversationAccount conversation;
|
||||
|
||||
/**
|
||||
* Identifies the recipient of the message.
|
||||
*/
|
||||
@JsonProperty(value = "recipient")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ChannelAccount recipient;
|
||||
|
||||
/**
|
||||
|
@ -108,48 +125,56 @@ public class Activity {
|
|||
* 'markdown', 'plain', 'xml'.
|
||||
*/
|
||||
@JsonProperty(value = "textFormat")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private TextFormatTypes textFormat;
|
||||
|
||||
/**
|
||||
* The layout hint for multiple attachments. Default: list.
|
||||
*/
|
||||
@JsonProperty(value = "attachmentLayout")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private AttachmentLayoutTypes attachmentLayout;
|
||||
|
||||
/**
|
||||
* The collection of members added to the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "membersAdded")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ChannelAccount> membersAdded;
|
||||
|
||||
/**
|
||||
* The collection of members removed from the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "membersRemoved")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ChannelAccount> membersRemoved;
|
||||
|
||||
/**
|
||||
* The collection of reactions added to the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "reactionsAdded")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<MessageReaction> reactionsAdded;
|
||||
|
||||
/**
|
||||
* The collection of reactions removed from the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "reactionsRemoved")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<MessageReaction> reactionsRemoved;
|
||||
|
||||
/**
|
||||
* The updated topic name of the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "topicName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String topicName;
|
||||
|
||||
/**
|
||||
* Indicates whether the prior history of the channel is disclosed.
|
||||
*/
|
||||
@JsonProperty(value = "historyDisclosed")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean historyDisclosed;
|
||||
|
||||
/**
|
||||
|
@ -160,18 +185,21 @@ public class Activity {
|
|||
* The locale name can also correspond to a valid BCP-47 language tag.
|
||||
*/
|
||||
@JsonProperty(value = "locale")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String locale;
|
||||
|
||||
/**
|
||||
* The text content of the message.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* The text to speak.
|
||||
*/
|
||||
@JsonProperty(value = "speak")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String speak;
|
||||
|
||||
/**
|
||||
|
@ -179,94 +207,110 @@ public class Activity {
|
|||
* is delivered to the client.
|
||||
*/
|
||||
@JsonProperty(value = "inputHint")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private InputHints inputHint;
|
||||
/**
|
||||
* The text to display if the channel cannot render cards.
|
||||
*/
|
||||
@JsonProperty(value = "summary")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String summary;
|
||||
|
||||
/**
|
||||
* The suggested actions for the activity.
|
||||
*/
|
||||
@JsonProperty(value = "suggestedActions")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private SuggestedActions suggestedActions;
|
||||
|
||||
/**
|
||||
* Attachments.
|
||||
*/
|
||||
@JsonProperty(value = "attachments")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<Attachment> attachments;
|
||||
|
||||
/**
|
||||
* Represents the entities that were mentioned in the message.
|
||||
*/
|
||||
@JsonProperty(value = "entities")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<Entity> entities;
|
||||
|
||||
/**
|
||||
* Contains channel-specific content.
|
||||
*/
|
||||
@JsonProperty(value = "channelData")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object channelData;
|
||||
/**
|
||||
* Indicates whether the recipient of a contactRelationUpdate was added or removed from the sender's contact list.
|
||||
*/
|
||||
@JsonProperty(value = "action")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String action;
|
||||
|
||||
/**
|
||||
* Contains the ID of the message to which this message is a reply.
|
||||
*/
|
||||
@JsonProperty(value = "replyToId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String replyToId;
|
||||
|
||||
/**
|
||||
* A descriptive label for the activity.
|
||||
*/
|
||||
@JsonProperty(value = "label")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* The type of the activity's value object.
|
||||
*/
|
||||
@JsonProperty(value = "valueType")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String valueType;
|
||||
|
||||
/**
|
||||
* A value that is associated with the activity.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
* The name of the operation associated with an invoke or event activity.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* A reference to another conversation or activity.
|
||||
*/
|
||||
@JsonProperty(value = "relatesTo")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ConversationReference relatesTo;
|
||||
|
||||
/**
|
||||
* The a code for endOfConversation activities that indicates why the conversation ended.
|
||||
*/
|
||||
@JsonProperty(value = "code")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private EndOfConversationCodes code;
|
||||
|
||||
/**
|
||||
* The time at which the activity should be considered to be expired and should not be presented to the recipient.
|
||||
*/
|
||||
@JsonProperty(value = "expiration")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private LocalDateTime expiration;
|
||||
|
||||
/**
|
||||
* The importance of the activity.
|
||||
*/
|
||||
@JsonProperty(value = "importance")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String importance;
|
||||
|
||||
/**
|
||||
|
@ -275,18 +319,21 @@ public class Activity {
|
|||
* The default delivery mode is \"default\".
|
||||
*/
|
||||
@JsonProperty(value = "deliveryMode")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String deliveryMode;
|
||||
|
||||
/**
|
||||
* List of phrases and references that speech and language priming systems should listen for.
|
||||
*/
|
||||
@JsonProperty(value = "listenFor")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> listenFor;
|
||||
|
||||
/**
|
||||
* The collection of text fragments to highlight when the activity contains a ReplyToId value.
|
||||
*/
|
||||
@JsonProperty(value = "textHighlights")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<TextHighlight> textHighlights;
|
||||
|
||||
/**
|
||||
|
@ -1228,7 +1275,12 @@ public class Activity {
|
|||
*
|
||||
* @return The array of mentions; or an empty array, if none are found.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public List<Mention> getMentions() {
|
||||
if (this.getEntities() == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
return this.getEntities().stream()
|
||||
.filter(entity -> entity.getType().equalsIgnoreCase("mention"))
|
||||
.map(entity -> entity.getAs(Mention.class))
|
||||
|
@ -1275,6 +1327,7 @@ public class Activity {
|
|||
* Creates a {@link ConversationReference} based on this activity.
|
||||
* @return A conversation reference for the conversation that contains this activity.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public ConversationReference getConversationReference() {
|
||||
return new ConversationReference() {{
|
||||
setActivityId(Activity.this.getId());
|
||||
|
@ -1292,6 +1345,7 @@ public class Activity {
|
|||
* @param reply ResourceResponse returned from sendActivity.
|
||||
* @return A ConversationReference that can be stored and used later to delete or update the activity.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public ConversationReference getReplyConversationReference(ResourceResponse reply) {
|
||||
ConversationReference reference = getConversationReference();
|
||||
reference.setActivityId(reply.getId());
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,24 +19,28 @@ public class AnimationCard {
|
|||
* Title of this card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of this card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text of this card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Thumbnail placeholder.
|
||||
*/
|
||||
@JsonProperty(value = "image")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ThumbnailUrl image;
|
||||
|
||||
/**
|
||||
|
@ -43,24 +48,28 @@ public class AnimationCard {
|
|||
* format of the same content.
|
||||
*/
|
||||
@JsonProperty(value = "media")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<MediaUrl> media;
|
||||
|
||||
/**
|
||||
* Actions on this card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
* This content may be shared with others (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "shareable")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean shareable;
|
||||
|
||||
/**
|
||||
* Should the client loop playback at end of content (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "autoloop")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean autoloop;
|
||||
|
||||
/**
|
||||
|
@ -75,6 +84,7 @@ public class AnimationCard {
|
|||
* and "4:3".
|
||||
*/
|
||||
@JsonProperty(value = "aspect")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String aspect;
|
||||
|
||||
/**
|
||||
|
@ -82,12 +92,14 @@ public class AnimationCard {
|
|||
* an ISO 8601 Duration field.
|
||||
*/
|
||||
@JsonProperty(value = "duration")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String duration;
|
||||
|
||||
/**
|
||||
* Supplementary parameter for this card.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,7 @@ package com.microsoft.bot.schema;
|
|||
|
||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
|
||||
|
@ -25,30 +26,35 @@ public class Attachment {
|
|||
* mimetype/Contenttype for the file.
|
||||
*/
|
||||
@JsonProperty(value = "contentType")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String contentType;
|
||||
|
||||
/**
|
||||
* Content Url.
|
||||
*/
|
||||
@JsonProperty(value = "contentUrl")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String contentUrl;
|
||||
|
||||
/**
|
||||
* Embedded content.
|
||||
*/
|
||||
@JsonProperty(value = "content")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object content;
|
||||
|
||||
/**
|
||||
* (OPTIONAL) The name of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* (OPTIONAL) Thumbnail associated with attachment.
|
||||
*/
|
||||
@JsonProperty(value = "thumbnailUrl")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String thumbnailUrl;
|
||||
/**
|
||||
* Holds the overflow properties that aren't first class
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,24 +17,28 @@ public class AttachmentData {
|
|||
* Content-Type of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* Name of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* Attachment content.
|
||||
*/
|
||||
@JsonProperty(value = "originalBase64")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private byte[] originalBase64;
|
||||
|
||||
/**
|
||||
* Attachment thumbnail.
|
||||
*/
|
||||
@JsonProperty(value = "thumbnailBase64")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private byte[] thumbnailBase64;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,18 +19,21 @@ public class AttachmentInfo {
|
|||
* Name of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* ContentType of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* attachment views.
|
||||
*/
|
||||
@JsonProperty(value = "views")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<AttachmentView> views;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,14 @@ public class AttachmentView {
|
|||
* Id of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "viewId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String viewId;
|
||||
|
||||
/**
|
||||
* Size of the attachment.
|
||||
*/
|
||||
@JsonProperty(value = "size")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Integer size;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,24 +19,28 @@ public class AudioCard {
|
|||
* Title of this card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of this card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text of this card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Thumbnail placeholder.
|
||||
*/
|
||||
@JsonProperty(value = "image")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ThumbnailUrl image;
|
||||
|
||||
/**
|
||||
|
@ -43,24 +48,28 @@ public class AudioCard {
|
|||
* alternative format of the same content.
|
||||
*/
|
||||
@JsonProperty(value = "media")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<MediaUrl> media;
|
||||
|
||||
/**
|
||||
* Actions on this card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
* This content may be shared with others (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "shareable")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean shareable;
|
||||
|
||||
/**
|
||||
* Should the client loop playback at end of content (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "autoloop")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean autoloop;
|
||||
|
||||
/**
|
||||
|
@ -68,6 +77,7 @@ public class AudioCard {
|
|||
* (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "autostart")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean autostart;
|
||||
|
||||
/**
|
||||
|
@ -75,6 +85,7 @@ public class AudioCard {
|
|||
* and "4:3".
|
||||
*/
|
||||
@JsonProperty(value = "aspect")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String aspect;
|
||||
|
||||
/**
|
||||
|
@ -82,12 +93,14 @@ public class AudioCard {
|
|||
* ISO 8601 Duration field.
|
||||
*/
|
||||
@JsonProperty(value = "duration")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String duration;
|
||||
|
||||
/**
|
||||
* Supplementary parameter for this card.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,36 +19,42 @@ public class BasicCard {
|
|||
* Title of the card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of the card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text for the card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Array of images for the card.
|
||||
*/
|
||||
@JsonProperty(value = "images")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardImage> images;
|
||||
|
||||
/**
|
||||
* Set of actions applicable to the current card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
* This action will be activated when user taps on the card itself.
|
||||
*/
|
||||
@JsonProperty(value = "tap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardAction tap;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -18,30 +19,35 @@ public class CardAction {
|
|||
* 'downloadFile', 'signin', 'call', 'payment', 'messageBack'.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ActionTypes type;
|
||||
|
||||
/**
|
||||
* Text description which appears on the button.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Image URL which will appear on the button, next to text label.
|
||||
*/
|
||||
@JsonProperty(value = "image")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String image;
|
||||
|
||||
/**
|
||||
* Text for this action.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* (Optional) text to display in the chat feed if the button is clicked.
|
||||
*/
|
||||
@JsonProperty(value = "displayText")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String displayText;
|
||||
|
||||
/**
|
||||
|
@ -49,12 +55,14 @@ public class CardAction {
|
|||
* the ActionType.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
* Channel-specific data associated with this action.
|
||||
*/
|
||||
@JsonProperty(value = "channelData")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object channelData;
|
||||
|
||||
public static CardAction clone(CardAction cardAction) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,18 +17,21 @@ public class CardImage {
|
|||
* URL thumbnail image for major content property.
|
||||
*/
|
||||
@JsonProperty(value = "url")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* Image description intended for screen readers.
|
||||
*/
|
||||
@JsonProperty(value = "alt")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String alt;
|
||||
|
||||
/**
|
||||
* Action assigned to specific Attachment.
|
||||
*/
|
||||
@JsonProperty(value = "tap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardAction tap;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,7 @@ package com.microsoft.bot.schema;
|
|||
|
||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
|
||||
|
@ -26,18 +27,21 @@ public class ChannelAccount {
|
|||
* or @joesmith or 123456).
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Display friendly name.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This account's object ID within Azure Active Directory (AAD).
|
||||
*/
|
||||
@JsonProperty(value = "aadObjectId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String aadObjectId;
|
||||
|
||||
/**
|
||||
|
@ -45,6 +49,7 @@ public class ChannelAccount {
|
|||
* Possible values include: 'user', 'bot'.
|
||||
*/
|
||||
@JsonProperty(value = "role")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private RoleTypes role;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,7 @@ package com.microsoft.bot.schema;
|
|||
|
||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
|
||||
|
@ -30,12 +31,14 @@ public class ConversationAccount {
|
|||
* between conversation types.
|
||||
*/
|
||||
@JsonProperty(value = "conversationType")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String conversationType;
|
||||
|
||||
/**
|
||||
* This conversation's tenant ID.
|
||||
*/
|
||||
@JsonProperty(value = "tenantId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
|
@ -43,18 +46,21 @@ public class ConversationAccount {
|
|||
* or @joesmith or 123456).
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Display friendly name.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This account's object ID within Azure Active Directory (AAD).
|
||||
*/
|
||||
@JsonProperty(value = "aadObjectId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String aadObjectId;
|
||||
|
||||
/**
|
||||
|
@ -62,6 +68,7 @@ public class ConversationAccount {
|
|||
* Possible values include: 'user', 'bot'.
|
||||
*/
|
||||
@JsonProperty(value = "role")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private RoleTypes role;
|
||||
|
||||
public ConversationAccount() {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,12 +19,14 @@ public class ConversationMembers {
|
|||
* Conversation ID.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* List of members in this conversation.
|
||||
*/
|
||||
@JsonProperty(value = "members")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ChannelAccount> members;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -24,24 +25,28 @@ public class ConversationParameters {
|
|||
* The bot address for this conversation.
|
||||
*/
|
||||
@JsonProperty(value = "bot")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ChannelAccount bot;
|
||||
|
||||
/**
|
||||
* Members to add to the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "members")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ChannelAccount> members;
|
||||
|
||||
/**
|
||||
* (Optional) Topic of the conversation (if supported by the channel).
|
||||
*/
|
||||
@JsonProperty(value = "topicName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String topicName;
|
||||
|
||||
/**
|
||||
* (Optional) The tenant ID in which the conversation should be created.
|
||||
*/
|
||||
@JsonProperty(value = "tenantId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
|
@ -49,12 +54,14 @@ public class ConversationParameters {
|
|||
* intial message to the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "activity")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Activity activity;
|
||||
|
||||
/**
|
||||
* Channel specific payload for creating the conversation.
|
||||
*/
|
||||
@JsonProperty(value = "channelData")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object channelData;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,7 @@ package com.microsoft.bot.schema;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -18,30 +19,35 @@ public class ConversationReference {
|
|||
* (Optional) ID of the activity to refer to.
|
||||
*/
|
||||
@JsonProperty(value = "activityId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String activityId;
|
||||
|
||||
/**
|
||||
* (Optional) User participating in this conversation.
|
||||
*/
|
||||
@JsonProperty(value = "user")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ChannelAccount user;
|
||||
|
||||
/**
|
||||
* Bot participating in this conversation.
|
||||
*/
|
||||
@JsonProperty(value = "bot")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ChannelAccount bot;
|
||||
|
||||
/**
|
||||
* Conversation reference.
|
||||
*/
|
||||
@JsonProperty(value = "conversation")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ConversationAccount conversation;
|
||||
|
||||
/**
|
||||
* Channel ID.
|
||||
*/
|
||||
@JsonProperty(value = "channelId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String channelId;
|
||||
|
||||
/**
|
||||
|
@ -49,6 +55,7 @@ public class ConversationReference {
|
|||
* may be performed.
|
||||
*/
|
||||
@JsonProperty(value = "serviceUrl")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String serviceUrl;
|
||||
|
||||
public static ConversationReference clone(ConversationReference conversationReference) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,6 +17,7 @@ public class ConversationResourceResponse {
|
|||
* ID of the Activity (if sent).
|
||||
*/
|
||||
@JsonProperty(value = "activityId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String activityId;
|
||||
|
||||
/**
|
||||
|
@ -23,12 +25,14 @@ public class ConversationResourceResponse {
|
|||
* performed.
|
||||
*/
|
||||
@JsonProperty(value = "serviceUrl")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String serviceUrl;
|
||||
|
||||
/**
|
||||
* Id of the resource.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,12 +19,14 @@ public class ConversationsResult {
|
|||
* Paging token.
|
||||
*/
|
||||
@JsonProperty(value = "continuationToken")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String continuationToken;
|
||||
|
||||
/**
|
||||
* List of conversations.
|
||||
*/
|
||||
@JsonProperty(value = "conversations")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ConversationMembers> conversations;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,7 @@ package com.microsoft.bot.schema;
|
|||
|
||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
|
@ -24,7 +25,12 @@ import java.util.stream.Collectors;
|
|||
* Metadata object pertaining to an activity.
|
||||
*/
|
||||
public class Entity {
|
||||
private ObjectMapper objectMapper = new ObjectMapper();
|
||||
private static ObjectMapper objectMapper;
|
||||
|
||||
static {
|
||||
objectMapper = new ObjectMapper();
|
||||
objectMapper.findAndRegisterModules();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
|
@ -34,6 +40,7 @@ public class Entity {
|
|||
* Type of this entity (RFC 3987 IRI).
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
public static Entity clone(Entity entity) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,18 +17,21 @@ public class Error {
|
|||
* Error code.
|
||||
*/
|
||||
@JsonProperty(value = "code")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* Error message.
|
||||
*/
|
||||
@JsonProperty(value = "message")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String message;
|
||||
|
||||
/**
|
||||
* Error from inner http call
|
||||
*/
|
||||
@JsonProperty(value = "innerHttpError")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private InnerHttpError innerHttpError;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -20,6 +21,7 @@ public class ErrorResponse {
|
|||
* Error message.
|
||||
*/
|
||||
@JsonProperty(value = "error")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Error error;
|
||||
|
||||
public ErrorResponse(Error withError) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -19,12 +20,14 @@ public class Fact {
|
|||
* The key for this Fact.
|
||||
*/
|
||||
@JsonProperty(value = "key")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* The value for this Fact.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String value;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -37,12 +38,14 @@ public class GeoCoordinates implements EntitySerialization {
|
|||
* The type of the thing.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* The name of the thing.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
public GeoCoordinates() {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,36 +19,42 @@ public class HeroCard {
|
|||
* Title of the card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of the card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text for the card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Array of images for the card.
|
||||
*/
|
||||
@JsonProperty(value = "images")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardImage> images;
|
||||
|
||||
/**
|
||||
* Set of actions applicable to the current card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
* This action will be activated when user taps on the card itself.
|
||||
*/
|
||||
@JsonProperty(value = "tap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardAction tap;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,14 @@ public class InnerHttpError {
|
|||
* HttpStatusCode from failed request.
|
||||
*/
|
||||
@JsonProperty(value = "statusCode")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private int statusCode;
|
||||
|
||||
/**
|
||||
* Body from failed request.
|
||||
*/
|
||||
@JsonProperty(value = "body")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object body;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,36 +19,42 @@ public class MediaCard {
|
|||
* Title of this card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of this card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text of this card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Thumbnail placeholder.
|
||||
*/
|
||||
@JsonProperty(value = "image")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ThumbnailUrl image;
|
||||
|
||||
/**
|
||||
* Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.
|
||||
*/
|
||||
@JsonProperty(value = "media")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<MediaUrl> media;
|
||||
|
||||
/**
|
||||
* Actions on this card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
|
@ -74,6 +81,7 @@ public class MediaCard {
|
|||
* and "4:3".
|
||||
*/
|
||||
@JsonProperty(value = "aspect")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String aspect;
|
||||
|
||||
/**
|
||||
|
@ -81,12 +89,14 @@ public class MediaCard {
|
|||
* Formatted as an ISO 8601 Duration field.
|
||||
*/
|
||||
@JsonProperty(value = "duration")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String duration;
|
||||
|
||||
/**
|
||||
* Supplementary parameter for this card.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -17,6 +18,7 @@ public class MediaEventValue {
|
|||
* originated this event.
|
||||
*/
|
||||
@JsonProperty(value = "cardValue")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object cardValue;
|
||||
|
||||
public MediaEventValue(Object withCardValue) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,6 +17,7 @@ public class MediaUrl {
|
|||
* Url for the media.
|
||||
*/
|
||||
@JsonProperty(value = "url")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String url;
|
||||
|
||||
/**
|
||||
|
@ -23,6 +25,7 @@ public class MediaUrl {
|
|||
* objects from each other.
|
||||
*/
|
||||
@JsonProperty(value = "profile")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String profile;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,18 +17,21 @@ public class Mention implements EntitySerialization {
|
|||
* The mentioned user.
|
||||
*/
|
||||
@JsonProperty(value = "mentioned")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ChannelAccount mentioned;
|
||||
|
||||
/**
|
||||
* Sub Text which represents the mention (can be null or empty).
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Type of this entity (RFC 3987 IRI).
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
public Mention() {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -20,6 +21,7 @@ public class MessageReaction {
|
|||
* Message reaction type. Possible values include: 'like', 'plusOne'.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
public static MessageReaction clone(MessageReaction messageReaction) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,18 +19,21 @@ public class MicrosoftPayMethodData {
|
|||
* Microsoft Pay Merchant ID.
|
||||
*/
|
||||
@JsonProperty(value = "merchantId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String merchantId;
|
||||
|
||||
/**
|
||||
* Supported payment networks (e.g., "visa" and "mastercard").
|
||||
*/
|
||||
@JsonProperty(value = "supportedNetworks")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> supportedNetworks;
|
||||
|
||||
/**
|
||||
* Supported payment types (e.g., "credit").
|
||||
*/
|
||||
@JsonProperty(value = "supportedTypes")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> supportedTypes;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,18 +19,21 @@ public class OAuthCard {
|
|||
* Text for signin request.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* The name of the registered connection.
|
||||
*/
|
||||
@JsonProperty(value = "connectionName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String connectionName;
|
||||
|
||||
/**
|
||||
* Action to use to perform signin.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -16,12 +17,14 @@ import java.util.List;
|
|||
public class PagedMembersResult {
|
||||
|
||||
@JsonProperty(value = "continuationToken")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String continuationToken;
|
||||
|
||||
/**
|
||||
* List of members in this conversation.
|
||||
*/
|
||||
@JsonProperty(value = "members")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ChannelAccount> members;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -19,6 +20,7 @@ public class PaymentAddress {
|
|||
* example, US, GB, CN, or JP.
|
||||
*/
|
||||
@JsonProperty(value = "country")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String country;
|
||||
|
||||
/**
|
||||
|
@ -27,6 +29,7 @@ public class PaymentAddress {
|
|||
* delivery route, descriptive instructions, or a post office box number.
|
||||
*/
|
||||
@JsonProperty(value = "addressLine")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> addressLine;
|
||||
|
||||
/**
|
||||
|
@ -34,12 +37,14 @@ public class PaymentAddress {
|
|||
* example, this can be a state, a province, an oblast, or a prefecture.
|
||||
*/
|
||||
@JsonProperty(value = "region")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String region;
|
||||
|
||||
/**
|
||||
* This is the city/town portion of the address.
|
||||
*/
|
||||
@JsonProperty(value = "city")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String city;
|
||||
|
||||
/**
|
||||
|
@ -48,18 +53,21 @@ public class PaymentAddress {
|
|||
* localities.
|
||||
*/
|
||||
@JsonProperty(value = "dependentLocality")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String dependentLocality;
|
||||
|
||||
/**
|
||||
* This is the postal code or ZIP code, also known as PIN code in India.
|
||||
*/
|
||||
@JsonProperty(value = "postalCode")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String postalCode;
|
||||
|
||||
/**
|
||||
* This is the sorting code as used in, for example, France.
|
||||
*/
|
||||
@JsonProperty(value = "sortingCode")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String sortingCode;
|
||||
|
||||
/**
|
||||
|
@ -68,24 +76,28 @@ public class PaymentAddress {
|
|||
* for display.
|
||||
*/
|
||||
@JsonProperty(value = "languageCode")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String languageCode;
|
||||
|
||||
/**
|
||||
* This is the organization, firm, company, or institution at this address.
|
||||
*/
|
||||
@JsonProperty(value = "organization")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String organization;
|
||||
|
||||
/**
|
||||
* This is the name of the recipient or contact person.
|
||||
*/
|
||||
@JsonProperty(value = "recipient")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String recipient;
|
||||
|
||||
/**
|
||||
* This is the phone number of the recipient or contact person.
|
||||
*/
|
||||
@JsonProperty(value = "phone")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,18 +17,21 @@ public class PaymentCurrencyAmount {
|
|||
* A currency identifier.
|
||||
*/
|
||||
@JsonProperty(value = "currency")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String currency;
|
||||
|
||||
/**
|
||||
* Decimal monetary value.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* Currency system.
|
||||
*/
|
||||
@JsonProperty(value = "currencySystem")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String currencySystem;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,6 +19,7 @@ public class PaymentDetails {
|
|||
* Contains the total amount of the payment request.
|
||||
*/
|
||||
@JsonProperty(value = "total")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentItem total;
|
||||
|
||||
/**
|
||||
|
@ -25,6 +27,7 @@ public class PaymentDetails {
|
|||
* display.
|
||||
*/
|
||||
@JsonProperty(value = "displayItems")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<PaymentItem> displayItems;
|
||||
|
||||
/**
|
||||
|
@ -32,18 +35,21 @@ public class PaymentDetails {
|
|||
* choose from.
|
||||
*/
|
||||
@JsonProperty(value = "shippingOptions")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<PaymentShippingOption> shippingOptions;
|
||||
|
||||
/**
|
||||
* Contains modifiers for particular payment method identifiers.
|
||||
*/
|
||||
@JsonProperty(value = "modifiers")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<PaymentDetailsModifier> modifiers;
|
||||
|
||||
/**
|
||||
* Error description.
|
||||
*/
|
||||
@JsonProperty(value = "error")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String error;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -19,6 +20,7 @@ public class PaymentDetailsModifier {
|
|||
* Contains a sequence of payment method identifiers.
|
||||
*/
|
||||
@JsonProperty(value = "supportedMethods")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> supportedMethods;
|
||||
|
||||
/**
|
||||
|
@ -26,6 +28,7 @@ public class PaymentDetailsModifier {
|
|||
* for the payment method identifiers in the supportedMethods field.
|
||||
*/
|
||||
@JsonProperty(value = "total")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentItem total;
|
||||
|
||||
/**
|
||||
|
@ -34,6 +37,7 @@ public class PaymentDetailsModifier {
|
|||
* identifiers in the supportedMethods field.
|
||||
*/
|
||||
@JsonProperty(value = "additionalDisplayItems")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<PaymentItem> additionalDisplayItems;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,14 @@ public class PaymentItem {
|
|||
* Human-readable description of the item.
|
||||
*/
|
||||
@JsonProperty(value = "label")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* Monetary amount for the item.
|
||||
*/
|
||||
@JsonProperty(value = "amount")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentCurrencyAmount amount;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -20,6 +21,7 @@ public class PaymentMethodData {
|
|||
* payment methods that the merchant web site accepts.
|
||||
*/
|
||||
@JsonProperty(value = "supportedMethods")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> supportedMethods;
|
||||
|
||||
/**
|
||||
|
@ -27,6 +29,7 @@ public class PaymentMethodData {
|
|||
* be needed by the supported payment methods.
|
||||
*/
|
||||
@JsonProperty(value = "data")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object data;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -17,6 +18,7 @@ public class PaymentOptions {
|
|||
* name as part of the payment request.
|
||||
*/
|
||||
@JsonProperty(value = "requestPayerName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean requestPayerName;
|
||||
|
||||
/**
|
||||
|
@ -24,6 +26,7 @@ public class PaymentOptions {
|
|||
* email address as part of the payment request.
|
||||
*/
|
||||
@JsonProperty(value = "requestPayerEmail")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean requestPayerEmail;
|
||||
|
||||
/**
|
||||
|
@ -31,6 +34,7 @@ public class PaymentOptions {
|
|||
* phone number as part of the payment request.
|
||||
*/
|
||||
@JsonProperty(value = "requestPayerPhone")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean requestPayerPhone;
|
||||
|
||||
/**
|
||||
|
@ -38,6 +42,7 @@ public class PaymentOptions {
|
|||
* address as part of the payment request.
|
||||
*/
|
||||
@JsonProperty(value = "requestShipping")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean requestShipping;
|
||||
|
||||
/**
|
||||
|
@ -46,6 +51,7 @@ public class PaymentOptions {
|
|||
* gathering the shipping address.
|
||||
*/
|
||||
@JsonProperty(value = "shippingType")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String shippingType;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,30 +19,35 @@ public class PaymentRequest {
|
|||
* ID of this payment request.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Allowed payment methods for this request.
|
||||
*/
|
||||
@JsonProperty(value = "methodData")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<PaymentMethodData> methodData;
|
||||
|
||||
/**
|
||||
* Details for this request.
|
||||
*/
|
||||
@JsonProperty(value = "details")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentDetails details;
|
||||
|
||||
/**
|
||||
* Provides information about the options desired for the payment request.
|
||||
*/
|
||||
@JsonProperty(value = "options")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentOptions options;
|
||||
|
||||
/**
|
||||
* Expiration for this request, in ISO 8601 duration format (e.g., 'P1D').
|
||||
*/
|
||||
@JsonProperty(value = "expires")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String expires;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,18 +17,21 @@ public class PaymentRequestComplete {
|
|||
* Payment request ID.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Initial payment request.
|
||||
*/
|
||||
@JsonProperty(value = "paymentRequest")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentRequest paymentRequest;
|
||||
|
||||
/**
|
||||
* Corresponding payment response.
|
||||
*/
|
||||
@JsonProperty(value = "paymentResponse")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentResponse paymentResponse;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,6 +17,7 @@ public class PaymentRequestCompleteResult {
|
|||
* Result of the payment request completion.
|
||||
*/
|
||||
@JsonProperty(value = "result")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String result;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,24 +17,28 @@ public class PaymentRequestUpdate {
|
|||
* ID for the payment request to update.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Update payment details.
|
||||
*/
|
||||
@JsonProperty(value = "details")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentDetails details;
|
||||
|
||||
/**
|
||||
* Updated shipping address.
|
||||
*/
|
||||
@JsonProperty(value = "shippingAddress")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentAddress shippingAddress;
|
||||
|
||||
/**
|
||||
* Updated shipping options.
|
||||
*/
|
||||
@JsonProperty(value = "shippingOption")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String shippingOption;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,6 +17,7 @@ public class PaymentRequestUpdateResult {
|
|||
* Update payment details.
|
||||
*/
|
||||
@JsonProperty(value = "details")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentDetails details;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -18,6 +19,7 @@ public class PaymentResponse {
|
|||
* selected to fulfil the transaction.
|
||||
*/
|
||||
@JsonProperty(value = "methodName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String methodName;
|
||||
|
||||
/**
|
||||
|
@ -26,6 +28,7 @@ public class PaymentResponse {
|
|||
* successful fund transfer.
|
||||
*/
|
||||
@JsonProperty(value = "details")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object details;
|
||||
|
||||
/**
|
||||
|
@ -34,6 +37,7 @@ public class PaymentResponse {
|
|||
* and final shipping address chosen by the user.
|
||||
*/
|
||||
@JsonProperty(value = "shippingAddress")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentAddress shippingAddress;
|
||||
|
||||
/**
|
||||
|
@ -42,6 +46,7 @@ public class PaymentResponse {
|
|||
* attribute of the selected shipping option.
|
||||
*/
|
||||
@JsonProperty(value = "shippingOption")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String shippingOption;
|
||||
|
||||
/**
|
||||
|
@ -50,6 +55,7 @@ public class PaymentResponse {
|
|||
* email address chosen by the user.
|
||||
*/
|
||||
@JsonProperty(value = "payerEmail")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String payerEmail;
|
||||
|
||||
/**
|
||||
|
@ -58,6 +64,7 @@ public class PaymentResponse {
|
|||
* phone number chosen by the user.
|
||||
*/
|
||||
@JsonProperty(value = "payerPhone")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String payerPhone;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,24 +17,28 @@ public class PaymentShippingOption {
|
|||
* String identifier used to reference this PaymentShippingOption.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Human-readable description of the item.
|
||||
*/
|
||||
@JsonProperty(value = "label")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* Contains the monetary amount for the item.
|
||||
*/
|
||||
@JsonProperty(value = "amount")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private PaymentCurrencyAmount amount;
|
||||
|
||||
/**
|
||||
* Indicates whether this is the default selected PaymentShippingOption.
|
||||
*/
|
||||
@JsonProperty(value = "selected")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean selected;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -17,6 +18,7 @@ public class Place implements EntitySerialization {
|
|||
* `PostalAddress`).
|
||||
*/
|
||||
@JsonProperty(value = "address")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object address;
|
||||
|
||||
/**
|
||||
|
@ -24,6 +26,7 @@ public class Place implements EntitySerialization {
|
|||
* `GeoCoordinates` or `GeoShape`).
|
||||
*/
|
||||
@JsonProperty(value = "geo")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object geo;
|
||||
|
||||
/**
|
||||
|
@ -31,18 +34,21 @@ public class Place implements EntitySerialization {
|
|||
* `Map`).
|
||||
*/
|
||||
@JsonProperty(value = "hasMap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object hasMap;
|
||||
|
||||
/**
|
||||
* The type of the thing.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* The name of the thing.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
public Place() {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,48 +19,56 @@ public class ReceiptCard {
|
|||
* Title of the card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Array of Fact objects.
|
||||
*/
|
||||
@JsonProperty(value = "facts")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<Fact> facts;
|
||||
|
||||
/**
|
||||
* Array of Receipt Items.
|
||||
*/
|
||||
@JsonProperty(value = "items")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ReceiptItem> items;
|
||||
|
||||
/**
|
||||
* This action will be activated when user taps on the card.
|
||||
*/
|
||||
@JsonProperty(value = "tap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardAction tap;
|
||||
|
||||
/**
|
||||
* Total amount of money paid (or to be paid).
|
||||
*/
|
||||
@JsonProperty(value = "total")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String total;
|
||||
|
||||
/**
|
||||
* Total amount of tax paid (or to be paid).
|
||||
*/
|
||||
@JsonProperty(value = "tax")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String tax;
|
||||
|
||||
/**
|
||||
* Total amount of VAT paid (or to be paid).
|
||||
*/
|
||||
@JsonProperty(value = "vat")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String vat;
|
||||
|
||||
/**
|
||||
* Set of actions applicable to the current card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,6 +17,7 @@ public class ReceiptItem {
|
|||
* Title of the Card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
|
@ -23,6 +25,7 @@ public class ReceiptItem {
|
|||
* styling only.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
|
@ -30,30 +33,35 @@ public class ReceiptItem {
|
|||
* styling only.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Image.
|
||||
*/
|
||||
@JsonProperty(value = "image")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardImage image;
|
||||
|
||||
/**
|
||||
* Amount with currency.
|
||||
*/
|
||||
@JsonProperty(value = "price")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String price;
|
||||
|
||||
/**
|
||||
* Number of items of given kind.
|
||||
*/
|
||||
@JsonProperty(value = "quantity")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String quantity;
|
||||
|
||||
/**
|
||||
* This action will be activated when user taps on the Item bubble.
|
||||
*/
|
||||
@JsonProperty(value = "tap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardAction tap;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,9 +17,10 @@ public class ResourceResponse {
|
|||
* Id of the resource.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
public ResourceResponse(){
|
||||
public ResourceResponse() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -18,12 +19,14 @@ public class SemanticAction {
|
|||
* Entities associated with this action.
|
||||
*/
|
||||
@JsonProperty(value = "entities")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Map<String, Entity> entities;
|
||||
|
||||
/**
|
||||
* ID of this action.
|
||||
*/
|
||||
@JsonProperty(value = "id")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,12 +19,14 @@ public class SigninCard {
|
|||
* Text for signin request.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Action to use to perform signin.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -23,12 +24,14 @@ public class SuggestedActions {
|
|||
* activity.
|
||||
*/
|
||||
@JsonProperty(value = "to")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<String> to;
|
||||
|
||||
/**
|
||||
* Actions that can be shown to the user.
|
||||
*/
|
||||
@JsonProperty(value = "actions")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> actions;
|
||||
|
||||
public static SuggestedActions clone(SuggestedActions suggestedActions) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,14 @@ public class TextHighlight {
|
|||
* Defines the snippet of text to highlight.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Occurrence of the text field within the referenced text, if multiple exist.
|
||||
*/
|
||||
@JsonProperty(value = "occurence")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Integer occurence;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,14 @@ public class Thing {
|
|||
* The type of the thing.
|
||||
*/
|
||||
@JsonProperty(value = "type")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* The name of the thing.
|
||||
*/
|
||||
@JsonProperty(value = "name")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,36 +19,42 @@ public class ThumbnailCard {
|
|||
* Title of the card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of the card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text for the card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Array of images for the card.
|
||||
*/
|
||||
@JsonProperty(value = "images")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardImage> images;
|
||||
|
||||
/**
|
||||
* Set of actions applicable to the current card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
* This action will be activated when user taps on the card itself.
|
||||
*/
|
||||
@JsonProperty(value = "tap")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private CardAction tap;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,14 @@ public class ThumbnailUrl {
|
|||
* URL pointing to the thumbnail to use for media content.
|
||||
*/
|
||||
@JsonProperty(value = "url")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* HTML alt text to include on this thumbnail image.
|
||||
*/
|
||||
@JsonProperty(value = "alt")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String alt;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,24 +17,28 @@ public class TokenExchangeState {
|
|||
* The bot's registered application ID
|
||||
*/
|
||||
@JsonProperty("msAppId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String msAppId;
|
||||
|
||||
/**
|
||||
* The connection name that was used
|
||||
*/
|
||||
@JsonProperty(value = "connectionName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String connectionName;
|
||||
|
||||
/**
|
||||
* A reference to the conversation
|
||||
*/
|
||||
@JsonProperty(value = "conversation")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ConversationReference conversation;
|
||||
|
||||
/**
|
||||
* The URL of the bot messaging endpoint
|
||||
*/
|
||||
@JsonProperty("botUrl")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String botUrl;
|
||||
|
||||
public String getConnectionName() {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -18,12 +19,14 @@ public class TokenRequest {
|
|||
* The provider to request a user token from.
|
||||
*/
|
||||
@JsonProperty(value = "provider")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String provider;
|
||||
|
||||
/**
|
||||
* A collection of settings for the specific provider for this request.
|
||||
*/
|
||||
@JsonProperty(value = "settings")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Map<String, Object> settings;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -16,24 +17,28 @@ public class TokenResponse {
|
|||
* The channelId of the TokenResponse.
|
||||
*/
|
||||
@JsonProperty(value = "channelId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String channelId;
|
||||
|
||||
/**
|
||||
* The connection name.
|
||||
*/
|
||||
@JsonProperty(value = "connectionName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String connectionName;
|
||||
|
||||
/**
|
||||
* The user token.
|
||||
*/
|
||||
@JsonProperty(value = "token")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String token;
|
||||
|
||||
/**
|
||||
* Expiration for the token, in ISO 8601 format (e.g. "2007-04-05T14:30Z").
|
||||
*/
|
||||
@JsonProperty(value = "expiration")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String expiration;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -12,25 +13,29 @@ public class TokenStatus {
|
|||
/**
|
||||
* The channelId of the token status pertains to.
|
||||
*/
|
||||
@JsonProperty
|
||||
@JsonProperty(value = "channelId")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String channelId;
|
||||
|
||||
/**
|
||||
* The name of the connection the token status pertains to.
|
||||
*/
|
||||
@JsonProperty
|
||||
@JsonProperty(value = "connectionName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String connectionName;
|
||||
|
||||
/**
|
||||
* True if a token is stored for this ConnectionName.
|
||||
*/
|
||||
@JsonProperty
|
||||
@JsonProperty(value = "hasToken")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean hasToken;
|
||||
|
||||
/**
|
||||
* The display name of the service provider for which this Token belongs to.
|
||||
*/
|
||||
@JsonProperty
|
||||
@JsonProperty(value = "serviceProviderDisplayName")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String serviceProviderDisplayName;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,6 +19,7 @@ public class Transcript {
|
|||
* List of members in this conversation.
|
||||
*/
|
||||
@JsonProperty(value = "activities")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<Activity> activities;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
package com.microsoft.bot.schema;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,48 +19,56 @@ public class VideoCard {
|
|||
* Title of this card.
|
||||
*/
|
||||
@JsonProperty(value = "title")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Subtitle of this card.
|
||||
*/
|
||||
@JsonProperty(value = "subtitle")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String subtitle;
|
||||
|
||||
/**
|
||||
* Text of this card.
|
||||
*/
|
||||
@JsonProperty(value = "text")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Thumbnail placeholder.
|
||||
*/
|
||||
@JsonProperty(value = "image")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private ThumbnailUrl image;
|
||||
|
||||
/**
|
||||
* Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.
|
||||
*/
|
||||
@JsonProperty(value = "media")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<MediaUrl> media;
|
||||
|
||||
/**
|
||||
* Actions on this card.
|
||||
*/
|
||||
@JsonProperty(value = "buttons")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<CardAction> buttons;
|
||||
|
||||
/**
|
||||
* This content may be shared with others (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "shareable")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean shareable;
|
||||
|
||||
/**
|
||||
* Should the client loop playback at end of content (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "autoloop")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean autoloop;
|
||||
|
||||
/**
|
||||
|
@ -67,6 +76,7 @@ public class VideoCard {
|
|||
* (default:true).
|
||||
*/
|
||||
@JsonProperty(value = "autostart")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private boolean autostart;
|
||||
|
||||
/**
|
||||
|
@ -74,6 +84,7 @@ public class VideoCard {
|
|||
* and "4:3".
|
||||
*/
|
||||
@JsonProperty(value = "aspect")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String aspect;
|
||||
|
||||
/**
|
||||
|
@ -81,12 +92,14 @@ public class VideoCard {
|
|||
* Formatted as an ISO 8601 Duration field.
|
||||
*/
|
||||
@JsonProperty(value = "duration")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private String duration;
|
||||
|
||||
/**
|
||||
* Supplementary parameter for this card.
|
||||
*/
|
||||
@JsonProperty(value = "value")
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче