Skip to content

Commit

Permalink
Adding namespace to Database classes was a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
CPULL committed Jul 26, 2022
1 parent 817e58f commit c3f6941
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 32 deletions.
59 changes: 28 additions & 31 deletions UPBot Code/DataClasses/TagBase.cs
Original file line number Diff line number Diff line change
@@ -1,36 +1,33 @@
using System;

namespace UPBot {
public class TagBase : Entity {
[Key] public ulong Guild;
[Key] public string Topic;
public string Alias1;
public string Alias2;
public string Alias3;
[Comment] public string Information;
public string Author;
public long ColorOfTheme;
public DateTime timeOfCreation;
public string thumbnailLink;
public string AuthorIcon;
public string imageLink;
public class TagBase : Entity {
[Key] public ulong Guild;
[Key] public string Topic;
public string Alias1;
public string Alias2;
public string Alias3;
[Comment] public string Information;
public string Author;
public long ColorOfTheme;
public DateTime timeOfCreation;
public string thumbnailLink;
public string AuthorIcon;
public string imageLink;

public TagBase() { }
public TagBase() { }

public TagBase(ulong guild, string topic, string info, string author, string authorIcon, int colorOfTheme, DateTime time, string thumbnailLink, string imageLink) {
Guild = guild;
Topic = topic;
Alias1 = null;
Alias2 = null;
Alias3 = null;
Information = info;
Author = author;
AuthorIcon = authorIcon;
ColorOfTheme = colorOfTheme;
timeOfCreation = time;
this.thumbnailLink = thumbnailLink;
this.imageLink = imageLink;
}
public TagBase(ulong guild, string topic, string info, string author, string authorIcon, int colorOfTheme, DateTime time, string thumbnailLink, string imageLink) {
Guild = guild;
Topic = topic;
Alias1 = null;
Alias2 = null;
Alias3 = null;
Information = info;
Author = author;
AuthorIcon = authorIcon;
ColorOfTheme = colorOfTheme;
timeOfCreation = time;
this.thumbnailLink = thumbnailLink;
this.imageLink = imageLink;
}

}
}
2 changes: 1 addition & 1 deletion UPBot Code/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private class LogInfo {
readonly private static Dictionary<string, LogInfo> logs = new();

public static string GetVersion() {
return vmajor + "." + vminor + "." + vbuild + vrev + " - 2022/07/25";
return vmajor + "." + vminor + "." + vbuild + vrev + " - 2022/07/26";
}

public static DiscordClient GetClient() {
Expand Down

0 comments on commit c3f6941

Please sign in to comment.