Ejemplo n.º 1
0
        public bool Parse(DeviceDiscoveryReportItem report)
        {
            if (report is ChromecastDeviceDiscoveryReportItem == false)
            {
                return(false);
            }
            var chromeCastReport = report as ChromecastDeviceDiscoveryReportItem;

            this.EndPoint     = chromeCastReport.EndPoint;
            this.Interface    = chromeCastReport.Interface;
            this.Name         = chromeCastReport.Name;
            this.BaseUrl      = chromeCastReport.BaseUri.ToString();
            this.Type         = chromeCastReport.DeviceType;
            this.Manufacturer = chromeCastReport.Manufacturer;
            this.Model        = chromeCastReport.Model;
            return(true);
        }
Ejemplo n.º 2
0
 public DeviceAggregate(DeviceDiscoveryReportItem report)
 {
     this.Report = report;
 }