Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            UpnpAvStorageMedium medium = obj as UpnpAvStorageMedium;

            if (medium != null && this == medium)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
        public void GetMediaInfo(UInt32 instanceId, out UInt32 nrTracks, out string mediaDuration, out string currentUri,
                                 out string currentUriMetaData, out string nextUri, out string nextUriMetaData,
                                 out UpnpAvStorageMedium playMedium, out UpnpAvStorageMedium recordMedium,
                                 out UpnpAvRecordMediumWriteStatus writeStatus)
        {
            IList <object> outParams = _getMediaInfoAction.InvokeAction(new List <object> {
                instanceId
            });

            nrTracks           = (uint)outParams[0];
            mediaDuration      = (string)outParams[1];
            currentUri         = (string)outParams[2];
            currentUriMetaData = (string)outParams[3];
            nextUri            = (string)outParams[4];
            nextUriMetaData    = (string)outParams[5];
            playMedium         = (UpnpAvStorageMedium)(string)outParams[6];
            recordMedium       = (UpnpAvStorageMedium)(string)outParams[7];
            writeStatus        = (UpnpAvRecordMediumWriteStatus)Enum.Parse(typeof(UpnpAvRecordMediumWriteStatus), (string)outParams[8]);
        }
Exemplo n.º 3
0
 public void GetMediaInfo(UInt32 instanceId, out UInt32 nrTracks, out string mediaDuration, out string currentUri,
                           out string currentUriMetaData, out string nextUri, out string nextUriMetaData,
                           out UpnpAvStorageMedium playMedium, out UpnpAvStorageMedium recordMedium,
                           out UpnpAvRecordMediumWriteStatus writeStatus)
 {
   IList<object> outParams = _getMediaInfoAction.InvokeAction(new List<object> { instanceId });
   nrTracks = (uint)outParams[0];
   mediaDuration = (string)outParams[1];
   currentUri = (string)outParams[2];
   currentUriMetaData = (string)outParams[3];
   nextUri = (string)outParams[4];
   nextUriMetaData = (string)outParams[5];
   playMedium = (UpnpAvStorageMedium)(string)outParams[6];
   recordMedium = (UpnpAvStorageMedium)(string)outParams[7];
   writeStatus = (UpnpAvRecordMediumWriteStatus)Enum.Parse(typeof(UpnpAvRecordMediumWriteStatus), (string)outParams[8]);
 }