/// /// class: SmartPhone.cs /// ///This file defines the SmartPhone class, which represents a smartphone device. It includes properties and methods ///specific to smartphones, such as getting device details and managing assignments to players. /// /// Name: Rens Pastoor /// Studentnumber: 555408 /// Date: 11 May 2025 /// ///Version: 1 /// using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PoloClubApp { /// /// Represents a smartphone device in the Polo Club system. /// public class SmartPhone : Device { /// /// Gets the type of the device (always "SmartPhone"). /// public string DeviceType { get; } = "SmartPhone"; /// /// Initializes a new instance of the SmartPhone class. /// /// The unique identifier for the smartphone. /// The name of the smartphone. public SmartPhone(int id, string name) : base(id, name) { } /// /// Gets a formatted string with details about the smartphone. /// /// A string containing device details. public override string GetDetails() { return $"{DeviceType} - Id: {Id}, Name: {Name}"; } } }