made a few tweaks, filled out detail
This commit is contained in:
22
DeskHubSharp/Models/Branch.cs
Normal file
22
DeskHubSharp/Models/Branch.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user