This commit includes functionality for many of the models that the program will use. The transaction model, rate, and room model have been implemented, but still need further review to determine if they are finished. The same applies to guest and reservation. Currently all models include a simple list class, the decision to use a database or a serialized object (JSON, array, list, etc). These lists are currently a placeholder and are not guaranteed to land in main.
44 lines
963 B
C#
44 lines
963 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Ophelias.Models
|
|
{
|
|
internal class Guest
|
|
{
|
|
internal int Id;
|
|
internal string FirstName;
|
|
internal string LastName;
|
|
internal string Email;
|
|
internal string? CreditCard;
|
|
|
|
internal Guest(int id, string fname, string lname, string email)
|
|
{
|
|
Id = id;
|
|
FirstName = fname;
|
|
LastName = lname;
|
|
Email = email;
|
|
}
|
|
internal Guest(int id, string fname, string lname, string email, string cc)
|
|
{
|
|
Id = id;
|
|
FirstName = fname;
|
|
LastName = lname;
|
|
Email = email;
|
|
CreditCard = cc;
|
|
}
|
|
|
|
}
|
|
internal class GuestList
|
|
{
|
|
internal List<Guest> Guests;
|
|
|
|
internal GuestList()
|
|
{
|
|
Guests = new List<Guest>();
|
|
}
|
|
}
|
|
}
|