Added settings classes for CSS; added Register parsing

This commit is contained in:
schnulller
2022-05-18 04:38:57 +02:00
parent 2ffd46cd62
commit f1743fcf39
14 changed files with 882 additions and 258 deletions

View File

@@ -2,12 +2,21 @@ namespace HaWeb.Models;
using HaDocument.Models;
public class RegisterViewModel {
public string Category { get; set; } = "";
public string Id { get; set; } = "";
public string Search { get; set; } = "";
public bool MaxSearch { get; set; } = false;
public string Category { get; private set; }
public string Id { get; private set; }
public string Title { get; private set; }
public string? Search { get; set; } = null;
public bool? MaxSearch { get; set; } = null;
// TODO: no null-checks in the Page Logic
public List<CommentModel>? Comments { get; set; } = null;
public List<CommentModel> ParsedComments { get; private set; }
public List<(string, string)>? AvailableCategories { get; set; } = null;
public List<(string, string)>? AvailableSideCategories { get; set; } = null;
public RegisterViewModel(string category, string id, List<CommentModel> parsedComments, string title) {
this.Category = category;
this.Id = id;
this.ParsedComments = parsedComments;
this.Title = title;
}
}