Add project files.

This commit is contained in:
2025-06-29 08:47:52 +02:00
commit 88161dc2ab
46 changed files with 1894 additions and 0 deletions

View File

@ -0,0 +1,12 @@
namespace OfflineDemo.Models;
public class ShortsModel
{
public int Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Hashtags { get; set; }
public string Mp4FileUrl { get; set; }
public string ImageFileUrl { get; set; }
public bool IsUploaded { get; set; } = false;
}

View File

@ -0,0 +1,8 @@
namespace OfflineDemo.Models;
public class TodoModel
{
public DateTime CreationDate { get; set; } = DateTime.Now;
public string ToDoItem { get; set; }
public bool IsComplete { get; set; }
}

View File

@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace OfflineDemo.Models;
public class UploadModel
{
[Required]
[StringLength(100, ErrorMessage = "Title must be less than 100 characters.")]
public string Title { get; set; } = "";
[Required]
[StringLength(500, ErrorMessage = "Description must be less than 500 characters.")]
public string Description { get; set; } = "";
[StringLength(200, ErrorMessage = "Hashtags must be less than 200 characters.")]
public string Hashtags { get; set; } = "#";
}