43 lines
998 B
C#
43 lines
998 B
C#
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})";
|
|
}
|
|
}
|
|
} |