BotSharp/src/Infrastructure/BotSharp.Abstraction/Files/Models/BotSharpFile.cs

24 lines
658 B
C#
Raw Normal View History

2024-05-03 19:57:44 +00:00
namespace BotSharp.Abstraction.Files.Models;
public class BotSharpFile
{
[JsonPropertyName("file_name")]
2024-05-14 16:51:39 +00:00
public string FileName { get; set; } = string.Empty;
2024-05-03 19:57:44 +00:00
2024-05-14 16:55:11 +00:00
/// <summary>
/// File data, e.g., "data:image/png;base64,aaaaaaaa"
/// </summary>
2024-05-03 19:57:44 +00:00
[JsonPropertyName("file_data")]
2024-05-14 16:51:39 +00:00
public string FileData { get; set; } = string.Empty;
2024-05-03 19:57:44 +00:00
2024-05-14 16:51:39 +00:00
[JsonPropertyName("file_url")]
public string FileUrl { get; set; } = string.Empty;
2024-06-06 18:30:39 +00:00
[JsonPropertyName("content_type")]
public string ContentType { get; set; } = string.Empty;
[JsonPropertyName("file_storage_url")]
public string FileStorageUrl { get; set; } = string.Empty;
2024-05-03 19:57:44 +00:00
}