From 3aa8e1cda4222fc3a9828888ba8fb51d2ba1d6c8 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 21 Aug 2020 23:44:53 +0800 Subject: ... --- Timeline/Models/Http/UserInfo.cs | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'Timeline/Models/Http/UserInfo.cs') diff --git a/Timeline/Models/Http/UserInfo.cs b/Timeline/Models/Http/UserInfo.cs index c9a26072..d92a12c4 100644 --- a/Timeline/Models/Http/UserInfo.cs +++ b/Timeline/Models/Http/UserInfo.cs @@ -2,26 +2,55 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; -using System; using Timeline.Controllers; namespace Timeline.Models.Http { + /// + /// Info of a user. + /// public class UserInfo { + /// + /// Unique id. + /// public string UniqueId { get; set; } = default!; + /// + /// Username. + /// public string Username { get; set; } = default!; + /// + /// Nickname. + /// public string Nickname { get; set; } = default!; + /// + /// True if the user is a administrator. + /// public bool? Administrator { get; set; } = default!; #pragma warning disable CA1707 // Identifiers should not contain underscores + /// + /// Related links. + /// public UserInfoLinks _links { get; set; } = default!; #pragma warning restore CA1707 // Identifiers should not contain underscores } + /// + /// Related links for user. + /// public class UserInfoLinks { + /// + /// Self. + /// public string Self { get; set; } = default!; + /// + /// Avatar url. + /// public string Avatar { get; set; } = default!; + /// + /// Personal timeline url. + /// public string Timeline { get; set; } = default!; } -- cgit v1.2.3