#102: Moving Models and constants to their own library
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace Icarus.Constants;
|
||||
|
||||
public class DirectoryPaths
|
||||
{
|
||||
public static string CoverArtDirectory => Directory.GetCurrentDirectory() + "/Images/Stock/";
|
||||
public static string CoverArtFilename => "CoverArt.png";
|
||||
public static string FILENAME_CHARACTERS = "ABCDEF0123456789";
|
||||
public static int FILENAME_LENGTH = 25;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Icarus.Constants;
|
||||
|
||||
public class FileExtensions
|
||||
{
|
||||
// Contains the default audio file extension with period at the beginning
|
||||
public static string DEFAULT_AUDIO_EXTENSION = WAV_EXTENSION!;
|
||||
|
||||
// Contains file extension with period at the beginning
|
||||
public static string MP3_EXTENSION = ".mp3";
|
||||
|
||||
// Contains file extension with period at the beginning
|
||||
public static string WAV_EXTENSION = ".wav";
|
||||
|
||||
// Contains file extension with period at the beginning
|
||||
public static string JPG_EXTENSION = ".jpg";
|
||||
|
||||
// Contains file extension with period at the beginning
|
||||
public static string FLAC_EXTENSION = ".flac";
|
||||
|
||||
// Contains file extension with period at the beginning
|
||||
public static string ZIP_EXTENSION = ".zip";
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<PackageId>Icarus.Models</PackageId>
|
||||
<Product>Icarus.Models</Product>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="newtonsoft.json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user