mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Started work on giveaways, not completed
This commit is contained in:
12
src/Nadeko.Bot.Db/Models/giveaway/GiveawayModel.cs
Normal file
12
src/Nadeko.Bot.Db/Models/giveaway/GiveawayModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace NadekoBot.Db.Models;
|
||||
|
||||
public sealed class GiveawayModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public ulong GuildId { get; set; }
|
||||
public ulong MessageId { get; set; }
|
||||
public string Message { get; set; }
|
||||
|
||||
public IList<GiveawayUser> Participants { get; set; } = new List<GiveawayUser>();
|
||||
public DateTime EndsAt { get; set; }
|
||||
}
|
9
src/Nadeko.Bot.Db/Models/giveaway/GiveawayUser.cs
Normal file
9
src/Nadeko.Bot.Db/Models/giveaway/GiveawayUser.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace NadekoBot.Db.Models;
|
||||
|
||||
public sealed class GiveawayUser
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int GiveawayId { get; set; }
|
||||
public ulong UserId { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
2
src/Nadeko.Bot.Db/Nadeko.Bot.Db.csproj.DotSettings
Normal file
2
src/Nadeko.Bot.Db/Nadeko.Bot.Db.csproj.DotSettings
Normal file
@@ -0,0 +1,2 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=models_005Cgiveaway/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
Reference in New Issue
Block a user