コード例 #1
0
 public string Enum_PlaybackStorageMedium_ToString(Enum_PlaybackStorageMedium en)
 {
     string RetVal = "";
     switch(en)
     {
         case Enum_PlaybackStorageMedium.UNKNOWN:
             RetVal = "UNKNOWN";
             break;
         case Enum_PlaybackStorageMedium.DV:
             RetVal = "DV";
             break;
         case Enum_PlaybackStorageMedium.MINI_DV:
             RetVal = "MINI-DV";
             break;
         case Enum_PlaybackStorageMedium.VHS:
             RetVal = "VHS";
             break;
         case Enum_PlaybackStorageMedium.W_VHS:
             RetVal = "W-VHS";
             break;
         case Enum_PlaybackStorageMedium.S_VHS:
             RetVal = "S-VHS";
             break;
         case Enum_PlaybackStorageMedium.D_VHS:
             RetVal = "D-VHS";
             break;
         case Enum_PlaybackStorageMedium.VHSC:
             RetVal = "VHSC";
             break;
         case Enum_PlaybackStorageMedium.VIDEO8:
             RetVal = "VIDEO8";
             break;
         case Enum_PlaybackStorageMedium.HI8:
             RetVal = "HI8";
             break;
         case Enum_PlaybackStorageMedium.CD_ROM:
             RetVal = "CD-ROM";
             break;
         case Enum_PlaybackStorageMedium.CD_DA:
             RetVal = "CD-DA";
             break;
         case Enum_PlaybackStorageMedium.CD_R:
             RetVal = "CD-R";
             break;
         case Enum_PlaybackStorageMedium.CD_RW:
             RetVal = "CD-RW";
             break;
         case Enum_PlaybackStorageMedium.VIDEO_CD:
             RetVal = "VIDEO-CD";
             break;
         case Enum_PlaybackStorageMedium.SACD:
             RetVal = "SACD";
             break;
         case Enum_PlaybackStorageMedium.MD_AUDIO:
             RetVal = "MD-AUDIO";
             break;
         case Enum_PlaybackStorageMedium.MD_PICTURE:
             RetVal = "MD-PICTURE";
             break;
         case Enum_PlaybackStorageMedium.DVD_ROM:
             RetVal = "DVD-ROM";
             break;
         case Enum_PlaybackStorageMedium.DVD_VIDEO:
             RetVal = "DVD-VIDEO";
             break;
         case Enum_PlaybackStorageMedium.DVD_R:
             RetVal = "DVD-R";
             break;
         case Enum_PlaybackStorageMedium.DVD_RW:
             RetVal = "DVD+RW";
             break;
         case Enum_PlaybackStorageMedium.DVD_minus_RW:
             RetVal = "DVD-RW";
             break;
         case Enum_PlaybackStorageMedium.DVD_RAM:
             RetVal = "DVD-RAM";
             break;
         case Enum_PlaybackStorageMedium.DVD_AUDIO:
             RetVal = "DVD-AUDIO";
             break;
         case Enum_PlaybackStorageMedium.DAT:
             RetVal = "DAT";
             break;
         case Enum_PlaybackStorageMedium.LD:
             RetVal = "LD";
             break;
         case Enum_PlaybackStorageMedium.HDD:
             RetVal = "HDD";
             break;
         case Enum_PlaybackStorageMedium.MICRO_MV:
             RetVal = "MICRO-MV";
             break;
         case Enum_PlaybackStorageMedium.NETWORK:
             RetVal = "NETWORK";
             break;
         case Enum_PlaybackStorageMedium.NONE:
             RetVal = "NONE";
             break;
         case Enum_PlaybackStorageMedium.NOT_IMPLEMENTED:
             RetVal = "NOT_IMPLEMENTED";
             break;
         case Enum_PlaybackStorageMedium._VENDOR_DEFINED_:
             RetVal = " vendor-defined ";
             break;
         case Enum_PlaybackStorageMedium._UNSPECIFIED_:
             RetVal = GetUnspecifiedValue("Enum_PlaybackStorageMedium");
             break;
     }
     return(RetVal);
 }
