This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathForkRepositorySelectViewModelDesigner.cs
More file actions
51 lines (41 loc) · 1.85 KB
/
ForkRepositorySelectViewModelDesigner.cs
File metadata and controls
51 lines (41 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Threading.Tasks;
using GitHub.Models;
using GitHub.ViewModels;
using GitHub.ViewModels.Dialog;
using ReactiveUI;
namespace GitHub.SampleData
{
public class ForkRepositorySelectViewModelDesigner : ViewModelBase, IForkRepositorySelectViewModel
{
public ForkRepositorySelectViewModelDesigner()
{
Accounts = new[]
{
new AccountDesigner { Login = "Myself", AvatarUrl = "https://identicons.github.com/myself.png" },
new AccountDesigner { Login = "MyOrg1", AvatarUrl = "https://identicons.github.com/myorg1.png" },
new AccountDesigner { Login = "MyOrg2", AvatarUrl = "https://identicons.github.com/myorg2.png" },
new AccountDesigner { Login = "MyOrg3", AvatarUrl = "https://identicons.github.com/myorg3.png" },
new AccountDesigner { Login = "a-long-org-name", AvatarUrl = "https://identicons.github.com/a-long-org-name.png" },
};
ExistingForks = new[]
{
new RemoteRepositoryModelDesigner { Owner = "MyOrg5", Name = "MyRepo" },
new RemoteRepositoryModelDesigner { Owner = "MyOrg6", Name = "MyRepo" },
};
}
public IReadOnlyList<IAccount> Accounts { get; set; }
public IObservable<object> Done => null;
public IReadOnlyList<RemoteRepositoryModel> ExistingForks { get; set; }
public bool IsLoading { get; set; }
public string Title => null;
public ReactiveCommand<IAccount, Unit> SelectedAccount => null;
public ReactiveCommand<RemoteRepositoryModel, Unit> SwitchOrigin => null;
public Task InitializeAsync(LocalRepositoryModel repository, IConnection connection)
{
return Task.CompletedTask;
}
}
}