Exemplo n.º 1
0
 public void AddWeakEvent_Result_SetRecordQualityMode(Delegate_OnResult_SetRecordQualityMode d)
 {
     WeakList_SetRecordQualityMode.Add(new WeakReference(d));
 }
Exemplo n.º 2
0
 public void SetRecordQualityMode(System.UInt32 InstanceID, Enum_CurrentRecordQualityMode NewRecordQualityMode, object _Tag, Delegate_OnResult_SetRecordQualityMode _Callback)
 {
    UPnPArgument[] args = new UPnPArgument[2];
    args[0] = new UPnPArgument("InstanceID", InstanceID);
    switch(NewRecordQualityMode)
    {
        case Enum_CurrentRecordQualityMode._0_EP:
            args[1] = new UPnPArgument("NewRecordQualityMode", "0:EP");
            break;
        case Enum_CurrentRecordQualityMode._1_LP:
            args[1] = new UPnPArgument("NewRecordQualityMode", "1:LP");
            break;
        case Enum_CurrentRecordQualityMode._2_SP:
            args[1] = new UPnPArgument("NewRecordQualityMode", "2:SP");
            break;
        case Enum_CurrentRecordQualityMode._0_BASIC:
            args[1] = new UPnPArgument("NewRecordQualityMode", "0:BASIC");
            break;
        case Enum_CurrentRecordQualityMode._1_MEDIUM:
            args[1] = new UPnPArgument("NewRecordQualityMode", "1:MEDIUM");
            break;
        case Enum_CurrentRecordQualityMode._2_HIGH:
            args[1] = new UPnPArgument("NewRecordQualityMode", "2:HIGH");
            break;
        case Enum_CurrentRecordQualityMode.NOT_IMPLEMENTED:
            args[1] = new UPnPArgument("NewRecordQualityMode", "NOT_IMPLEMENTED");
            break;
        case Enum_CurrentRecordQualityMode._VENDOR_DEFINED_:
            args[1] = new UPnPArgument("NewRecordQualityMode", " vendor-defined ");
            break;
        default:
           args[1] = new UPnPArgument("NewRecordQualityMode", GetUnspecifiedValue("Enum_CurrentRecordQualityMode"));
           break;
    }
    _S.InvokeAsync("SetRecordQualityMode", args, new object[2]{_Tag,_Callback},new UPnPService.UPnPServiceInvokeHandler(Sink_SetRecordQualityMode), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_SetRecordQualityMode));
 }