Initial commit
This commit is contained in:
commit
eab553c714
16 changed files with 5080 additions and 0 deletions
65
BuildingDirectory/Model/BusinessCard.cs
Normal file
65
BuildingDirectory/Model/BusinessCard.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
namespace BuildingDirectory.Model;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a business card of a company employee
|
||||
/// </summary>
|
||||
public sealed class BusinessCard
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new instance of a business card
|
||||
/// </summary>
|
||||
/// <param name="firstName">First name of the employee</param>
|
||||
/// <param name="lastName">Last name of the employee</param>
|
||||
/// <param name="department">Department the employee works at</param>
|
||||
/// <param name="phoneNumber">Phone number of the employee</param>
|
||||
/// <param name="eMail">E-Mail address of the employee</param>
|
||||
public BusinessCard(string firstName, string lastName, string department, string? phoneNumber, string eMail)
|
||||
{
|
||||
FirstName = firstName;
|
||||
LastName = lastName;
|
||||
Department = department;
|
||||
PhoneNumber = phoneNumber;
|
||||
EMail = eMail;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the first name of the employee
|
||||
/// </summary>
|
||||
public string FirstName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the last name of the employee
|
||||
/// </summary>
|
||||
public string LastName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the department the employee works at
|
||||
/// </summary>
|
||||
public string Department { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the phone number of the employee
|
||||
/// </summary>
|
||||
public string? PhoneNumber { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the E-Mail address of the employee
|
||||
/// </summary>
|
||||
public string EMail { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines if this object is equal to another
|
||||
/// </summary>
|
||||
/// <param name="obj">Other object to compare to</param>
|
||||
/// <returns>True if the objects are equal; false otherwise</returns>
|
||||
// TODO
|
||||
public override bool Equals(object? obj)
|
||||
=> false;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the hash code for this object
|
||||
/// </summary>
|
||||
/// <returns>Numeric hash code</returns>
|
||||
// TODO
|
||||
public override int GetHashCode() => -1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue