mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-12 10:29:42 +08:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using Foxel.Models.DataBase;
|
|
|
|
namespace Foxel.Models.Response.Picture;
|
|
|
|
public record PictureResponse
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? Path { get; set; }
|
|
public string? ThumbnailPath { get; set; }
|
|
public string? OriginalPath { get; set; }
|
|
public string Description { get; set; } = string.Empty;
|
|
public DateTime CreatedAt { get; set; }
|
|
public List<string>? Tags { get; set; }
|
|
public DateTime? TakenAt { get; set; }
|
|
public ExifInfo? ExifInfo { get; set; }
|
|
public int? UserId { get; set; }
|
|
private string? _username;
|
|
public string? Username
|
|
{
|
|
get => string.IsNullOrEmpty(_username) ? "匿名" : _username;
|
|
set => _username = value;
|
|
}
|
|
public bool IsFavorited { get; set; }
|
|
public int FavoriteCount { get; set; }
|
|
public int? AlbumId { get; set; }
|
|
public string? AlbumName { get; set; }
|
|
public PermissionType Permission { get; set; } = PermissionType.Public;
|
|
public string? StorageModeName { get; set; }
|
|
public List<FaceResponse>? Faces { get; set; }
|
|
}
|