Skip to content
Snippets Groups Projects
Commit be4a2b77 authored by Your Namethaihoangdang's avatar Your Namethaihoangdang
Browse files

Constructor

parent bac4284e
No related branches found
No related tags found
1 merge request!3Constructor
Pipeline #83296 passed
package notes.multi.utilities
import java.time.LocalDate
import java.time.LocalDateTime
class Folder(var title: String = "Untitled",
var description: String = "Empty",
val author: String = "?", // User class?
val dateCreated: LocalDate? = LocalDate.now(),
var lastModified: LocalDateTime? = LocalDateTime.now(),
var notes: MutableList<Note>? = null) {
// add/remove notes
// update last modified
}
\ No newline at end of file
package notes.multi.utilities
import java.time.LocalDate
import java.time.LocalDateTime
class Note(var title: String = "Untitled",
var text: StringBuffer = StringBuffer(""),
val author: String = "?", // User class?
var extension: String= "?", // necessary?
val dateCreated: LocalDate? = LocalDate.now(),
var lastModified: LocalDateTime? = LocalDateTime.now(),
var location: String? = null) { // path to the created file?
// update last modified date
// images?
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment