PhoneToolMX/PhoneToolMX.Models/Models/CustomData.cs

21 lines
581 B
C#
Raw Normal View History

2023-10-18 04:55:10 +00:00
using PhoneToolMX.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PhoneToolMX.Models {
public enum CustomDataType {
Background,
MusicTone,
}
public class CustomData : IModel {
public int? Id { get; set; }
[MaxLength(16)]
[Header("Name")]
public string FriendlyName { get; set; }
public CustomDataType DataType { get; set; }
[Header("Size")]
public uint Size { get; set; }
public byte[] Data { get; set; }
}
}