mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
icefry
This commit is contained in:
parent
0a8c420c92
commit
90d062973b
5 changed files with 26 additions and 3 deletions
|
@ -26,6 +26,8 @@ namespace Project_Unite
|
||||||
BundleConfig.RegisterBundles(BundleTable.Bundles);
|
BundleConfig.RegisterBundles(BundleTable.Bundles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void Application_BeginRequest(object sender, EventArgs e)
|
protected void Application_BeginRequest(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var configuration = new Migrations.Configuration();
|
var configuration = new Migrations.Configuration();
|
||||||
|
|
|
@ -92,4 +92,13 @@ namespace Project_Unite.Models
|
||||||
Moderator,
|
Moderator,
|
||||||
User
|
User
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class Configuration
|
||||||
|
{
|
||||||
|
public string Id { get; set; }
|
||||||
|
public string SiteName { get; set; }
|
||||||
|
public string ReturnEmail { get; set; }
|
||||||
|
public string UniteBotToken { get; set; }
|
||||||
|
public string DiscordChannelId { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -194,6 +194,7 @@ namespace Project_Unite.Models
|
||||||
return new ApplicationDbContext();
|
return new ApplicationDbContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DbSet<Configuration> Configs { get; set; }
|
||||||
public DbSet<ShiftoriumUpgrade> ShiftoriumUpgrades { get; set; }
|
public DbSet<ShiftoriumUpgrade> ShiftoriumUpgrades { get; set; }
|
||||||
public DbSet<Notification> Notifications { get; set; }
|
public DbSet<Notification> Notifications { get; set; }
|
||||||
public DbSet<UserFollow> Follows { get; set; }
|
public DbSet<UserFollow> Follows { get; set; }
|
||||||
|
|
|
@ -8,6 +8,8 @@ namespace Project_Unite
|
||||||
{
|
{
|
||||||
public static class NotificationDaemon
|
public static class NotificationDaemon
|
||||||
{
|
{
|
||||||
|
public static Action<Notification> OnBroadcast;
|
||||||
|
|
||||||
public static void NotifyFollowers(string uid, string title, string desc, string url)
|
public static void NotifyFollowers(string uid, string title, string desc, string url)
|
||||||
{
|
{
|
||||||
var db = new ApplicationDbContext();
|
var db = new ApplicationDbContext();
|
||||||
|
|
|
@ -106,6 +106,18 @@
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="Nito.AsyncEx, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Nito.AsyncEx.3.0.1\lib\net45\Nito.AsyncEx.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Nito.AsyncEx.Concurrent, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Nito.AsyncEx.3.0.1\lib\net45\Nito.AsyncEx.Concurrent.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Nito.AsyncEx.Enlightenment, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Nito.AsyncEx.3.0.1\lib\net45\Nito.AsyncEx.Enlightenment.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
|
@ -169,9 +181,6 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Newtonsoft.Json">
|
|
||||||
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="EntityFramework">
|
<Reference Include="EntityFramework">
|
||||||
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
|
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
Loading…
Add table
Reference in a new issue