mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
Move ShiftOS save variables to Unite
This commit is contained in:
parent
9f42b970ad
commit
5253e1544b
1 changed files with 44 additions and 1 deletions
|
@ -45,6 +45,34 @@ public Role HighestRole
|
|||
}
|
||||
}
|
||||
|
||||
public int StoryPosition { get; set; }
|
||||
public string Language { get; set; }
|
||||
public int MajorVersion { get; set; }
|
||||
public int MinorVersion { get; set; }
|
||||
public int Revision { get; set; }
|
||||
|
||||
public ShiftoriumUpgrade[] Upgrades
|
||||
{
|
||||
get
|
||||
{
|
||||
var db = new ApplicationDbContext();
|
||||
return db.ShiftoriumUpgrades.Where(x => x.UserId == this.Id).ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsPatreon { get; set; }
|
||||
|
||||
public int ShiftnetSubscription { get; set; }
|
||||
|
||||
public int LastMonthPaid { get; set; }
|
||||
public Story[] Stories
|
||||
{
|
||||
get
|
||||
{
|
||||
return new ApplicationDbContext().Stories.Where(x => x.UserId == this.Id).ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public string LastKnownIPAddress { get; set; }
|
||||
public DateTime JoinedAt { get; set; }
|
||||
public DateTime LastLogin { get; set; }
|
||||
|
@ -166,6 +194,7 @@ public static ApplicationDbContext Create()
|
|||
return new ApplicationDbContext();
|
||||
}
|
||||
|
||||
public DbSet<ShiftoriumUpgrade> ShiftoriumUpgrades { get; set; }
|
||||
public DbSet<Notification> Notifications { get; set; }
|
||||
public DbSet<UserFollow> Follows { get; set; }
|
||||
public DbSet<UserPost> UserPosts { get; set; }
|
||||
|
@ -181,7 +210,7 @@ public static ApplicationDbContext Create()
|
|||
public DbSet<ForumPollOption> ForumPollOptions { get; set; }
|
||||
public DbSet<ForumPollVote> ForumPollVotes { get; set; }
|
||||
public DbSet<ForumPost> ForumPosts { get; set; }
|
||||
|
||||
public DbSet<Story> Stories { get; set; }
|
||||
}
|
||||
|
||||
public class UserPost
|
||||
|
@ -213,4 +242,18 @@ public Like[] Dislikes
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShiftoriumUpgrade
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public string EngineUpgradeId { get; set; }
|
||||
}
|
||||
|
||||
public class Story
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public string EngineStoryId { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue