From d73f21d7ace7b3e1d1685098e12ef1374a7c2b5c Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 2 Jul 2022 14:35:54 -0400 Subject: [PATCH] modified application source files to fit library --- DeskHubSharpRevised/BLL/Request.cs | 5 ++--- DeskHubSharpRevised/DAL/ApiDataService.cs | 2 +- DeskHubSharpRevised/DAL/JsonDataService.cs | 2 +- DeskHubSharpRevised/DetailWindow.axaml.cs | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DeskHubSharpRevised/BLL/Request.cs b/DeskHubSharpRevised/BLL/Request.cs index 6f7628e..0ce5bc9 100644 --- a/DeskHubSharpRevised/BLL/Request.cs +++ b/DeskHubSharpRevised/BLL/Request.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; using DeskHubSharpRevised.DAL; using DeskHubSharpRevised.Models; @@ -63,8 +64,6 @@ public class Request public List PerformGetSort() { - Sort sort = new Sort(); - var sortTerms = sort.GetSortTerms(); - return sortTerms; + return new Sort().GetSortTerms; } } \ No newline at end of file diff --git a/DeskHubSharpRevised/DAL/ApiDataService.cs b/DeskHubSharpRevised/DAL/ApiDataService.cs index 1eb284f..3943d99 100644 --- a/DeskHubSharpRevised/DAL/ApiDataService.cs +++ b/DeskHubSharpRevised/DAL/ApiDataService.cs @@ -10,7 +10,7 @@ namespace DeskHubSharpRevised.DAL; public class ApiDataService : IDataService { - private string _apiEndpoint; + private string _apiEndpoint; private string _query; public List RepoDetail { get; set; } diff --git a/DeskHubSharpRevised/DAL/JsonDataService.cs b/DeskHubSharpRevised/DAL/JsonDataService.cs index b9bb616..e409916 100644 --- a/DeskHubSharpRevised/DAL/JsonDataService.cs +++ b/DeskHubSharpRevised/DAL/JsonDataService.cs @@ -24,7 +24,7 @@ public class JsonDataService : IDataService { string jsonString = sr.ReadToEnd(); - Search.ItemsItem users = JsonConvert.DeserializeObject(_dataConfig); + ItemsItem users = JsonConvert.DeserializeObject(_dataConfig); //user = users.items; } diff --git a/DeskHubSharpRevised/DetailWindow.axaml.cs b/DeskHubSharpRevised/DetailWindow.axaml.cs index d11ee44..928c714 100644 --- a/DeskHubSharpRevised/DetailWindow.axaml.cs +++ b/DeskHubSharpRevised/DetailWindow.axaml.cs @@ -42,6 +42,7 @@ public partial class DetailWindow : Window _repoDetail = repoDetail; _request = new Request(_repoDetail.name); + _owner = new Owner(); _cmbbox_branches_items = this.Find("cmbbox_branches"); _txtblk_language_text = this.Find("txtblk_language"); _txtblk_watchers_text = this.Find("txtblk_watchers"); @@ -86,7 +87,7 @@ public partial class DetailWindow : Window else { _owner = new Owner(); - string link = "https://github.com/" + _repoDetail.owner.login + "/" + _repoDetail.name + "/archive/" + cmbbox_branches.SelectedItem + ".zip"; + string link = "https://github.com/" + _owner.login + "/" + _repoDetail.name + "/archive/" + cmbbox_branches.SelectedItem + ".zip"; Process.Start(link); }