Package org.dnsge.powerschoolapi.stat
Class UserGpa
- java.lang.Object
-
- org.dnsge.powerschoolapi.stat.UserGpa
-
public class UserGpa extends java.lang.Object
Object that represents information about a User's GPA- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description UserGpa(User user, java.util.List<DetailedCourse> courses, double qualityPoints, double totalCreditHours)
Creates a UserGpa from information, usually provided by aDetailedCourseMapper
implementation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DetailedCourse>
getCourses()
Returns the DetailedCoursesdouble
getGpa()
Returns the GPA as a double.double
getQualityPoints()
Returns the number of quality points.double
getTotalCreditHours()
Returns the total credit hours.User
getUser()
Returns the User.
-
-
-
Constructor Detail
-
UserGpa
public UserGpa(User user, java.util.List<DetailedCourse> courses, double qualityPoints, double totalCreditHours)
Creates a UserGpa from information, usually provided by aDetailedCourseMapper
implementation- Parameters:
user
- User objectcourses
- List of DetailedCoursesqualityPoints
- Number of total quality pointstotalCreditHours
- Number of total credit hours
-
-
Method Detail
-
getUser
public User getUser()
Returns the User.- Returns:
- the User
-
getCourses
public java.util.List<DetailedCourse> getCourses()
Returns the DetailedCourses- Returns:
- the DetailedCourses
-
getGpa
public double getGpa()
Returns the GPA as a double.- Returns:
- the GPA as a double
-
getQualityPoints
public double getQualityPoints()
Returns the number of quality points.- Returns:
- the number of quality points
-
getTotalCreditHours
public double getTotalCreditHours()
Returns the total credit hours.- Returns:
- the total credit hours
-
-