-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assistant-v1): add models for DialogNodeOutputGeneric
update comments
- Loading branch information
Showing
11 changed files
with
308 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
...IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} | ||
|
||
} |
86 changes: 86 additions & 0 deletions
86
...BM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} | ||
|
||
} |
95 changes: 95 additions & 0 deletions
95
...IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.