Storing in DB now
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
public class CelDto : IKisekaeFile, IKisekaeParseable
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int KisekaeId { get; set; }
|
||||
public string Filename { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
public class ConfigurationDto : IKisekaeFile
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Filename { get; set; }
|
||||
public string Data { get; set; }
|
||||
public int KisekaeId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
public interface IKisekaeFile
|
||||
{
|
||||
int Id { get; set; }
|
||||
int KisekaeId { get; set; }
|
||||
string Filename { get; set; }
|
||||
}
|
||||
|
||||
public interface IKisekaeParseable
|
||||
{
|
||||
byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
public class Kisekae
|
||||
public class KisekaeDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Filename { get; set; }
|
||||
public string Checksum { get; set; }
|
||||
|
||||
public IEnumerable<CelDto> Cels { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace fxl.codes.kisekae.Entities
|
||||
{
|
||||
public class PaletteDto : IKisekaeFile, IKisekaeParseable
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int KisekaeId { get; set; }
|
||||
public string Filename { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user