public void AddWeakEvent_Result_GetVolume(Delegate_OnResult_GetVolume d) { WeakList_GetVolume.Add(new WeakReference(d)); }
public void GetVolume(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, object _Tag, Delegate_OnResult_GetVolume _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("CurrentVolume", ""); _S.InvokeAsync("GetVolume", args, new object[2]{_Tag,_Callback}, new UPnPService.UPnPServiceInvokeHandler(Sink_GetVolume), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_GetVolume)); }
public void GetVolume(System.UInt32 InstanceID, Enum_A_ARG_TYPE_Channel Channel, object _Tag, Delegate_OnResult_GetVolume _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("CurrentVolume", ""); _S.InvokeAsync("GetVolume", args, new object[2]{_Tag,_Callback},new UPnPService.UPnPServiceInvokeHandler(Sink_GetVolume), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_GetVolume)); }
public void GetVolume(System.UInt32 InstanceID, System.String Channel, object _Tag, Delegate_OnResult_GetVolume _Callback) { UPnPArgument[] args = new UPnPArgument[3]; args[0] = new UPnPArgument("InstanceID", InstanceID); args[1] = new UPnPArgument("Channel", Channel); args[2] = new UPnPArgument("CurrentVolume", ""); _S.InvokeAsync("GetVolume", args, new object[2]{_Tag,_Callback}, new UPnPService.UPnPServiceInvokeHandler(Sink_GetVolume), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_GetVolume)); }