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 base64 encoded
|
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
|
|
19
|
/// <summary>
|
20
|
/// The backend relies on this being correct
|
21
|
/// </summary>
|
22
|
public EAddDocumentFormat Format { get; set; } = EAddDocumentFormat.TEXTFILE;
|
23
|
|
24
|
public string Content { get; set; }
|
25
|
}
|