public void Sync_SetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Int16 DesiredVolume) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); switch(Channel) { case Enum_A_ARG_TYPE_Channel.MASTER: args[1] = new UPnPArgument("Channel", "Master"); break; case Enum_A_ARG_TYPE_Channel.LF: args[1] = new UPnPArgument("Channel", "LF"); break; case Enum_A_ARG_TYPE_Channel.RF: args[1] = new UPnPArgument("Channel", "RF"); break; case Enum_A_ARG_TYPE_Channel.CF: args[1] = new UPnPArgument("Channel", "CF"); break; case Enum_A_ARG_TYPE_Channel.LFE: args[1] = new UPnPArgument("Channel", "LFE"); break; case Enum_A_ARG_TYPE_Channel.LS: args[1] = new UPnPArgument("Channel", "LS"); break; case Enum_A_ARG_TYPE_Channel.RS: args[1] = new UPnPArgument("Channel", "RS"); break; case Enum_A_ARG_TYPE_Channel.LFC: args[1] = new UPnPArgument("Channel", "LFC"); break; case Enum_A_ARG_TYPE_Channel.RFC: args[1] = new UPnPArgument("Channel", "RFC"); break; case Enum_A_ARG_TYPE_Channel.SD: args[1] = new UPnPArgument("Channel", "SD"); break; case Enum_A_ARG_TYPE_Channel.SL: args[1] = new UPnPArgument("Channel", "SL"); break; case Enum_A_ARG_TYPE_Channel.SR_: args[1] = new UPnPArgument("Channel", "SR "); break; case Enum_A_ARG_TYPE_Channel.T: args[1] = new UPnPArgument("Channel", "T"); break; case Enum_A_ARG_TYPE_Channel.B: args[1] = new UPnPArgument("Channel", "B"); break; case Enum_A_ARG_TYPE_Channel.VENDOR_DEFINED: args[1] = new UPnPArgument("Channel", "Vendor defined"); break; default: args[1] = new UPnPArgument("Channel", GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel")); break; } args[2] = new UPnPArgument("DesiredVolume", DesiredVolume); _S.InvokeSync("SetVolumeDB", args); for(int i=0;i<args.Length;++i) { switch(args[i].Name) { case "Channel": switch((string)args[i].DataValue) { case "Master": args[i].DataValue = Enum_A_ARG_TYPE_Channel.MASTER; break; case "LF": args[i].DataValue = Enum_A_ARG_TYPE_Channel.LF; break; case "RF": args[i].DataValue = Enum_A_ARG_TYPE_Channel.RF; break; case "CF": args[i].DataValue = Enum_A_ARG_TYPE_Channel.CF; break; case "LFE": args[i].DataValue = Enum_A_ARG_TYPE_Channel.LFE; break; case "LS": args[i].DataValue = Enum_A_ARG_TYPE_Channel.LS; break; case "RS": args[i].DataValue = Enum_A_ARG_TYPE_Channel.RS; break; case "LFC": args[i].DataValue = Enum_A_ARG_TYPE_Channel.LFC; break; case "RFC": args[i].DataValue = Enum_A_ARG_TYPE_Channel.RFC; break; case "SD": args[i].DataValue = Enum_A_ARG_TYPE_Channel.SD; break; case "SL": args[i].DataValue = Enum_A_ARG_TYPE_Channel.SL; break; case "SR ": args[i].DataValue = Enum_A_ARG_TYPE_Channel.SR_; break; case "T": args[i].DataValue = Enum_A_ARG_TYPE_Channel.T; break; case "B": args[i].DataValue = Enum_A_ARG_TYPE_Channel.B; break; case "Vendor defined": args[i].DataValue = Enum_A_ARG_TYPE_Channel.VENDOR_DEFINED; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_Channel", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_Channel._UNSPECIFIED_; break; } break; } } InstanceID = (System.UInt32) args[0].DataValue; Channel = (Enum_A_ARG_TYPE_Channel) args[1].DataValue; DesiredVolume = (System.Int16) args[2].DataValue; return; }
public string Enum_A_ARG_TYPE_Channel_ToString(Enum_A_ARG_TYPE_Channel en) { string RetVal = ""; switch(en) { case Enum_A_ARG_TYPE_Channel.MASTER: RetVal = "Master"; break; case Enum_A_ARG_TYPE_Channel.LF: RetVal = "LF"; break; case Enum_A_ARG_TYPE_Channel.RF: RetVal = "RF"; break; case Enum_A_ARG_TYPE_Channel.CF: RetVal = "CF"; break; case Enum_A_ARG_TYPE_Channel.LFE: RetVal = "LFE"; break; case Enum_A_ARG_TYPE_Channel.LS: RetVal = "LS"; break; case Enum_A_ARG_TYPE_Channel.RS: RetVal = "RS"; break; case Enum_A_ARG_TYPE_Channel.LFC: RetVal = "LFC"; break; case Enum_A_ARG_TYPE_Channel.RFC: RetVal = "RFC"; break; case Enum_A_ARG_TYPE_Channel.SD: RetVal = "SD"; break; case Enum_A_ARG_TYPE_Channel.SL: RetVal = "SL"; break; case Enum_A_ARG_TYPE_Channel.SR_: RetVal = "SR "; break; case Enum_A_ARG_TYPE_Channel.T: RetVal = "T"; break; case Enum_A_ARG_TYPE_Channel.B: RetVal = "B"; break; case Enum_A_ARG_TYPE_Channel.VENDOR_DEFINED: RetVal = "Vendor defined"; break; case Enum_A_ARG_TYPE_Channel._UNSPECIFIED_: RetVal = GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel"); break; } return(RetVal); }
public int SetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Int16 DesiredVolume) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); switch(Channel) { case Enum_A_ARG_TYPE_Channel.MASTER: args[1] = new UPnPArgument("Channel", "Master"); break; case Enum_A_ARG_TYPE_Channel.LF: args[1] = new UPnPArgument("Channel", "LF"); break; case Enum_A_ARG_TYPE_Channel.RF: args[1] = new UPnPArgument("Channel", "RF"); break; case Enum_A_ARG_TYPE_Channel.CF: args[1] = new UPnPArgument("Channel", "CF"); break; case Enum_A_ARG_TYPE_Channel.LFE: args[1] = new UPnPArgument("Channel", "LFE"); break; case Enum_A_ARG_TYPE_Channel.LS: args[1] = new UPnPArgument("Channel", "LS"); break; case Enum_A_ARG_TYPE_Channel.RS: args[1] = new UPnPArgument("Channel", "RS"); break; case Enum_A_ARG_TYPE_Channel.LFC: args[1] = new UPnPArgument("Channel", "LFC"); break; case Enum_A_ARG_TYPE_Channel.RFC: args[1] = new UPnPArgument("Channel", "RFC"); break; case Enum_A_ARG_TYPE_Channel.SD: args[1] = new UPnPArgument("Channel", "SD"); break; case Enum_A_ARG_TYPE_Channel.SL: args[1] = new UPnPArgument("Channel", "SL"); break; case Enum_A_ARG_TYPE_Channel.SR_: args[1] = new UPnPArgument("Channel", "SR "); break; case Enum_A_ARG_TYPE_Channel.T: args[1] = new UPnPArgument("Channel", "T"); break; case Enum_A_ARG_TYPE_Channel.B: args[1] = new UPnPArgument("Channel", "B"); break; case Enum_A_ARG_TYPE_Channel.VENDOR_DEFINED: args[1] = new UPnPArgument("Channel", "Vendor defined"); break; default: args[1] = new UPnPArgument("Channel", GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel")); break; } args[2] = new UPnPArgument("DesiredVolume", DesiredVolume); return(_S.InvokeAsync("SetVolumeDB", args, new UPnPService.UPnPServiceInvokeHandler(Sink_SetVolumeDB), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_SetVolumeDB))); }
public void SetMute(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Boolean DesiredMute) { SetMute(InstanceID, Channel, DesiredMute, null, null); }
public void SetMute(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Boolean DesiredMute, object _Tag, Delegate_OnResult_SetMute _Callback) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); switch(Channel) { case Enum_A_ARG_TYPE_Channel.MASTER: args[1] = new UPnPArgument("Channel", "Master"); break; case Enum_A_ARG_TYPE_Channel.LF: args[1] = new UPnPArgument("Channel", "LF"); break; case Enum_A_ARG_TYPE_Channel.RF: args[1] = new UPnPArgument("Channel", "RF"); break; case Enum_A_ARG_TYPE_Channel.CF: args[1] = new UPnPArgument("Channel", "CF"); break; case Enum_A_ARG_TYPE_Channel.LFE: args[1] = new UPnPArgument("Channel", "LFE"); break; case Enum_A_ARG_TYPE_Channel.LS: args[1] = new UPnPArgument("Channel", "LS"); break; case Enum_A_ARG_TYPE_Channel.RS: args[1] = new UPnPArgument("Channel", "RS"); break; case Enum_A_ARG_TYPE_Channel.LFC: args[1] = new UPnPArgument("Channel", "LFC"); break; case Enum_A_ARG_TYPE_Channel.RFC: args[1] = new UPnPArgument("Channel", "RFC"); break; case Enum_A_ARG_TYPE_Channel.SD: args[1] = new UPnPArgument("Channel", "SD"); break; case Enum_A_ARG_TYPE_Channel.SL: args[1] = new UPnPArgument("Channel", "SL"); break; case Enum_A_ARG_TYPE_Channel.SR: args[1] = new UPnPArgument("Channel", "SR"); break; case Enum_A_ARG_TYPE_Channel.T: args[1] = new UPnPArgument("Channel", "T"); break; case Enum_A_ARG_TYPE_Channel.B: args[1] = new UPnPArgument("Channel", "B"); break; case Enum_A_ARG_TYPE_Channel.VENDOR_DEFINED: args[1] = new UPnPArgument("Channel", "Vendor defined"); break; default: args[1] = new UPnPArgument("Channel", GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel")); break; } args[2] = new UPnPArgument("DesiredMute", DesiredMute); _S.InvokeAsync("SetMute", args, new object[2]{_Tag,_Callback},new UPnPService.UPnPServiceInvokeHandler(Sink_SetMute), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_SetMute)); }
public void GetLoudness(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel) { GetLoudness(InstanceID, Channel, null, null); }
public void GetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel) { GetVolumeDB(InstanceID, Channel, null, null); }
public void SetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Int16 DesiredVolume) { SetVolumeDB(InstanceID, Channel, DesiredVolume, null, null); }
public void SetLoudness(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Boolean DesiredLoudness) { SetLoudness(InstanceID, Channel, DesiredLoudness, null, null); }
/// <summary> /// Action: GetVolumeDB /// </summary> /// <param name="InstanceID">Associated State Variable: A_ARG_TYPE_InstanceID</param> /// <param name="Channel">Associated State Variable: A_ARG_TYPE_Channel</param> /// <param name="CurrentVolume">Associated State Variable: VolumeDB</param> public void GetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, out System.Int16 CurrentVolume) { //ToDo: Add Your implementation here, and remove exception throw(new UPnPCustomException(800,"This method has not been completely implemented...")); }
/// <summary> /// Action: SetMute /// </summary> /// <param name="InstanceID">Associated State Variable: A_ARG_TYPE_InstanceID</param> /// <param name="Channel">Associated State Variable: A_ARG_TYPE_Channel</param> /// <param name="DesiredMute">Associated State Variable: Mute</param> public void SetMute(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Boolean DesiredMute) { //ToDo: Add Your implementation here, and remove exception throw(new UPnPCustomException(800,"This method has not been completely implemented...")); }
public void Sync_SetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Int16 DesiredVolume) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); switch(Channel) { case Enum_A_ARG_TYPE_Channel.MASTER: args[1] = new UPnPArgument("Channel", "Master"); break; case Enum_A_ARG_TYPE_Channel.LF: args[1] = new UPnPArgument("Channel", "LF"); break; case Enum_A_ARG_TYPE_Channel.RF: args[1] = new UPnPArgument("Channel", "RF"); break; default: args[1] = new UPnPArgument("Channel", GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel")); break; } args[2] = new UPnPArgument("DesiredVolume", DesiredVolume); _S.InvokeSync("SetVolumeDB", args); for(int i=0;i<args.Length;++i) { switch(args[i].Name) { case "Channel": switch((string)args[i].DataValue) { case "Master": args[i].DataValue = Enum_A_ARG_TYPE_Channel.MASTER; break; case "LF": args[i].DataValue = Enum_A_ARG_TYPE_Channel.LF; break; case "RF": args[i].DataValue = Enum_A_ARG_TYPE_Channel.RF; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_Channel", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_Channel._UNSPECIFIED_; break; } break; } } InstanceID = (System.UInt32) args[0].DataValue; Channel = (Enum_A_ARG_TYPE_Channel) args[1].DataValue; DesiredVolume = (System.Int16) args[2].DataValue; return; }
public void SetVolumeDB(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, System.Int16 DesiredVolume, object _Tag, Delegate_OnResult_SetVolumeDB _Callback) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); switch(Channel) { case Enum_A_ARG_TYPE_Channel.MASTER: args[1] = new UPnPArgument("Channel", "Master"); break; case Enum_A_ARG_TYPE_Channel.LF: args[1] = new UPnPArgument("Channel", "LF"); break; case Enum_A_ARG_TYPE_Channel.RF: args[1] = new UPnPArgument("Channel", "RF"); break; default: args[1] = new UPnPArgument("Channel", GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel")); break; } args[2] = new UPnPArgument("DesiredVolume", DesiredVolume); _S.InvokeAsync("SetVolumeDB", args, new object[2]{_Tag,_Callback}, new UPnPService.UPnPServiceInvokeHandler(Sink_SetVolumeDB), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_SetVolumeDB)); }
public void GetLoudness(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, object _Tag, Delegate_OnResult_GetLoudness _Callback) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); switch(Channel) { case Enum_A_ARG_TYPE_Channel.MASTER: args[1] = new UPnPArgument("Channel", "Master"); break; case Enum_A_ARG_TYPE_Channel.LF: args[1] = new UPnPArgument("Channel", "LF"); break; case Enum_A_ARG_TYPE_Channel.RF: args[1] = new UPnPArgument("Channel", "RF"); break; default: args[1] = new UPnPArgument("Channel", GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel")); break; } args[2] = new UPnPArgument("CurrentLoudness", ""); _S.InvokeAsync("GetLoudness", args, new object[2]{_Tag,_Callback}, new UPnPService.UPnPServiceInvokeHandler(Sink_GetLoudness), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_GetLoudness)); }
public string Enum_A_ARG_TYPE_Channel_ToString(Enum_A_ARG_TYPE_Channel en) { string RetVal = ""; switch(en) { case Enum_A_ARG_TYPE_Channel.MASTER: RetVal = "Master"; break; case Enum_A_ARG_TYPE_Channel.LF: RetVal = "LF"; break; case Enum_A_ARG_TYPE_Channel.RF: RetVal = "RF"; break; case Enum_A_ARG_TYPE_Channel._UNSPECIFIED_: RetVal = GetUnspecifiedValue("Enum_A_ARG_TYPE_Channel"); break; } return(RetVal); }
public static string Enum_A_ARG_TYPE_Channel_ToString(Enum_A_ARG_TYPE_Channel en) { string RetVal = ""; switch(en) { case Enum_A_ARG_TYPE_Channel.MASTER: RetVal = "Master"; break; case Enum_A_ARG_TYPE_Channel.LF: RetVal = "LF"; break; case Enum_A_ARG_TYPE_Channel.RF: RetVal = "RF"; break; } return(RetVal); }