1
|
using Models.Enums;
|
2
|
using System;
|
3
|
using System.Collections.Generic;
|
4
|
using System.Linq;
|
5
|
using System.Text;
|
6
|
using System.Threading.Tasks;
|
7
|
|
8
|
namespace Models.Documents;
|
9
|
|
10
|
# nullable disable
|
11
|
/**
|
12
|
* If the file is plaintext, we except it to be a single document
|
13
|
* If the file is base64, we expect it to be a ZIP file with plaintext documents in its root
|
14
|
*/
|
15
|
public class DocumentAddInfo
|
16
|
{
|
17
|
public string Name { get; set; }
|
18
|
public EAddDocumentFormat Format { get; set; } = EAddDocumentFormat.TEXTFILE;
|
19
|
public string Content { get; set; }
|
20
|
}
|