initial commit
This commit is contained in:
76
Models.cs
Normal file
76
Models.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
namespace ApplianceRepair
|
||||
{
|
||||
public class ContentCardModel : ContentCardRecord
|
||||
{
|
||||
public ContentCardModel()
|
||||
{
|
||||
BelongsToPage = string.Empty;
|
||||
Group = string.Empty;
|
||||
Header = string.Empty;
|
||||
Text = string.Empty;
|
||||
}
|
||||
|
||||
public ContentCardModel(ContentCardRecord record)
|
||||
{
|
||||
BelongsToPage = record.BelongsToPage;
|
||||
Group = record.Group;
|
||||
Header = record.Header;
|
||||
Text = record.Text;
|
||||
}
|
||||
}
|
||||
|
||||
public class HomePageModel : HomePageRecord
|
||||
{
|
||||
public string BusinessName { get; set; }
|
||||
public string FormattedPhoneNumber { get; set; }
|
||||
public string PhoneNumberCallLink { get; set; }
|
||||
|
||||
public List<ContentCardModel> ServicesCards { get; set; }
|
||||
public List<ContentCardModel> TrustCards { get; set; }
|
||||
|
||||
public HomePageModel()
|
||||
{
|
||||
HeaderLine1 = string.Empty;
|
||||
HeaderLine2 = string.Empty;
|
||||
HeaderText = string.Empty;
|
||||
HeaderButton1Text = string.Empty;
|
||||
HeaderButton1Link = string.Empty;
|
||||
HeaderButton2Text = string.Empty;
|
||||
HeaderButton2Link = string.Empty;
|
||||
SecondaryHeaderText = string.Empty;
|
||||
CopyrightText = string.Empty;
|
||||
|
||||
BusinessName = "Appliance Pro";
|
||||
FormattedPhoneNumber = "(555) 555-5555";
|
||||
PhoneNumberCallLink = $"tel:{FormattedPhoneNumber}";
|
||||
|
||||
ServicesCards = [];
|
||||
TrustCards = [];
|
||||
}
|
||||
|
||||
public HomePageModel(HomePageRecord record)
|
||||
{
|
||||
HeaderLine1 = record.HeaderLine1;
|
||||
HeaderLine2 = record.HeaderLine2;
|
||||
HeaderText = record.HeaderText;
|
||||
HeaderButton1Text = record.HeaderButton1Text;
|
||||
HeaderButton1Link = record.HeaderButton1Link;
|
||||
HeaderButton2Text = record.HeaderButton2Text;
|
||||
HeaderButton2Link = record.HeaderButton2Link;
|
||||
SecondaryHeaderText = record.SecondaryHeaderText;
|
||||
CopyrightText = record.CopyrightText;
|
||||
|
||||
BusinessName = "Appliance Pro";
|
||||
FormattedPhoneNumber = "(555) 555-5555";
|
||||
PhoneNumberCallLink = $"tel:{FormattedPhoneNumber}";
|
||||
|
||||
ServicesCards = [];
|
||||
TrustCards = [];
|
||||
}
|
||||
}
|
||||
|
||||
public class BusinessConfig : BusinessConfigRecord
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user