public void AutoAdjust() { if (Title.IsNullOrEmptyOrWhiteSpace()) { HtmlToText convert = new HtmlToText(); string _text = convert.Convert(this.Content); Title = _text.GetSentences().FirstOrDefault(); } if (Title.ToLower().Contains("[daily]")) { Repeat = ScheduleType.Daily; } if (Title.ToLower().Contains("[weekly]")) { Repeat = ScheduleType.Weekly; } if (Title.ToLower().Contains("[monthly]")) { Repeat = ScheduleType.Monthly; } if (Title.ToLower().Contains("[quaterly]")) { Repeat = ScheduleType.Quaterly; } if (Title.ToLower().Contains("[yearly]")) { Repeat = ScheduleType.Yearly; } //AutoSetTime this.AutoSetTimes(); //HasTags string[] _hasTags = Content.GetHasTags(); if (_hasTags != null && _hasTags.Count() > 0) { foreach (string _hasTag in _hasTags) { HasTags.Add(_hasTag); } } //Links //Links = this.Content.GetUrls().ToList(); }
public bool HasTag() { if (Content.IsNullOrEmptyOrWhiteSpace()) { return(false); } else { string[] _hasTags = Content.GetHasTags(); if (_hasTags != null && _hasTags.Count() > 0) { foreach (string _hasTag in _hasTags) { HasTags.Add(_hasTag); } } return(true); } }