private bool NotGetWithLink (VkItemViewModel item) { return item.Text.Contains("http") || item.Text.Contains(".ru") || item.Text.Contains(".com") || item.Text.Contains("www."); }
private bool NotGetWithPicture (VkItemViewModel item) { var isView = false; if (!string.IsNullOrWhiteSpace(item?.GifPrew?.FirstOrDefault()?.Gif)) { var previou = item?.GifPrew?.FirstOrDefault()? .PreviewPhoto?.OrderByDescending(h => h.Height).FirstOrDefault()?.Src; var gif_src = item?.GifPrew?.FirstOrDefault()?.Gif; if (!string.IsNullOrWhiteSpace(previou) && !string.IsNullOrWhiteSpace(gif_src)) { isView = true; } } else { isView = item.Photo.Any(ph => !string.IsNullOrWhiteSpace(ph)); } return isView; }
bool NotGetWithVkLink (VkItemViewModel item) { return item.Text.Contains("[club"); }
bool NotGetWithWikiPage (VkItemViewModel item) { return item.Text.Contains("[http"); }
bool NotCopyWithAuthor (VkItemViewModel item) { return item.Text.Contains("Автор") || item.Text.Contains("Рецепт добавил"); }