Skip to content

Commit

Permalink
Generalized include parameter for courses
Browse files Browse the repository at this point in the history
  • Loading branch information
allomanta authored and goomens committed Oct 21, 2024
1 parent 0c9f93f commit f4fcfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Types/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class User : CanvasObject
{
public User(CanvasApiConnector conn) { Connector = conn; }

public IEnumerable<Course> GetCourses(bool includeImage) => Connector.RetrieveCollection<Course>(this, param: ("include[]", "course_image"));
public IEnumerable<Course> GetCourses(string include) => Connector.RetrieveCollection<Course>(this, param: ("include[]", include));
public override string ToString() => $"User {Name}";
internal override string CanvasObjectID => "user";
internal override string SaveUrl => $"users/{ID}";
Expand Down

0 comments on commit f4fcfef

Please sign in to comment.