-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1052 from watson-developer-cloud/test-generation-…
…05-07 4.2 Release Candidate
- Loading branch information
Showing
131 changed files
with
5,993 additions
and
514 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2021. | ||
* | ||
* 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. | ||
**/ | ||
|
||
import Foundation | ||
|
||
/** | ||
Information used by an integration to transfer the conversation to a different channel. | ||
*/ | ||
public struct ChannelTransferInfo: Codable, Equatable { | ||
|
||
/** | ||
An object specifying target channels available for the transfer. Each property of this object represents an | ||
available transfer target. Currently, the only supported property is **chat**, representing the web chat | ||
integration. | ||
*/ | ||
public var target: ChannelTransferTarget | ||
|
||
// Map each property name to the key that shall be used for encoding/decoding. | ||
private enum CodingKeys: String, CodingKey { | ||
case target = "target" | ||
} | ||
|
||
/** | ||
Initialize a `ChannelTransferInfo` with member variables. | ||
|
||
- parameter target: An object specifying target channels available for the transfer. Each property of this | ||
object represents an available transfer target. Currently, the only supported property is **chat**, representing | ||
the web chat integration. | ||
|
||
- returns: An initialized `ChannelTransferInfo`. | ||
*/ | ||
public init( | ||
target: ChannelTransferTarget | ||
) | ||
{ | ||
self.target = target | ||
} | ||
|
||
} |
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,49 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2021. | ||
* | ||
* 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. | ||
**/ | ||
|
||
import Foundation | ||
|
||
/** | ||
An object specifying target channels available for the transfer. Each property of this object represents an available | ||
transfer target. Currently, the only supported property is **chat**, representing the web chat integration. | ||
*/ | ||
public struct ChannelTransferTarget: Codable, Equatable { | ||
|
||
/** | ||
Information for transferring to the web chat integration. | ||
*/ | ||
public var chat: ChannelTransferTargetChat? | ||
|
||
// Map each property name to the key that shall be used for encoding/decoding. | ||
private enum CodingKeys: String, CodingKey { | ||
case chat = "chat" | ||
} | ||
|
||
/** | ||
Initialize a `ChannelTransferTarget` with member variables. | ||
|
||
- parameter chat: Information for transferring to the web chat integration. | ||
|
||
- returns: An initialized `ChannelTransferTarget`. | ||
*/ | ||
public init( | ||
chat: ChannelTransferTargetChat? = nil | ||
) | ||
{ | ||
self.chat = chat | ||
} | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
Sources/AssistantV1/Models/ChannelTransferTargetChat.swift
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,48 @@ | ||
/** | ||
* (C) Copyright IBM Corp. 2021. | ||
* | ||
* 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. | ||
**/ | ||
|
||
import Foundation | ||
|
||
/** | ||
Information for transferring to the web chat integration. | ||
*/ | ||
public struct ChannelTransferTargetChat: Codable, Equatable { | ||
|
||
/** | ||
The URL of the target web chat. | ||
*/ | ||
public var url: String? | ||
|
||
// Map each property name to the key that shall be used for encoding/decoding. | ||
private enum CodingKeys: String, CodingKey { | ||
case url = "url" | ||
} | ||
|
||
/** | ||
Initialize a `ChannelTransferTargetChat` with member variables. | ||
|
||
- parameter url: The URL of the target web chat. | ||
|
||
- returns: An initialized `ChannelTransferTargetChat`. | ||
*/ | ||
public init( | ||
url: String? = nil | ||
) | ||
{ | ||
self.url = url | ||
} | ||
|
||
} |
Oops, something went wrong.