public OtherOwneredMylist(Mylistgroup details) : this() { Id = details.Id; Label = details.Name; SortIndex = (int)details.GetSortOrder(); Count = (int)details.Count; Description = details.Description; OwnerUserId = details.UserId; _ThumnailUrl = details.SampleVideoInfoItems?.FirstOrDefault()?.Video.ThumbnailUrl.OriginalString; }
public MylistGroupListItem(Mylistgroup mylistGroup) { Label = mylistGroup.Name; Description = mylistGroup.Description; GroupId = mylistGroup.Id; OptionText = ("公開") + $" - {mylistGroup.Count}件"; ItemCount = mylistGroup.Count; foreach (var thumbnailUri in mylistGroup.SampleVideoInfoItems.Select(x => x.Video.ThumbnailUrl)) { AddImageUrl(thumbnailUri.OriginalString); } }
private OtherOwneredMylist MakeAndRegistrationCache(Mylistgroup mylistGroup) { return(new OtherOwneredMylist(mylistGroup)); }