Fixing Outlook attachment issues.

This commit is contained in:
Burak Kaan Köse
2024-09-05 17:23:15 +02:00
parent 3dc16fa07b
commit f3c4906f88
4 changed files with 82 additions and 45 deletions

View File

@@ -0,0 +1,25 @@
using System.Text.Json.Serialization;
namespace Wino.Core.Misc
{
public class OutlookFileAttachment
{
[JsonPropertyName("@odata.type")]
public string OdataType { get; } = "#microsoft.graph.fileAttachment";
[JsonPropertyName("name")]
public string FileName { get; set; }
[JsonPropertyName("contentBytes")]
public string Base64EncodedContentBytes { get; set; }
[JsonPropertyName("contentType")]
public string ContentType { get; set; }
[JsonPropertyName("contentId")]
public string ContentId { get; set; }
[JsonPropertyName("isInline")]
public bool IsInline { get; set; }
}
}