Beispiel #1
0
 private Assignment ConvertRequestToAssignment(LtiResourceLinkRequest ltiRequest)
 {
     return(new Assignment
     {
         ContextId = ltiRequest.Context.Id,
         ResourceLinkId = ltiRequest.ResourceLink.Id,
         Name = ltiRequest.ResourceLink.Title,
         CourseName = ltiRequest.Context.Title,
         LtiVersion = LtiVersionClass.GetLtiVersion(ltiRequest.Version),
         ContextMembershipsUrl = ltiRequest.NamesRoleService.ContextMembershipUrl
     });
 }
Beispiel #2
0
 private Assignment ConvertRequestToAssignment(LtiRequest ltiRequest)
 {
     return(new Assignment
     {
         ContextId = ltiRequest.ContextId,
         ResourceLinkId = ltiRequest.ResourceLinkId,
         Name = ltiRequest.ResourceLinkTitle,
         CourseName = ltiRequest.ContextTitle,
         LtiVersion = LtiVersionClass.GetLtiVersion(ltiRequest.Version),
         ContextMembershipsUrl = ltiRequest.Parameters.FirstOrDefault(pair => pair.Key == "custom_context_memberships_url").Value,
         OAuthConsumerKey = ltiRequest.ConsumerKey
     });
 }