Projektdateien hinzufügen.
This commit is contained in:
25
OwnChar.sln
Normal file
25
OwnChar.sln
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.9.34714.143
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OwnChar", "OwnChar\OwnChar.csproj", "{9BD8A604-CB80-4D79-B90E-051083654B2D}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{9BD8A604-CB80-4D79-B90E-051083654B2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9BD8A604-CB80-4D79-B90E-051083654B2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9BD8A604-CB80-4D79-B90E-051083654B2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{9BD8A604-CB80-4D79-B90E-051083654B2D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {C773C9EB-A7A1-4575-9AF7-CDC5347FBF81}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
7
OwnChar/Model/Character.cs
Normal file
7
OwnChar/Model/Character.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace OwnChar.Model
|
||||||
|
{
|
||||||
|
public class Character
|
||||||
|
{
|
||||||
|
public PropertyList Properties { get; set; } = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
9
OwnChar/Model/Property.cs
Normal file
9
OwnChar/Model/Property.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
namespace OwnChar.Model
|
||||||
|
{
|
||||||
|
public class Property(string name)
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = name;
|
||||||
|
public PropertyCategory? Category { get; set; }
|
||||||
|
public object? Value { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
7
OwnChar/Model/PropertyCategory.cs
Normal file
7
OwnChar/Model/PropertyCategory.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace OwnChar.Model
|
||||||
|
{
|
||||||
|
public class PropertyCategory(string name)
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
6
OwnChar/Model/PropertyList.cs
Normal file
6
OwnChar/Model/PropertyList.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
namespace OwnChar.Model
|
||||||
|
{
|
||||||
|
public class PropertyList : List<Property>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
16
OwnChar/Model/UserAccount.cs
Normal file
16
OwnChar/Model/UserAccount.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using Pilz.Cryptography;
|
||||||
|
|
||||||
|
namespace OwnChar.Model
|
||||||
|
{
|
||||||
|
public class UserAccount(string email, string username, SecureString password, string? displayName)
|
||||||
|
{
|
||||||
|
public UserProfile Profile { get; set; } = new(string.IsNullOrWhiteSpace(displayName) ? username : displayName);
|
||||||
|
public string Username { get; set; } = username;
|
||||||
|
public string Email { get; set; } = email;
|
||||||
|
public SecureString Password { get; set; } = password;
|
||||||
|
|
||||||
|
public UserAccount(string email, string username, SecureString password) : this(email, username, password, username)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
7
OwnChar/Model/UserProfile.cs
Normal file
7
OwnChar/Model/UserProfile.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace OwnChar.Model
|
||||||
|
{
|
||||||
|
public class UserProfile(string name)
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
13
OwnChar/OwnChar.csproj
Normal file
13
OwnChar/OwnChar.csproj
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Pilz.Cryptography" Version="2.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user