public EventWrapperFull(ASC.Web.Community.News.Code.Feed feed) : base(feed) { if (feed is FeedPoll) { //Add poll info var poll = feed as FeedPoll; Poll = new PollWrapper(poll); } Text = feed.Text; }
public static new EventWrapperFull GetSample() { return(new EventWrapperFull() { CreatedBy = EmployeeWraper.GetSample(), Created = ApiDateTime.GetSample(), Id = 10, Type = FeedType.News, Title = "Sample news", Updated = ApiDateTime.GetSample(), Text = "Text of feed", Poll = PollWrapper.GetSample() }); }