3. a user experience agency
“EffectiveUI is a services
firm that designs and
builds custom software
and digital experiences
with a hyper focus on user
adoption and retention”
22. Limited queries
• Avoid n queries
• Prefetch courses and store in hashmap
• Automatically cache queries
• Expand links when needed
/me/courses/{courseId}/userGradebookItems?expand=grade
23. Easy Support for New APIs
public class FetchInstructorsForCourse extends BaseService {
private Course course;
private List<User> result;
public FetchInstructorsForCourse(Course course) {
this.course = course;
}
@Override public String getResource() {
return "/courses/" + course.getId() + "/instructors";
}
@Override public void processResponse(String responseContent) {
super.processResponse(responseContent);
result = parseContentAsJsonArray(responseContent, "instructors", User.class);
}
public List<User> getResult() {
return result;
}
}