2024-03-27 06:38:38 -07:00
|
|
|
|
using Avalonia.Media.Imaging;
|
|
|
|
|
|
|
|
|
|
namespace SourceGit.Models
|
2024-03-17 18:37:06 -07:00
|
|
|
|
{
|
|
|
|
|
public class RevisionBinaryFile
|
|
|
|
|
{
|
2024-03-13 20:59:56 -07:00
|
|
|
|
public long Size { get; set; } = 0;
|
2024-02-05 23:08:37 -08:00
|
|
|
|
}
|
|
|
|
|
|
2024-03-27 06:38:38 -07:00
|
|
|
|
public class RevisionImageFile
|
|
|
|
|
{
|
|
|
|
|
public Bitmap Image { get; set; } = null;
|
2024-09-14 01:13:40 -07:00
|
|
|
|
public long FileSize { get; set; } = 0;
|
|
|
|
|
public string ImageType { get; set; } = string.Empty;
|
|
|
|
|
public string ImageSize => Image != null ? $"{Image.PixelSize.Width} x {Image.PixelSize.Height}" : "0 x 0";
|
2024-03-27 06:38:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public class RevisionTextFile
|
|
|
|
|
{
|
2024-08-07 19:12:39 -07:00
|
|
|
|
public string FileName { get; set; }
|
2024-02-05 23:08:37 -08:00
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public class RevisionLFSObject
|
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
|
public LFSObject Object { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public class RevisionSubmodule
|
|
|
|
|
{
|
2024-06-18 23:24:49 -07:00
|
|
|
|
public Commit Commit { get; set; } = null;
|
|
|
|
|
public string FullMessage { get; set; } = string.Empty;
|
2024-02-05 23:08:37 -08:00
|
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
|
}
|