aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-31 15:15:33 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-31 15:15:33 -0400
commit45db7d21b2a0a18b73253c64651a57c60880b084 (patch)
tree3f6eb8bae23c5c7a3cab6e4c4ee34f8b2ba1838f /MediaBrowser.Model/Entities
parent10dedf92adddeae707bae5a4204c8164f5bfea48 (diff)
localize plugin installation process
Diffstat (limited to 'MediaBrowser.Model/Entities')
-rw-r--r--MediaBrowser.Model/Entities/MBRegistrationRecord.cs32
1 files changed, 14 insertions, 18 deletions
diff --git a/MediaBrowser.Model/Entities/MBRegistrationRecord.cs b/MediaBrowser.Model/Entities/MBRegistrationRecord.cs
index e72a5011c..3a4af19d8 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