first commit

This commit is contained in:
Zeeshaun
2026-03-11 11:18:25 -05:00
commit f3cb730f3b
472 changed files with 53651 additions and 0 deletions
@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
namespace Landmark.OLA.Models.Residences
{
public class CurrentResidenceAddress : ResidenceAddress, ICurrentResidenceAddress
{
[Required]
//Slightly arbitrary values that should be safe
[Range(0, 1000000000)]
//Nullable so that there is no default value
public decimal? MonthlyPayment { get; set; }
public CurrentResidenceAddress()
: base()
{
}
public CurrentResidenceAddress(Guid id)
: base(id)
{
}
}
}
@@ -0,0 +1,11 @@
using System.ComponentModel.DataAnnotations;
namespace Landmark.OLA.Models.Residences
{
public interface ICurrentResidenceAddress : IResidenceAddress
{
//Ten Billion is an arbitrary limit but I'm pretty confidant that it will be an acceptable upper limit for a long time.
[Range(minimum: 0, maximum: 10000000000)]
decimal? MonthlyPayment { get; set; }
}
}
@@ -0,0 +1,12 @@
using Landmark.OLA.Models.Addresses;
using Landmark.OLA.Models.Addresses.Enums;
namespace Landmark.OLA.Models.Residences
{
public interface IResidenceAddress : IAddress
{
int? MonthsResided { get; set; }
ResidenceTypeOption? ResidenceType { get; set; }
}
}
@@ -0,0 +1,30 @@
using System.ComponentModel.DataAnnotations;
using Landmark.OLA.Models.Addresses;
using Landmark.OLA.Models.Addresses.Enums;
namespace Landmark.OLA.Models.Residences
{
public class ResidenceAddress : Address, IResidenceAddress
{
[Required]
//TODO #227: Should MonthsResided be at least 1? What if you just moved yesterday?
//The current front end offers an upper limit of 10 years, 11 months.
[Range(0, 130)]
//Nullable so that there is no default value. Could change if a value of at least 1 is required
public int? MonthsResided { get; set; }
[Required]
//Nullable so that there is no default value
public ResidenceTypeOption? ResidenceType { get; set; }
public ResidenceAddress()
: base()
{
}
public ResidenceAddress(Guid id)
: base(id)
{
}
}
}