コード例 #2
0
ファイル: CpAVTransport.cs プロジェクト: Scannow/SWYH
 public void Sync_GetMediaInfo(System.UInt32 InstanceID, out System.UInt32 NrTracks, out System.String MediaDuration, out System.String CurrentURI, out System.String CurrentURIMetaData, out System.String NextURI, out System.String NextURIMetaData, out Enum_PlaybackStorageMedium PlayMedium, out Enum_RecordStorageMedium RecordMedium, out Enum_RecordMediumWriteStatus WriteStatus)
 {
    UPnPArgument[] args = new UPnPArgument[10];
    args[0] = new UPnPArgument("InstanceID", InstanceID);
    args[1] = new UPnPArgument("NrTracks", "");
    args[2] = new UPnPArgument("MediaDuration", "");
    args[3] = new UPnPArgument("CurrentURI", "");
    args[4] = new UPnPArgument("CurrentURIMetaData", "");
    args[5] = new UPnPArgument("NextURI", "");
    args[6] = new UPnPArgument("NextURIMetaData", "");
    args[7] = new UPnPArgument("PlayMedium", "");
    args[8] = new UPnPArgument("RecordMedium", "");
    args[9] = new UPnPArgument("WriteStatus", "");
     _S.InvokeSync("GetMediaInfo", args);
     for(int i=0;i<args.Length;++i)
     {
         switch(args[i].Name)
         {
             case "PlayMedium":
                 switch((string)args[i].DataValue)
                 {
                     case "UNKNOWN":
                         args[i].DataValue = Enum_PlaybackStorageMedium.UNKNOWN;
                         break;
                     case "DV":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DV;
                         break;
                     case "MINI-DV":
                         args[i].DataValue = Enum_PlaybackStorageMedium.MINI_DV;
                         break;
                     case "VHS":
                         args[i].DataValue = Enum_PlaybackStorageMedium.VHS;
                         break;
                     case "W-VHS":
                         args[i].DataValue = Enum_PlaybackStorageMedium.W_VHS;
                         break;
                     case "S-VHS":
                         args[i].DataValue = Enum_PlaybackStorageMedium.S_VHS;
                         break;
                     case "D-VHS":
                         args[i].DataValue = Enum_PlaybackStorageMedium.D_VHS;
                         break;
                     case "VHSC":
                         args[i].DataValue = Enum_PlaybackStorageMedium.VHSC;
                         break;
                     case "VIDEO8":
                         args[i].DataValue = Enum_PlaybackStorageMedium.VIDEO8;
                         break;
                     case "HI8":
                         args[i].DataValue = Enum_PlaybackStorageMedium.HI8;
                         break;
                     case "CD-ROM":
                         args[i].DataValue = Enum_PlaybackStorageMedium.CD_ROM;
                         break;
                     case "CD-DA":
                         args[i].DataValue = Enum_PlaybackStorageMedium.CD_DA;
                         break;
                     case "CD-R":
                         args[i].DataValue = Enum_PlaybackStorageMedium.CD_R;
                         break;
                     case "CD-RW":
                         args[i].DataValue = Enum_PlaybackStorageMedium.CD_RW;
                         break;
                     case "VIDEO-CD":
                         args[i].DataValue = Enum_PlaybackStorageMedium.VIDEO_CD;
                         break;
                     case "SACD":
                         args[i].DataValue = Enum_PlaybackStorageMedium.SACD;
                         break;
                     case "MD-AUDIO":
                         args[i].DataValue = Enum_PlaybackStorageMedium.MD_AUDIO;
                         break;
                     case "MD-PICTURE":
                         args[i].DataValue = Enum_PlaybackStorageMedium.MD_PICTURE;
                         break;
                     case "DVD-ROM":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_ROM;
                         break;
                     case "DVD-VIDEO":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_VIDEO;
                         break;
                     case "DVD-R":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_R;
                         break;
                     case "DVD+RW":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_RW;
                         break;
                     case "DVD-RW":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_minus_RW;
                         break;
                     case "DVD-RAM":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_RAM;
                         break;
                     case "DVD-AUDIO":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DVD_AUDIO;
                         break;
                     case "DAT":
                         args[i].DataValue = Enum_PlaybackStorageMedium.DAT;
                         break;
                     case "LD":
                         args[i].DataValue = Enum_PlaybackStorageMedium.LD;
                         break;
                     case "HDD":
                         args[i].DataValue = Enum_PlaybackStorageMedium.HDD;
                         break;
                     case "MICRO-MV":
                         args[i].DataValue = Enum_PlaybackStorageMedium.MICRO_MV;
                         break;
                     case "NETWORK":
                         args[i].DataValue = Enum_PlaybackStorageMedium.NETWORK;
                         break;
                     case "NONE":
                         args[i].DataValue = Enum_PlaybackStorageMedium.NONE;
                         break;
                     case "NOT_IMPLEMENTED":
                         args[i].DataValue = Enum_PlaybackStorageMedium.NOT_IMPLEMENTED;
                         break;
                     case " vendor-defined ":
                         args[i].DataValue = Enum_PlaybackStorageMedium._VENDOR_DEFINED_;
                         break;
                     default:
                        SetUnspecifiedValue("Enum_PlaybackStorageMedium", (string)args[i].DataValue);
                        args[i].DataValue = Enum_PlaybackStorageMedium._UNSPECIFIED_;
                        break;
                 }
                 break;
             case "RecordMedium":
                 switch((string)args[i].DataValue)
                 {
                     case "UNKNOWN":
                         args[i].DataValue = Enum_RecordStorageMedium.UNKNOWN;
                         break;
                     case "DV":
                         args[i].DataValue = Enum_RecordStorageMedium.DV;
                         break;
                     case "MINI-DV":
                         args[i].DataValue = Enum_RecordStorageMedium.MINI_DV;
                         break;
                     case "VHS":
                         args[i].DataValue = Enum_RecordStorageMedium.VHS;
                         break;
                     case "W-VHS":
                         args[i].DataValue = Enum_RecordStorageMedium.W_VHS;
                         break;
                     case "S-VHS":
                         args[i].DataValue = Enum_RecordStorageMedium.S_VHS;
                         break;
                     case "D-VHS":
                         args[i].DataValue = Enum_RecordStorageMedium.D_VHS;
                         break;
                     case "VHSC":
                         args[i].DataValue = Enum_RecordStorageMedium.VHSC;
                         break;
                     case "VIDEO8":
                         args[i].DataValue = Enum_RecordStorageMedium.VIDEO8;
                         break;
                     case "HI8":
                         args[i].DataValue = Enum_RecordStorageMedium.HI8;
                         break;
                     case "CD-ROM":
                         args[i].DataValue = Enum_RecordStorageMedium.CD_ROM;
                         break;
                     case "CD-DA":
                         args[i].DataValue = Enum_RecordStorageMedium.CD_DA;
                         break;
                     case "CD-R":
                         args[i].DataValue = Enum_RecordStorageMedium.CD_R;
                         break;
                     case "CD-RW":
                         args[i].DataValue = Enum_RecordStorageMedium.CD_RW;
                         break;
                     case "VIDEO-CD":
                         args[i].DataValue = Enum_RecordStorageMedium.VIDEO_CD;
                         break;
                     case "SACD":
                         args[i].DataValue = Enum_RecordStorageMedium.SACD;
                         break;
                     case "MD-AUDIO":
                         args[i].DataValue = Enum_RecordStorageMedium.MD_AUDIO;
                         break;
                     case "MD-PICTURE":
                         args[i].DataValue = Enum_RecordStorageMedium.MD_PICTURE;
                         break;
                     case "DVD-ROM":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_ROM;
                         break;
                     case "DVD-VIDEO":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_VIDEO;
                         break;
                     case "DVD-R":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_R;
                         break;
                     case "DVD+RW":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_RW;
                         break;
                     case "DVD-RW":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_minus_RW;
                         break;
                     case "DVD-RAM":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_RAM;
                         break;
                     case "DVD-AUDIO":
                         args[i].DataValue = Enum_RecordStorageMedium.DVD_AUDIO;
                         break;
                     case "DAT":
                         args[i].DataValue = Enum_RecordStorageMedium.DAT;
                         break;
                     case "LD":
                         args[i].DataValue = Enum_RecordStorageMedium.LD;
                         break;
                     case "HDD":
                         args[i].DataValue = Enum_RecordStorageMedium.HDD;
                         break;
                     case "MICRO-MV":
                         args[i].DataValue = Enum_RecordStorageMedium.MICRO_MV;
                         break;
                     case "NETWORK":
                         args[i].DataValue = Enum_RecordStorageMedium.NETWORK;
                         break;
                     case "NONE":
                         args[i].DataValue = Enum_RecordStorageMedium.NONE;
                         break;
                     case "NOT_IMPLEMENTED":
                         args[i].DataValue = Enum_RecordStorageMedium.NOT_IMPLEMENTED;
                         break;
                     case " vendor-defined ":
                         args[i].DataValue = Enum_RecordStorageMedium._VENDOR_DEFINED_;
                         break;
                     default:
                        SetUnspecifiedValue("Enum_RecordStorageMedium", (string)args[i].DataValue);
                        args[i].DataValue = Enum_RecordStorageMedium._UNSPECIFIED_;
                        break;
                 }
                 break;
             case "WriteStatus":
                 switch((string)args[i].DataValue)
                 {
                     case "WRITABLE":
                         args[i].DataValue = Enum_RecordMediumWriteStatus.WRITABLE;
                         break;
                     case "PROTECTED":
                         args[i].DataValue = Enum_RecordMediumWriteStatus.PROTECTED;
                         break;
                     case "NOT_WRITABLE":
                         args[i].DataValue = Enum_RecordMediumWriteStatus.NOT_WRITABLE;
                         break;
                     case "UNKNOWN":
                         args[i].DataValue = Enum_RecordMediumWriteStatus.UNKNOWN;
                         break;
                     case "NOT_IMPLEMENTED":
                         args[i].DataValue = Enum_RecordMediumWriteStatus.NOT_IMPLEMENTED;
                         break;
                     default:
                        SetUnspecifiedValue("Enum_RecordMediumWriteStatus", (string)args[i].DataValue);
                        args[i].DataValue = Enum_RecordMediumWriteStatus._UNSPECIFIED_;
                        break;
                 }
                 break;
         }
     }
     InstanceID = (System.UInt32) args[0].DataValue;
     NrTracks = (System.UInt32) args[1].DataValue;
     MediaDuration = (System.String) args[2].DataValue;
     CurrentURI = (System.String) args[3].DataValue;
     CurrentURIMetaData = (System.String) args[4].DataValue;
     NextURI = (System.String) args[5].DataValue;
     NextURIMetaData = (System.String) args[6].DataValue;
     PlayMedium = (Enum_PlaybackStorageMedium) args[7].DataValue;
     RecordMedium = (Enum_RecordStorageMedium) args[8].DataValue;
     WriteStatus = (Enum_RecordMediumWriteStatus) args[9].DataValue;
     return;
 }
