package model; import javafx.scene.image.Image; import java.awt.image.BufferedImage; /** * Created by Gondr on 1/06/2017. */ public class Driver extends User{ protected LicenseType licenseType; protected String licenseNumber; protected String licenseDateIssued; protected String licenseDateExpire; public enum LicenseType{ RESTRICTED("Restricted"), FULL("Full"), FULL2YEARS("Full for 2 Years"); public String name; LicenseType(String name){ this.name = name; } } public Driver(int studentNumber, String email, String password, String address, String homephone, String mobilephone, Image photo, LicenseType licenseType, String licenseNumber, String licenseDateIssued, String licenseDateExpire){ super(studentNumber, email, password, address, homephone, mobilephone, photo); this.accountType = AccountType.DRIVER; this.licenseType = licenseType; this.licenseNumber = licenseNumber; this.licenseDateIssued = licenseDateIssued; this.licenseDateExpire = licenseDateExpire; } }