OnlineSalesAutoCrop/Api/OnlineSalesAutoCrop.CoreAPI.Models/Responses/Setups/AuthModulesResponse.cs

24 lines
671 B
C#
Raw Normal View History

2026-06-14 12:46:29 +06:00
using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Setups;
using System.Collections.Generic;
using System.Linq;
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.Setups
{
public class AuthSummariesResponse : ResponseBase
{
public List<AuthModule> Value { get; set; } = [];
}
public class PendingAuthResponse : ResponseBase
{
public List<PendingAuthModule> Value { get; set; } = [];
public bool HasBoth => Value.Any(x => x.PendingAuthItems > 0 && x.PendingItems > 0);
}
public class AuthDetailsResponse : ResponseBase
{
public List<DynamicColumn> Columns { get; set; } = [];
public List<Dictionary<string, object>> Data { get; set; } = [];
}
}