From 337c31012cb90f1daec24bd1bb82ef4454ba3cf2 Mon Sep 17 00:00:00 2001 From: evan-scales Date: Sun, 21 Apr 2024 16:05:03 -0400 Subject: [PATCH] 383: Comment helpers --- FU.API/FU.API/Helpers/AuthHelper.cs | 4 ++++ FU.API/FU.API/Helpers/Mapper.cs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/FU.API/FU.API/Helpers/AuthHelper.cs b/FU.API/FU.API/Helpers/AuthHelper.cs index 624178ac..e9f37de5 100644 --- a/FU.API/FU.API/Helpers/AuthHelper.cs +++ b/FU.API/FU.API/Helpers/AuthHelper.cs @@ -6,6 +6,10 @@ using System.Security.Claims; using System.Text; +/// +/// Helper class for creating authentication tokens. +/// Used when a user logs in or sending account verification emails. +/// public static class AuthHelper { public static AuthenticationInfo CreateAuthInfo(IConfiguration configuration, DateTime expires, int userId) diff --git a/FU.API/FU.API/Helpers/Mapper.cs b/FU.API/FU.API/Helpers/Mapper.cs index 5fd67165..98c09245 100644 --- a/FU.API/FU.API/Helpers/Mapper.cs +++ b/FU.API/FU.API/Helpers/Mapper.cs @@ -10,6 +10,11 @@ namespace FU.API.Helpers; using FU.API.DTOs.User; using FU.API.DTOs; +/// +/// A static class that contains extension methods for mapping between DTOs and models. +/// Used to keep the controllers clean. +/// Simple mapping, and no complex logic. +/// public static class Mapper { public static UserProfile ToProfile(this ApplicationUser appUser, Message? lastChatMessage = null)