using System.Text.Json.Serialization;

namespace Berufsschule_HAM.Models;

public class GroupsGetResponseModel(bool successful, IEnumerable<GroupModel>? groupModels, string exception = "None")
{
    public bool Success { get; set; } = successful;
    [JsonPropertyName("GroupModels")]
    public IEnumerable<GroupModel> GroupModels { get; set; } = groupModels ?? [];
    public string? Exception { get; set; } = exception;
}

public class GroupsCreateResponseModel(bool successful, string exception = "None")
{
    public bool Success { get; set; } = successful;
    public string? Exception { get; set; } = exception;
}

public class GroupsUpdateResponseModel(bool successful, string exception = "None")
{
    public bool Success { get; set; } = successful;
    public string? Exception { get; set; } = exception;
}

public class GroupsDeleteResponseModel(bool successful, string exception = "None")
{
    public bool Success { get; set; } = successful;
    public string? Exception { get; set; } = exception;
}