public TutorialParagraphAnalyticsEventData(string tutorialName, int pageIndex, int paragraphIndex, TutorialParagraphConclusion conclusion)
 {
     this.tutorialName   = tutorialName;
     this.pageIndex      = pageIndex;
     this.paragraphIndex = paragraphIndex;
     this.conclusion     = conclusion;
 }
        public static AnalyticsResult SendTutorialParagraphEvent(string tutorialName, int pageIndex, int paragraphIndex, TutorialParagraphConclusion conclusion, DateTime startTime, TimeSpan duration, bool isBlocking)
        {
            if (!EditorAnalytics.enabled || !RegisterEvent(k_EventTutorialParagraph))
            {
                return(AnalyticsResult.AnalyticsDisabled);
            }
            var data = new TutorialParagraphEventData
            {
                ts             = DateTime.UtcNow.Millisecond,
                tutorialName   = tutorialName,
                pageIndex      = pageIndex,
                paragraphIndex = paragraphIndex,
                conclusion     = (int)conclusion,
                duration       = duration.Milliseconds,
                startTime      = startTime.Millisecond,
                isBlocking     = isBlocking
            };

            return(SendEvent(k_EventTutorialParagraph, data));
        }