Skip to content

Commit

Permalink
feat(assistant-v1): add models for DialogNodeOutputGeneric
Browse files Browse the repository at this point in the history
update comments
  • Loading branch information
kevinkowa committed Mar 17, 2022
1 parent c7cfb9b commit fe49277
Show file tree
Hide file tree
Showing 11 changed files with 308 additions and 11 deletions.
21 changes: 20 additions & 1 deletion src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGeneric.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2021.
* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,16 +32,22 @@ namespace IBM.Watson.Assistant.v1.Model
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
/// </summary>
[JsonConverter(typeof(JsonSubtypes), "response_type")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio), "audio")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer), "channel_transfer")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe), "iframe")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined), "user_defined")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo), "video")]
public class DialogNodeOutputGeneric
{
/// This ctor is protected to prevent instantiation of this base class.
Expand All @@ -54,6 +60,9 @@ public class DialogNodeOutputGeneric
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
protected DialogNodeOutputGeneric()
{
}
Expand Down Expand Up @@ -233,6 +242,16 @@ public class QueryTypeEnumValue
/// </summary>
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, object> UserDefined { get; protected set; }
/// <summary>
/// For internal use only.
/// </summary>
[JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
public object ChannelOptions { get; protected set; }
/// <summary>
/// The URL of an image that shows a preview of the embedded content.
/// </summary>
[JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
public string ImageUrl { get; protected set; }
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/**
* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using System.Collections.Generic;
using Newtonsoft.Json;

namespace IBM.Watson.Assistant.v1.Model
{
/// <summary>
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.
/// </summary>
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio : DialogNodeOutputGeneric
{
/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// </summary>
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
public new string ResponseType
{
get { return base.ResponseType; }
set { base.ResponseType = value; }
}
/// <summary>
/// The `https:` URL of the audio clip.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
{
get { return base.Source; }
set { base.Source = value; }
}
/// <summary>
/// An optional title to show before the response.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public new string Title
{
get { return base.Title; }
set { base.Title = value; }
}
/// <summary>
/// An optional description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
{
get { return base.Description; }
set { base.Description = value; }
}
/// <summary>
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
/// response is intended for a built-in integration and should not be handled by an API client.
/// </summary>
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
public new List<ResponseGenericChannel> Channels
{
get { return base.Channels; }
set { base.Channels = value; }
}
/// <summary>
/// For internal use only.
/// </summary>
[JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
public new object ChannelOptions
{
get { return base.ChannelOptions; }
set { base.ChannelOptions = value; }
}
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the audio player cannot be
/// seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public new string AltText
{
get { return base.AltText; }
set { base.AltText = value; }
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/**
* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using System.Collections.Generic;
using Newtonsoft.Json;

namespace IBM.Watson.Assistant.v1.Model
{
/// <summary>
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.
/// </summary>
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe : DialogNodeOutputGeneric
{
/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// </summary>
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
public new string ResponseType
{
get { return base.ResponseType; }
set { base.ResponseType = value; }
}
/// <summary>
/// The `https:` URL of the embeddable content.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
{
get { return base.Source; }
set { base.Source = value; }
}
/// <summary>
/// An optional title to show before the response.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public new string Title
{
get { return base.Title; }
set { base.Title = value; }
}
/// <summary>
/// An optional description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
{
get { return base.Description; }
set { base.Description = value; }
}
/// <summary>
/// The URL of an image that shows a preview of the embedded content.
/// </summary>
[JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
public new string ImageUrl
{
get { return base.ImageUrl; }
set { base.ImageUrl = value; }
}
/// <summary>
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
/// response is intended for a built-in integration and should not be handled by an API client.
/// </summary>
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
public new List<ResponseGenericChannel> Channels
{
get { return base.Channels; }
set { base.Channels = value; }
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using System.Collections.Generic;
using Newtonsoft.Json;

namespace IBM.Watson.Assistant.v1.Model
{
/// <summary>
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.
/// </summary>
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo : DialogNodeOutputGeneric
{
/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// </summary>
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
public new string ResponseType
{
get { return base.ResponseType; }
set { base.ResponseType = value; }
}
/// <summary>
/// The `https:` URL of the video.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
{
get { return base.Source; }
set { base.Source = value; }
}
/// <summary>
/// An optional title to show before the response.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public new string Title
{
get { return base.Title; }
set { base.Title = value; }
}
/// <summary>
/// An optional description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
{
get { return base.Description; }
set { base.Description = value; }
}
/// <summary>
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
/// response is intended for a built-in integration and should not be handled by an API client.
/// </summary>
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
public new List<ResponseGenericChannel> Channels
{
get { return base.Channels; }
set { base.Channels = value; }
}
/// <summary>
/// For internal use only.
/// </summary>
[JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
public new object ChannelOptions
{
get { return base.ChannelOptions; }
set { base.ChannelOptions = value; }
}
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the video cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public new string AltText
{
get { return base.AltText; }
set { base.AltText = value; }
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class PreferenceEnumValue
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public string Title { get; protected set; }
/// <summary>
/// The description to show with the the response.
/// The description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; protected set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeAudio : RuntimeResponseGen
set { base.Title = value; }
}
/// <summary>
/// The description to show with the the response.
/// The description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeIframe : RuntimeResponseGe
set { base.Title = value; }
}
/// <summary>
/// The description to show with the the response.
/// The description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2020, 2021.
* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
set { base.Title = value; }
}
/// <summary>
/// The description to show with the the response.
/// The description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2020, 2021.
* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -61,7 +61,7 @@ public class PreferenceEnumValue
set { base.Title = value; }
}
/// <summary>
/// The description to show with the the response.
/// The description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
Expand Down
Loading

0 comments on commit fe49277

Please sign in to comment.