public DGStatus(Status source, DGAccount account) { m_visbile = true; Source = source; Account = account; User = DGUser.GetUser(source.User); var mediaEntities = source.Entities.MediaEntities.Where(m => m.Type.Equals("photo", StringComparison.OrdinalIgnoreCase)); if (mediaEntities.Any()) { MainImageUrl = mediaEntities.First().MediaUrl; HasImages = true; } }
public DGAccount(Account source) { Source = source; User = DGUser.GetUser(source.User); m_visible = true; }