2024-05-13 21:53:41 +00:00
|
|
|
namespace BotSharp.Abstraction.Files.Models;
|
|
|
|
|
|
|
|
|
|
public class MessageFileModel
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("message_id")]
|
|
|
|
|
public string MessageId { get; set; }
|
|
|
|
|
|
2024-07-17 19:28:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// External file url
|
|
|
|
|
/// </summary>
|
2024-05-13 21:53:41 +00:00
|
|
|
[JsonPropertyName("file_url")]
|
|
|
|
|
public string FileUrl { get; set; }
|
|
|
|
|
|
2024-07-17 19:28:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Internal file storage url
|
|
|
|
|
/// </summary>
|
2024-05-13 21:53:41 +00:00
|
|
|
[JsonPropertyName("file_storage_url")]
|
|
|
|
|
public string FileStorageUrl { get; set; }
|
|
|
|
|
|
2024-07-17 19:28:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// File name without extension
|
|
|
|
|
/// </summary>
|
2024-05-13 21:53:41 +00:00
|
|
|
[JsonPropertyName("file_name")]
|
|
|
|
|
public string FileName { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("file_type")]
|
|
|
|
|
public string FileType { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("content_type")]
|
|
|
|
|
public string ContentType { get; set; }
|
|
|
|
|
|
2024-06-06 19:57:41 +00:00
|
|
|
[JsonPropertyName("file_source")]
|
|
|
|
|
public string FileSource { get; set; } = FileSourceType.User;
|
|
|
|
|
|
2024-05-13 21:53:41 +00:00
|
|
|
public MessageFileModel()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"File name: {FileName}, File type: {FileType}, Content type: {ContentType}";
|
|
|
|
|
}
|
|
|
|
|
}
|