erp-platform/api/src/Kurs.Platform.Domain/Queries/Break.cs

28 lines
609 B
C#
Raw Normal View History

2025-09-26 20:34:03 +00:00
using System.Collections.Generic;
2025-09-26 23:40:39 +00:00
using System.Text.Json.Serialization;
2025-09-26 20:34:03 +00:00
using Volo.Abp.Domain.Values;
namespace Kurs.Platform.Queries;
2025-09-26 23:40:39 +00:00
/// <summary>
/// Break tanımı
/// </summary>
2025-09-26 20:34:03 +00:00
public class Break : ValueObject
{
[JsonInclude]
2025-09-26 23:40:39 +00:00
[JsonPropertyName("StartValue")]
public int StartValue { get; private set; }
[JsonInclude]
2025-09-26 23:40:39 +00:00
[JsonPropertyName("EndValue")]
public int EndValue { get; private set; }
public Break() { } // JSON için gerekli
2025-09-26 20:34:03 +00:00
protected override IEnumerable<object> GetAtomicValues()
{
yield return StartValue;
2025-09-26 23:40:39 +00:00
yield return EndValue;
2025-09-26 20:34:03 +00:00
}
}