예제 #1
0
        private Attachment GetDocumentPromptMessage()
        {
            MRBuddyConstants    _mrBuddyConstants      = new MRBuddyConstants();
            MediaCardProperties mediaCardPropertiesObj = new MediaCardProperties();
            Media_Cards         _mediaCardObj          = new Media_Cards();
            Attachment          docAttachment          = new Attachment();;

            if (SelectedExamcardQuery.Contains("create"))
            {
                mediaCardPropertiesObj.CardTitle    = "Create ExamCard Helpdoc";
                mediaCardPropertiesObj.CardSubtitle = "This is help document on how to Create ExamCard";
                mediaCardPropertiesObj.URL          = _mrBuddyConstants.CreateExamCardDOCPath;
            }
            if (SelectedExamcardQuery.Contains("import"))
            {
                mediaCardPropertiesObj.CardTitle    = "Import ExamCard Helpdoc";
                mediaCardPropertiesObj.CardSubtitle = "This is help document on how to Import ExamCard";
                mediaCardPropertiesObj.URL          = _mrBuddyConstants.ImportExamCardDOCPath;
            }
            if (SelectedExamcardQuery.Contains("export"))
            {
                mediaCardPropertiesObj.CardTitle    = "Export ExamCard Helpdoc";
                mediaCardPropertiesObj.CardSubtitle = "This is help document on how to Import ExamCard";
                mediaCardPropertiesObj.URL          = _mrBuddyConstants.ExportExamImportDOCPath;
            }

            docAttachment = _mediaCardObj.FileAttachment(mediaCardPropertiesObj);
            return(docAttachment);
        }
예제 #2
0
        private Attachment GetVideoPromptMessage()
        {
            MRBuddyConstants    _mrBuddyConstants      = new MRBuddyConstants();
            MediaCardProperties mediaCardPropertiesObj = new MediaCardProperties();
            Media_Cards         _mediaCardObj          = new Media_Cards();
            Attachment          videoAttachment        = new Attachment();;

            if (SelectedExamcardQuery.Contains("create"))
            {
                mediaCardPropertiesObj.CardTitle    = "Create ExamCard Video";
                mediaCardPropertiesObj.CardSubtitle = "This is the Sample video of how to create ExamCard";
                mediaCardPropertiesObj.CardText     = _mrBuddyConstants.CreateExamCardteVideoPath;
                mediaCardPropertiesObj.URL          = _mrBuddyConstants.CreateExamCardteVideoPath;
            }
            if (SelectedExamcardQuery.Contains("import"))
            {
                mediaCardPropertiesObj.CardTitle    = "Import ExamCard Video";
                mediaCardPropertiesObj.CardSubtitle = "This is the Sample video of how to Import ExamCard";
                mediaCardPropertiesObj.CardText     = _mrBuddyConstants.ImportExamCardVideoPath;
                mediaCardPropertiesObj.URL          = _mrBuddyConstants.ImportExamCardVideoPath;
            }
            if (SelectedExamcardQuery.Contains("export"))
            {
                mediaCardPropertiesObj.CardTitle    = "Export ExamCard Video";
                mediaCardPropertiesObj.CardSubtitle = "This is the Sample video of how to Export ExamCard";
                mediaCardPropertiesObj.CardText     = _mrBuddyConstants.ExportExamImportVideoPath;
                mediaCardPropertiesObj.URL          = _mrBuddyConstants.ExportExamImportVideoPath;
            }

            videoAttachment = _mediaCardObj.VideoAttachment(mediaCardPropertiesObj);
            return(videoAttachment);
        }