Files
T2-start-2025/CS/CS1 PoloClubApp_RensPastoor/SmartPhone.cs
Rens Pastoor d71b8570a1 CS
2025-05-27 23:40:31 +02:00

35 lines
953 B
C#

///
/// 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 {
internal class SmartPhone : Device {
public string DeviceType = "SmartPhone";
public int Id { get; }
public string Name { get; }
public string PlayerName { get; set; }
public SmartPhone(int id, string name) : base(id, name, null){
Id = id;
Name = name;
}
public override string GetDetails(){
return DeviceType + "Id: " + Id + ", Name: " + Name;
}
}
}