コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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()
     });
 }