diff options
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/Dto/BaseItemDto.cs | 6 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/MBRegistrationRecord.cs | 32 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/PluginSecurityInfo.cs | 6 |
3 files changed, 19 insertions, 25 deletions
diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index 360d2d8621..ec5a26eee1 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -732,7 +732,11 @@ namespace MediaBrowser.Model.Dto public ImageOrientation? ImageOrientation { get; set; } public double? Aperture { get; set; } public double? ShutterSpeed { get; set; } - + public double? Latitude { get; set; } + public double? Longitude { get; set; } + public double? Altitude { get; set; } + public int? IsoSpeedRating { get; set; } + /// <summary> /// Gets a value indicating whether this instance can resume. /// </summary> diff --git a/MediaBrowser.Model/Entities/MBRegistrationRecord.cs b/MediaBrowser.Model/Entities/MBRegistrationRecord.cs index e72a5011c2..3a4af19d87 100644 --- a/MediaBrowser.Model/Entities/MBRegistrationRecord.cs +++ b/MediaBrowser.Model/Entities/MBRegistrationRecord.cs @@ -5,25 +5,21 @@ namespace MediaBrowser.Model.Entities public class MBRegistrationRecord { public DateTime ExpirationDate { get; set; } - public bool IsRegistered { get; set;} + public bool IsRegistered { get; set; } public bool RegChecked { get; set; } public bool RegError { get; set; } - private bool? _isInTrial; - public bool TrialVersion - { - get - { - if (_isInTrial == null) - { - if (!RegChecked) return false; //don't set this until we've successfully obtained exp date - _isInTrial = ExpirationDate > DateTime.Now; - } - return (_isInTrial.Value && !IsRegistered); - } - } - public bool IsValid - { - get { return !RegChecked || (IsRegistered || TrialVersion); } - } + public bool TrialVersion { get; set; } + public bool IsValid { get; set; } + } + + public class SupporterInfo + { + public string Email { get; set; } + public string SupporterKey { get; set; } + public DateTime? ExpirationDate { get; set; } + public DateTime RegistrationDate { get; set; } + public string PlanType { get; set; } + public bool IsActiveSupporter { get; set; } + public bool IsExpiredSupporter { get; set; } } }
\ No newline at end of file diff --git a/MediaBrowser.Model/Entities/PluginSecurityInfo.cs b/MediaBrowser.Model/Entities/PluginSecurityInfo.cs index e338e43f88..5cab55013e 100644 --- a/MediaBrowser.Model/Entities/PluginSecurityInfo.cs +++ b/MediaBrowser.Model/Entities/PluginSecurityInfo.cs @@ -13,12 +13,6 @@ namespace MediaBrowser.Model.Entities public string SupporterKey { get; set; } /// <summary> - /// Gets or sets the legacy supporter key. - /// </summary> - /// <value><c>The legacy supporter key</value> - public string LegacyKey { get; set; } - - /// <summary> /// Gets or sets a value indicating whether this instance is MB supporter. /// </summary> /// <value><c>true</c> if this instance is MB supporter; otherwise, <c>false</c>.</value> |
