Пример #1
0
        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;
            }
        }
Пример #2
0
 public DGAccount(Account source)
 {
     Source    = source;
     User      = DGUser.GetUser(source.User);
     m_visible = true;
 }