using SPTarkov.Server.Core.Models.Eft.Ragfair;
namespace SPTarkov.Server.Core.Extensions
{
public static class RagfairOfferExtensions
{
///
/// Is the passed in offer stale - end time > passed in time
///
/// Offer to check
/// Time to check offer against
/// True - offer is stale
public static bool IsStale(this RagfairOffer offer, long time)
{
return offer.EndTime < time || (offer.Quantity ?? 0) < 1;
}
}
}