This commit introduces a large number of changes. Namely there are a number of additions to a new set of classes that manage the database and/ or the models shared between the code and databse. There is fragmented non-functional code in this commit and there may be debug/ old code that still needs to be removed. This commit is just to version these changes as they were not commited previously. There is also some console interface code written, but has next to no functionality attached to any existing prompts. More details will be published per .cs file, ie specific manager or model, once they are finished as they are undergoing rapid and significant changes regularly.
57 lines
1.5 KiB
C#
57 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Ophelias.Models;
|
|
using System.Net.Mail;
|
|
|
|
namespace Ophelias.Models
|
|
{
|
|
internal class Guest
|
|
{
|
|
internal int Id;
|
|
internal string FirstName;
|
|
internal string LastName;
|
|
internal string Email;
|
|
internal string PhoneNumber;
|
|
internal string? CreditCard;
|
|
internal string? CCV;
|
|
internal DateTime CreditCardExpiration;
|
|
|
|
internal Guest(int id, string fname, string lname, string email, string phone)
|
|
{
|
|
Id = id;
|
|
FirstName = fname;
|
|
LastName = lname;
|
|
Email = email;
|
|
PhoneNumber = phone;
|
|
}
|
|
internal Guest(int id, string fname, string lname, string email, string phone, string cc, DateTime expiration, string ccv)
|
|
{
|
|
Id = id;
|
|
FirstName = fname;
|
|
LastName = lname;
|
|
Email = email;
|
|
PhoneNumber = phone;
|
|
CreditCard = cc;
|
|
CreditCardExpiration = expiration;
|
|
}
|
|
internal void SetCreditCardInformation(string cc, DateTime expiration, string ccv)
|
|
{
|
|
CreditCard = cc;
|
|
CreditCardExpiration = expiration;
|
|
CCV = ccv;
|
|
}
|
|
}
|
|
internal class GuestList
|
|
{
|
|
internal List<Guest> Guests;
|
|
|
|
internal GuestList()
|
|
{
|
|
Guests = new List<Guest>();
|
|
}
|
|
}
|
|
}
|