mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
- Updated `PasteController.cs` to enhance visibility parameter handling and added methods for retrieving pastes with pagination and error handling. - Added `UID` property to the `Paste` class for better identification. - Refactored `Program.cs` to remove unused namespaces and improve response header handling. - Enhanced `DatabaseService.cs` with new methods for retrieving pastes and user pastes, including better error handling. - Adjusted pagination logic in `archive.js` and `dash.js` to start from page 1, improving user interface navigation.
20 lines
629 B
C#
20 lines
629 B
C#
namespace SharpbinV2.Server.Models
|
|
{
|
|
public class Paste
|
|
{
|
|
public int UID { get; set; }
|
|
public string? UUID { get; set; }
|
|
public string? ID { get; set; }
|
|
public int? Visibility { get; set; }
|
|
public string? Title { get; set; }
|
|
public string? AuthorUUID { get; set; }
|
|
public string? FilePath { get; set; }
|
|
public long? Created { get; set; }
|
|
public long? Edited { get; set; }
|
|
public int? Size { get; set; }
|
|
public int? TrueSize { get; set; }
|
|
public int? Views { get; set; }
|
|
public string? Syntax { get; set; }
|
|
}
|
|
}
|