From 27b792afb8084574f44d583ed3c200f38ad95fed Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 13 Mar 2014 16:57:59 -0400 Subject: [PATCH] restore property values --- MediaBrowser.Dlna/PlayTo/DeviceInfo.cs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Dlna/PlayTo/DeviceInfo.cs b/MediaBrowser.Dlna/PlayTo/DeviceInfo.cs index 91e8cb0be..f952b725e 100644 --- a/MediaBrowser.Dlna/PlayTo/DeviceInfo.cs +++ b/MediaBrowser.Dlna/PlayTo/DeviceInfo.cs @@ -4,13 +4,30 @@ namespace MediaBrowser.Dlna.PlayTo { public class DeviceInfo { + public DeviceInfo() + { + ClientType = "DLNA"; + Name = "Generic Device"; + } + public string UUID { get; set; } public string Name { get; set; } public string ClientType { get; set; } - public string DisplayName { get; set; } + private string _displayName = string.Empty; + public string DisplayName + { + get + { + return string.IsNullOrEmpty(_displayName) ? Name : _displayName; + } + set + { + _displayName = value; + } + } public string ModelName { get; set; }