Add project files.
This commit is contained in:
43
paperless-ngx-export/Models/CustomField.cs
Normal file
43
paperless-ngx-export/Models/CustomField.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace paperless_ngx_export.Models
|
||||
{
|
||||
public enum CustomField_DataType
|
||||
{
|
||||
select,
|
||||
date,
|
||||
@string
|
||||
}
|
||||
|
||||
public class CustomField_ExtraData
|
||||
{
|
||||
public CustomField_Select_Option[] select_options { get; set; }
|
||||
public string? default_currency { get; set; }
|
||||
}
|
||||
|
||||
public class CustomField_Select_Option
|
||||
{
|
||||
public string id { get; set; }
|
||||
public string label { get; set; }
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{label} ({id})";
|
||||
}
|
||||
}
|
||||
|
||||
public class CustomField : ResultBase
|
||||
{
|
||||
public string name { get; set; }
|
||||
public CustomField_DataType data_type { get; set; }
|
||||
public int? document_count { get; set; }
|
||||
|
||||
public CustomField_ExtraData? extra_data { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{name} ({data_type})";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user