IDeviceDiscovery.cs 612 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Events;
  4. using MediaBrowser.Model.Net;
  5. namespace MediaBrowser.Controller.Dlna
  6. {
  7. public interface IDeviceDiscovery
  8. {
  9. event EventHandler<GenericEventArgs<UpnpDeviceInfo>> DeviceDiscovered;
  10. event EventHandler<GenericEventArgs<UpnpDeviceInfo>> DeviceLeft;
  11. }
  12. public class UpnpDeviceInfo
  13. {
  14. public Uri Location { get; set; }
  15. public Dictionary<string, string> Headers { get; set; }
  16. public IpAddressInfo LocalIpAddress { get; set; }
  17. public int LocalPort { get; set; }
  18. }
  19. }