コード例 #1
0
 public GistItemViewModel(Gist gist, Action <GistItemViewModel> gotoAction)
 {
     Gist          = gist;
     Id            = gist.Id;
     Title         = GetGistTitle(gist);
     Description   = string.IsNullOrEmpty(gist.Description) ? "Gist " + gist.Id : gist.Description;
     Avatar        = new GitHubAvatar(gist.Owner?.AvatarUrl);
     UpdatedAt     = gist.UpdatedAt;
     UpdatedString = UpdatedAt.Humanize();
     GoToCommand   = ReactiveCommand.Create(() => gotoAction(this));
 }