made a few tweaks, filled out detail

This commit is contained in:
Wyatt Miller
2018-12-03 22:02:07 -05:00
parent 894d6c02dc
commit d6054b7745
15 changed files with 116 additions and 34 deletions

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeskHubSharp
{
public class Branch
{
public string name { get; set; }
public Commit commit { get; set; }
public class Commit
{
public string sha { get; set; }
public string url { get; set; }
}
}
}

View File

@ -9,6 +9,8 @@ namespace DeskHubSharp
{
class RepoInfo
{
// TODO: Rename this to something more generic
public RepoInfo()
{
@ -16,10 +18,16 @@ namespace DeskHubSharp
public List<string> GetRepoInfoDataGrid()
{
List<string> stuff = RepoList.repoDetail.Select(x => x.full_name).ToList();
List<string> stuff = RequestList.repoDetail.Select(x => x.full_name).ToList();
//stuff =+ RepoList.repoDetail.Select(x => x.name).ToList();
return stuff;
}
// validation
public List<string> GetBranchNameComboBox()
{
List<string> stuff = RequestList.branchDetail.Select(x => x.name).ToList();
return stuff;
}
}
}

View File

@ -7,16 +7,12 @@ using System.Threading.Tasks;
namespace DeskHubSharp
{
class RepoList
class RequestList
{
private static ObservableCollection<RepoDetail> _repoDetail;
public static User userDetail { get; set; }
public static ObservableCollection<RepoDetail> repoDetail
{
get { return _repoDetail; }
set { _repoDetail = value; }
}
public static ObservableCollection<Branch> branchDetail { get; set; }
public static ObservableCollection<RepoDetail> repoDetail { get; set; }
}
}