ex-col-05-building-directory/BuildingDirectory/Model/BusinessCard.cs
github-classroom[bot] eab553c714
Initial commit
2025-01-02 16:52:58 +00:00

65 lines
No EOL
2 KiB
C#

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;
}