2024-08-27 17:12:17 +00:00
|
|
|
namespace BotSharp.Abstraction.Files.Models;
|
|
|
|
|
|
2024-08-28 18:43:37 +00:00
|
|
|
public class FileInformation
|
2024-08-27 17:12:17 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// External file url
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("file_url")]
|
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
|
public string? FileUrl { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Internal file storage url
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("file_storage_url")]
|
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
|
public string? FileStorageUrl { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// File content type
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("content_type")]
|
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
|
public string? ContentType { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// File name without extension
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("file_name")]
|
|
|
|
|
public string FileName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// File extension without dot
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("file_extension")]
|
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
|
public string? FileExtension { get; set; } = string.Empty;
|
|
|
|
|
}
|