We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76bde8a commit b4568a0Copy full SHA for b4568a0
1 file changed
Commands/Receive-OBS.ps1
@@ -125,10 +125,16 @@ function Receive-OBS
125
# Otherwise, create a new PSObject out of the response
126
$responseObject = [PSObject]::new($responseObject)
127
128
+ # If the response is not a string
129
if ($responseObject -isnot [string]) {
130
+ # clear the typename.
131
$responseObject.pstypenames.clear()
132
}
- # and decorate it with the command name and OBS.requestype.response
133
+
134
+ if ($responseObject.inputKind) {
135
+ $responseObject.pstypenames.add("OBS.Input.$($responseObject.inputKind)")
136
+ }
137
+ # Decorate the response with the command name and OBS.requestype.response
138
$responseObject.pstypenames.add("$myCmd")
139
$responseObject.pstypenames.add("OBS.$myRequestType.Response")
140
0 commit comments