mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
xy and fx parameters added to strip/bus classes.
GetType, GetVersion, SendText added to Remote class. Console output now written to Debug stream. ToString() method overriden for higher classes. formatter run through all files.
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
class VMRemoteErrors : Exception {
|
||||
[String]$msg
|
||||
[string]$msg
|
||||
|
||||
VMRemoteErrors([String]$msg) {
|
||||
VMRemoteErrors ([string]$msg) {
|
||||
$this.msg = $msg
|
||||
}
|
||||
|
||||
[String] ErrorMessage() {
|
||||
[string] ErrorMessage () {
|
||||
return $this.msg
|
||||
}
|
||||
}
|
||||
|
||||
class LoginError : VMRemoteErrors {
|
||||
LoginError([String]$msg) : Base([String]$msg) {
|
||||
LoginError ([string]$msg) : base ([string]$msg) {
|
||||
}
|
||||
}
|
||||
|
||||
class CAPIError : VMRemoteErrors {
|
||||
[Int]$retval
|
||||
[String]$caller
|
||||
[int]$retval
|
||||
[string]$caller
|
||||
|
||||
CAPIError([Int]$retval, [String]$caller) {
|
||||
CAPIError ([int]$retval, [string]$caller) {
|
||||
$this.retval = $retval
|
||||
$this.caller = $caller
|
||||
}
|
||||
|
||||
[String] ErrorMessage() {
|
||||
[string] ErrorMessage () {
|
||||
return "ERROR: CAPI return value: {0} in {1}" -f $this.retval, $this.caller
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user