app/src/main/java/com/sdp13epfl2021/projmag/model/ImmutableProject.kt
Method buildCopy
has 16 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
id: String = this.id,
name: String = this.name,
lab: String = this.lab,
authorId: String = this.authorId,
teacher: String = this.teacher,
Method build
has 16 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
id: String,
name: String,
lab: String,
authorId: String,
teacher: String,
Method buildFromMap
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/**
* Build a project from the given map
*
* @param map : a map containing all fields of the project
* @param projectId : the id of the project
Method build
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/**
* Function that allows create a Project
* returns a project wrapped in a success wrapper, or a failure with the explanation wrapped as a string
*
* @param id : project id from firebase