///
/// 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 {
    /// <summary>
    /// Represents a smartphone device in the Polo Club system.
    /// </summary>
    public class SmartPhone : Device
    {
        /// <summary>
        /// Gets the type of the device (always "SmartPhone").
        /// </summary>
        public string DeviceType { get; } = "SmartPhone";

        /// <summary>
        /// Initializes a new instance of the SmartPhone class.
        /// </summary>
        /// <param name="id">The unique identifier for the smartphone.</param>
        /// <param name="name">The name of the smartphone.</param>
        public SmartPhone(int id, string name) : base(id, name) { }

        /// <summary>
        /// Gets a formatted string with details about the smartphone.
        /// </summary>
        /// <returns>A string containing device details.</returns>
        public override string GetDetails()
        {
            return $"{DeviceType} - Id: {Id}, Name: {Name}";
        }
    }
}
