Files

27 lines
626 B
C#

using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace AxCopilot.Models;
public class ChatMessage
{
[JsonPropertyName("role")]
public string Role { get; set; } = "user";
[JsonPropertyName("content")]
public string Content { get; set; } = "";
[JsonPropertyName("timestamp")]
public DateTime Timestamp { get; set; } = DateTime.Now;
[JsonPropertyName("feedback")]
public string? Feedback { get; set; }
[JsonPropertyName("attachedFiles")]
public List<string>? AttachedFiles { get; set; }
[JsonPropertyName("images")]
public List<ImageAttachment>? Images { get; set; }
}