コード例 #3
0
ファイル: DvAVTransport.cs プロジェクト: Scannow/SWYH
 /// <summary>
 /// Action: GetMediaInfo
 /// </summary>
 /// <param name="InstanceID">Associated State Variable: A_ARG_TYPE_InstanceID</param>
 /// <param name="NrTracks">Associated State Variable: NumberOfTracks</param>
 /// <param name="MediaDuration">Associated State Variable: CurrentMediaDuration</param>
 /// <param name="CurrentURI">Associated State Variable: AVTransportURI</param>
 /// <param name="CurrentURIMetaData">Associated State Variable: AVTransportURIMetaData</param>
 /// <param name="NextURI">Associated State Variable: NextAVTransportURI</param>
 /// <param name="NextURIMetaData">Associated State Variable: NextAVTransportURIMetaData</param>
 /// <param name="PlayMedium">Associated State Variable: PlaybackStorageMedium</param>
 /// <param name="RecordMedium">Associated State Variable: RecordStorageMedium</param>
 /// <param name="WriteStatus">Associated State Variable: RecordMediumWriteStatus</param>
 public void GetMediaInfo(System.UInt32 InstanceID, out System.UInt32 NrTracks, out System.String MediaDuration, out System.String CurrentURI, out System.String CurrentURIMetaData, out System.String NextURI, out System.String NextURIMetaData, out Enum_PlaybackStorageMedium PlayMedium, out Enum_RecordStorageMedium RecordMedium, out Enum_RecordMediumWriteStatus WriteStatus)
 {
     //ToDo: Add Your implementation here, and remove exception
     throw(new UPnPCustomException(800,"This method has not been completely implemented..."));
 }