コード例 #1
0
 public SelectedResultFormat(ResultFormatInformation format, bool isSelected)
 {
     DisplayName   = format.DisplayName;
     MimeType      = format.MimeType;
     FileExtension = format.FileExtension;
     IsSelected    = isSelected;
 }
コード例 #2
0
 public JsonReportWriter()
 {
     Format = new ResultFormatInformation
     {
         DisplayName   = "Json",
         MimeType      = "application/json",
         FileExtension = ".json"
     };
 }
コード例 #3
0
        public Task <ServiceResponse <IEnumerable <ResultFormatInformation> > > GetResultFormatsAsync()
        {
            var format = new ResultFormatInformation {
                DisplayName = "Excel", FileExtension = ".xlsx"
            };
            var response = new ServiceResponse <IEnumerable <ResultFormatInformation> >(new[] { format });

            return(Task.FromResult(response));
        }
コード例 #4
0
 public JsonReportWriter()
 {
     _formatInformation = new ResultFormatInformation
     {
         DisplayName = "Json",
         MimeType = "application/json",
         FileExtension = ".json"
     };
 }
コード例 #5
0
        public ExcelReportWriter(ITargetMapper targetMapper)
        {
            _targetMapper = targetMapper;

            Format = new ResultFormatInformation
            {
                DisplayName   = "Excel",
                MimeType      = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                FileExtension = ".xlsx"
            };
        }
コード例 #6
0
        public HtmlReportWriter(ITargetMapper targetMapper)
        {
            _targetMapper = targetMapper;

            _formatInformation = new ResultFormatInformation
            {
                DisplayName   = "HTML",
                MimeType      = "text/html",
                FileExtension = ".html"
            };
        }