Files
whoswhip 63b77bece9 feat: comments & paste/comment reactions; renames/refactors
this is a LOT, i should've commited in stages but oh well, from what i can remember:
- paste interactions (reactions)
- comments
- comment interactions (reactions)
- rich text editor
- move all report apis into report controller
- rename size to sizeStored
- rename trueSize to originalSize
- fixed compression on paste compression
    - implemented compression threshold
- use longs instead of ints where possible in the entities
- improve record view + remove redundant check for existing view
2026-04-24 08:52:33 -04:00

54 lines
1.8 KiB
C#

using SharpbinV3.Server.Data.Enums;
using SharpbinV3.Server.DTOs.User;
namespace SharpbinV3.Server.DTOs.Paste
{
public class PasteResponseDto
{
public string ID { get; set; } = string.Empty;
public Guid UUID { get; set; }
public long CreatedAt { get; set; }
public string? Title { get; set; }
public string? Syntax { get; set; }
public long StoredSize { get; set; }
public long OriginalSize { get; set; }
public bool IsCompressed { get; set; }
public int Views { get; set; }
public Visibility Visibility { get; set; }
public long? EditedAt { get; set; }
public long ExpiresAt { get; set; }
public int? ReportCount { get; set; }
public int Likes { get; set; }
public int Dislikes { get; set; }
public Interaction? UserReaction { get; set; }
public UserSimpleDto? Author { get; set; }
}
public class PasteCreatedResponseDto
{
public string ID { get; set; } = string.Empty;
public Guid UUID { get; set; }
public long CreatedAt { get; set; }
public bool IsCompressed { get; set; }
public long StoredSize { get; set; }
public long OriginalSize { get; set; }
public long ExpiresAt { get; set; }
public Visibility Visibility { get; set; }
}
public class PasteOptionsDto
{
public string[] Syntaxes { get; set; } = [];
public List<PasteVisibilityOptionDto> Visibilities { get; set; } = [];
public int MaxTitleLength { get; set; }
public long MaxPasteSize { get; set; }
public bool RequiresVerification { get; set; }
}
public class PasteVisibilityOptionDto
{
public int Value { get; set; }
public string DisplayName { get; set; } = string.Empty;
}
}