Cgpa

data class Cgpa(var sem1: Double = 0.0, var sem2: Double = 0.0, var sem3: Double = 0.0, var sem4: Double = 0.0, var sem5: Double = 0.0, var sem6: Double = 0.0, val cgpa: Double = 1.0, val earnCrSem1: Double? = 0.0, val earnCrSem2: Double? = 0.0, val earnCrSem3: Double? = 0.0, val earnCrSem4: Double? = 0.0, val earnCrSem5: Double? = 0.0, val earnCrSem6: Double? = 0.0) : Parcelable

Model class to Cgpa in dataStore

See also

Constructors

Link copied to clipboard
constructor(sem1: Double = 0.0, sem2: Double = 0.0, sem3: Double = 0.0, sem4: Double = 0.0, sem5: Double = 0.0, sem6: Double = 0.0, cgpa: Double = 1.0, earnCrSem1: Double? = 0.0, earnCrSem2: Double? = 0.0, earnCrSem3: Double? = 0.0, earnCrSem4: Double? = 0.0, earnCrSem5: Double? = 0.0, earnCrSem6: Double? = 0.0)

Properties

Link copied to clipboard
val cgpa: Double = 1.0
Link copied to clipboard
val earnCrSem1: Double? = 0.0
Link copied to clipboard
val earnCrSem2: Double? = 0.0
Link copied to clipboard
val earnCrSem3: Double? = 0.0
Link copied to clipboard
val earnCrSem4: Double? = 0.0
Link copied to clipboard
val earnCrSem5: Double? = 0.0
Link copied to clipboard
val earnCrSem6: Double? = 0.0
Link copied to clipboard

Check if all cgpa is zero

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)