Пример #1
0
 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 AddWeakEvent_Result_SetMute(Delegate_OnResult_SetMute d)
 {
     WeakList_SetMute.Add(new WeakReference(d));
 }
 public void SetMute(System.UInt32 InstanceID, System.String Channel, object _Tag, Delegate_OnResult_SetMute _Callback)
 {
     UPnPArgument[] args = new UPnPArgument[2];
        args[0] = new UPnPArgument("InstanceID", InstanceID);
        args[1] = new UPnPArgument("Channel", Channel);
        _S.InvokeAsync("SetMute", args, new object[2]{_Tag,_Callback}, new UPnPService.UPnPServiceInvokeHandler(Sink_SetMute), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_SetMute));
 }