From 21cf6a046b3e279c0694594f40e33daaa4d863f7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- BackEnd/Timeline/Models/Http/User.cs | 74 ------------------------------------ 1 file changed, 74 deletions(-) delete mode 100644 BackEnd/Timeline/Models/Http/User.cs (limited to 'BackEnd/Timeline/Models/Http/User.cs') diff --git a/BackEnd/Timeline/Models/Http/User.cs b/BackEnd/Timeline/Models/Http/User.cs deleted file mode 100644 index 994c08bf..00000000 --- a/BackEnd/Timeline/Models/Http/User.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System.Collections.Generic; - -namespace Timeline.Models.Http -{ - /// - /// Info of a user. - /// - public class HttpUser - { - public HttpUser() { } - - public HttpUser(string uniqueId, string username, string nickname, List permissions, HttpUserLinks links) - { - UniqueId = uniqueId; - Username = username; - Nickname = nickname; - Permissions = permissions; - _links = links; - } - - /// - /// Unique id. - /// - public string UniqueId { get; set; } = default!; - /// - /// Username. - /// - public string Username { get; set; } = default!; - /// - /// Nickname. - /// - public string Nickname { get; set; } = default!; -#pragma warning disable CA2227 // Collection properties should be read only - /// - /// The permissions of the user. - /// - public List Permissions { get; set; } = default!; -#pragma warning restore CA2227 // Collection properties should be read only -#pragma warning disable CA1707 // Identifiers should not contain underscores - /// - /// Related links. - /// - public HttpUserLinks _links { get; set; } = default!; -#pragma warning restore CA1707 // Identifiers should not contain underscores - } - - /// - /// Related links for user. - /// - public class HttpUserLinks - { - public HttpUserLinks() { } - - public HttpUserLinks(string self, string avatar, string timeline) - { - Self = self; - Avatar = avatar; - Timeline = timeline; - } - - /// - /// 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