/// <summary> /// Adds the Service object to the list of the User's services. /// </summary> /// <param name="service">The Service object.</param> public void addService(Service service) { myServices.Add(service); UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's stop time. /// </summary> /// <param name="stop">The User's stop time.</param> public void setTimeStop(String stop) { myTimeStop = stop; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the file path for the User's licence photo. /// </summary> /// <param name="licence">The file path.</param> public void setLicenseFilePath(String licence) { myLicenseFilePath = licence; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's vehicle capacity. /// </summary> /// <param name="capacity">The user's vehicle capacity.</param> public void setCapacity(String capacity) { myCapacity = capacity; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's start time. /// </summary> /// <param name="start">The User's start time.</param> public void setTimeStart(String start) { myTimeStart = start; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's vehicle type. /// </summary> /// <param name="type">The User's vehichle type.</param> public void setVehicleType(String type) { myVehichleType = type; UserDatabase.updateDatabase(); }
/// <summary> /// Sets if user is admin. /// </summary> /// <param name="admin">Boolean value if user is admin or not.</param> public void setAdmin(Boolean admin) { myAdmin = admin; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's email address. /// </summary> /// <param name="email">The User's email address.</param> public void setEmail(String email) { myEmail = email; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's password. /// </summary> /// <param name="password">The new password.</param> public void setPassword(String password) { myPassword = password; UserDatabase.updateDatabase(); }
/// <summary> /// Sets the User's real name. /// </summary> /// <param name="name">The User's real name</param> public void setName(String name) { myName = name; UserDatabase.updateDatabase(); }