From 4c380734315e1214657c8e83a4fba15b0fab2d7f Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 26 Mar 2023 11:52:33 +0200 Subject: [PATCH] Remove unused models --- src/Artemis.UI.Windows/Models/DevOpsBuilds.cs | 278 ------------------ .../Models/GitHubDifference.cs | 243 --------------- 2 files changed, 521 deletions(-) delete mode 100644 src/Artemis.UI.Windows/Models/DevOpsBuilds.cs delete mode 100644 src/Artemis.UI.Windows/Models/GitHubDifference.cs diff --git a/src/Artemis.UI.Windows/Models/DevOpsBuilds.cs b/src/Artemis.UI.Windows/Models/DevOpsBuilds.cs deleted file mode 100644 index 8bff29ad5..000000000 --- a/src/Artemis.UI.Windows/Models/DevOpsBuilds.cs +++ /dev/null @@ -1,278 +0,0 @@ -#nullable disable - -using System; -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Artemis.UI.Windows.Models; - -public class DevOpsBuilds -{ - [JsonProperty("count")] - public long Count { get; set; } - - [JsonProperty("value")] - public List Builds { get; set; } -} - -public class DevOpsBuild -{ - [JsonProperty("_links")] - public BuildLinks Links { get; set; } - - [JsonProperty("properties")] - public Properties Properties { get; set; } - - [JsonProperty("tags")] - public List Tags { get; set; } - - [JsonProperty("validationResults")] - public List ValidationResults { get; set; } - - [JsonProperty("plans")] - public List Plans { get; set; } - - [JsonProperty("triggerInfo")] - public TriggerInfo TriggerInfo { get; set; } - - [JsonProperty("id")] - public long Id { get; set; } - - [JsonProperty("buildNumber")] - public string BuildNumber { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("result")] - public string Result { get; set; } - - [JsonProperty("queueTime")] - public DateTimeOffset QueueTime { get; set; } - - [JsonProperty("startTime")] - public DateTimeOffset StartTime { get; set; } - - [JsonProperty("finishTime")] - public DateTimeOffset FinishTime { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("definition")] - public Definition Definition { get; set; } - - [JsonProperty("buildNumberRevision")] - public long BuildNumberRevision { get; set; } - - [JsonProperty("project")] - public Project Project { get; set; } - - [JsonProperty("uri")] - public string Uri { get; set; } - - [JsonProperty("sourceBranch")] - public string SourceBranch { get; set; } - - [JsonProperty("sourceVersion")] - public string SourceVersion { get; set; } - - [JsonProperty("priority")] - public string Priority { get; set; } - - [JsonProperty("reason")] - public string Reason { get; set; } - - [JsonProperty("requestedFor")] - public LastChangedBy RequestedFor { get; set; } - - [JsonProperty("requestedBy")] - public LastChangedBy RequestedBy { get; set; } - - [JsonProperty("lastChangedDate")] - public DateTimeOffset LastChangedDate { get; set; } - - [JsonProperty("lastChangedBy")] - public LastChangedBy LastChangedBy { get; set; } - - [JsonProperty("orchestrationPlan")] - public Plan OrchestrationPlan { get; set; } - - [JsonProperty("logs")] - public Logs Logs { get; set; } - - [JsonProperty("repository")] - public Repository Repository { get; set; } - - [JsonProperty("keepForever")] - public bool KeepForever { get; set; } - - [JsonProperty("retainedByRelease")] - public bool RetainedByRelease { get; set; } - - [JsonProperty("triggeredByBuild")] - public object TriggeredByBuild { get; set; } -} - -public class Definition -{ - [JsonProperty("drafts")] - public List Drafts { get; set; } - - [JsonProperty("id")] - public long Id { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("uri")] - public string Uri { get; set; } - - [JsonProperty("path")] - public string Path { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("queueStatus")] - public string QueueStatus { get; set; } - - [JsonProperty("revision")] - public long Revision { get; set; } - - [JsonProperty("project")] - public Project Project { get; set; } -} - -public class Project -{ - [JsonProperty("id")] - public Guid Id { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("state")] - public string State { get; set; } - - [JsonProperty("revision")] - public long Revision { get; set; } - - [JsonProperty("visibility")] - public string Visibility { get; set; } - - [JsonProperty("lastUpdateTime")] - public DateTimeOffset LastUpdateTime { get; set; } -} - -public class LastChangedBy -{ - [JsonProperty("displayName")] - public string DisplayName { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("_links")] - public LastChangedByLinks Links { get; set; } - - [JsonProperty("id")] - public Guid Id { get; set; } - - [JsonProperty("uniqueName")] - public object UniqueName { get; set; } - - [JsonProperty("imageUrl")] - public object ImageUrl { get; set; } - - [JsonProperty("descriptor")] - public string Descriptor { get; set; } -} - -public class LastChangedByLinks -{ - [JsonProperty("avatar")] - public Badge Avatar { get; set; } -} - -public class Badge -{ - [JsonProperty("href")] - public Uri Href { get; set; } -} - -public class BuildLinks -{ - [JsonProperty("self")] - public Badge Self { get; set; } - - [JsonProperty("web")] - public Badge Web { get; set; } - - [JsonProperty("sourceVersionDisplayUri")] - public Badge SourceVersionDisplayUri { get; set; } - - [JsonProperty("timeline")] - public Badge Timeline { get; set; } - - [JsonProperty("badge")] - public Badge Badge { get; set; } -} - -public class Logs -{ - [JsonProperty("id")] - public long Id { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } -} - -public class Plan -{ - [JsonProperty("planId")] - public Guid PlanId { get; set; } -} - -public class Properties -{ -} - -public class Repository -{ - [JsonProperty("id")] - public string Id { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("clean")] - public object Clean { get; set; } - - [JsonProperty("checkoutSubmodules")] - public bool CheckoutSubmodules { get; set; } -} - -public class TriggerInfo -{ - [JsonProperty("ci.sourceBranch")] - public string CiSourceBranch { get; set; } - - [JsonProperty("ci.sourceSha")] - public string CiSourceSha { get; set; } - - [JsonProperty("ci.message")] - public string CiMessage { get; set; } - - [JsonProperty("ci.triggerRepository")] - public string CiTriggerRepository { get; set; } -} \ No newline at end of file diff --git a/src/Artemis.UI.Windows/Models/GitHubDifference.cs b/src/Artemis.UI.Windows/Models/GitHubDifference.cs deleted file mode 100644 index 8a32d0d77..000000000 --- a/src/Artemis.UI.Windows/Models/GitHubDifference.cs +++ /dev/null @@ -1,243 +0,0 @@ -#nullable disable -using System; -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Artemis.UI.Windows.Models; - -public class GitHubDifference -{ - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("html_url")] - public Uri HtmlUrl { get; set; } - - [JsonProperty("permalink_url")] - public Uri PermalinkUrl { get; set; } - - [JsonProperty("diff_url")] - public Uri DiffUrl { get; set; } - - [JsonProperty("patch_url")] - public Uri PatchUrl { get; set; } - - [JsonProperty("base_commit")] - public BaseCommitClass BaseCommit { get; set; } - - [JsonProperty("merge_base_commit")] - public BaseCommitClass MergeBaseCommit { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("ahead_by")] - public long AheadBy { get; set; } - - [JsonProperty("behind_by")] - public long BehindBy { get; set; } - - [JsonProperty("total_commits")] - public long TotalCommits { get; set; } - - [JsonProperty("commits")] - public List Commits { get; set; } - - [JsonProperty("files")] - public List Files { get; set; } -} - -public class BaseCommitClass -{ - [JsonProperty("sha")] - public string Sha { get; set; } - - [JsonProperty("node_id")] - public string NodeId { get; set; } - - [JsonProperty("commit")] - public BaseCommitCommit Commit { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("html_url")] - public Uri HtmlUrl { get; set; } - - [JsonProperty("comments_url")] - public Uri CommentsUrl { get; set; } - - [JsonProperty("author")] - public BaseCommitAuthor Author { get; set; } - - [JsonProperty("committer")] - public BaseCommitAuthor Committer { get; set; } - - [JsonProperty("parents")] - public List Parents { get; set; } -} - -public class BaseCommitAuthor -{ - [JsonProperty("login")] - public string Login { get; set; } - - [JsonProperty("id")] - public long Id { get; set; } - - [JsonProperty("node_id")] - public string NodeId { get; set; } - - [JsonProperty("avatar_url")] - public Uri AvatarUrl { get; set; } - - [JsonProperty("gravatar_id")] - public string GravatarId { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("html_url")] - public Uri HtmlUrl { get; set; } - - [JsonProperty("followers_url")] - public Uri FollowersUrl { get; set; } - - [JsonProperty("following_url")] - public string FollowingUrl { get; set; } - - [JsonProperty("gists_url")] - public string GistsUrl { get; set; } - - [JsonProperty("starred_url")] - public string StarredUrl { get; set; } - - [JsonProperty("subscriptions_url")] - public Uri SubscriptionsUrl { get; set; } - - [JsonProperty("organizations_url")] - public Uri OrganizationsUrl { get; set; } - - [JsonProperty("repos_url")] - public Uri ReposUrl { get; set; } - - [JsonProperty("events_url")] - public string EventsUrl { get; set; } - - [JsonProperty("received_events_url")] - public Uri ReceivedEventsUrl { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("site_admin")] - public bool SiteAdmin { get; set; } -} - -public class BaseCommitCommit -{ - [JsonProperty("author")] - public PurpleAuthor Author { get; set; } - - [JsonProperty("committer")] - public PurpleAuthor Committer { get; set; } - - [JsonProperty("message")] - public string Message { get; set; } - - [JsonProperty("tree")] - public Tree Tree { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("comment_count")] - public long CommentCount { get; set; } - - [JsonProperty("verification")] - public Verification Verification { get; set; } -} - -public class PurpleAuthor -{ - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("email")] - public string Email { get; set; } - - [JsonProperty("date")] - public DateTimeOffset Date { get; set; } -} - -public class Tree -{ - [JsonProperty("sha")] - public string Sha { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } -} - -public class Verification -{ - [JsonProperty("verified")] - public bool Verified { get; set; } - - [JsonProperty("reason")] - public string Reason { get; set; } - - [JsonProperty("signature")] - public string Signature { get; set; } - - [JsonProperty("payload")] - public string Payload { get; set; } -} - -public class Parent -{ - [JsonProperty("sha")] - public string Sha { get; set; } - - [JsonProperty("url")] - public Uri Url { get; set; } - - [JsonProperty("html_url")] - public Uri HtmlUrl { get; set; } -} - -public class File -{ - [JsonProperty("sha")] - public string Sha { get; set; } - - [JsonProperty("filename")] - public string Filename { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("additions")] - public long Additions { get; set; } - - [JsonProperty("deletions")] - public long Deletions { get; set; } - - [JsonProperty("changes")] - public long Changes { get; set; } - - [JsonProperty("blob_url")] - public Uri BlobUrl { get; set; } - - [JsonProperty("raw_url")] - public Uri RawUrl { get; set; } - - [JsonProperty("contents_url")] - public Uri ContentsUrl { get; set; } - - [JsonProperty("patch")] - public string Patch { get; set; } - - [JsonProperty("previous_filename", NullValueHandling = NullValueHandling.Ignore)] - public string PreviousFilename { get; set; } -} \ No newline at end of file