Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjapiratica committed Oct 31, 2024
1 parent 491f163 commit 1956ef9
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions NP.Lti13Platform.WebExample/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,31 @@ public async Task<IResult> Index(CancellationToken cancellationToken)

return Results.Ok(new
{
deepLinkUrl = await service.GetDeepLinkInitiationUrlAsync(tool!, deployment!.Id, userId, false, null, context!.Id, new DeepLinkSettingsOverride(null, null, null, null, null, null, null, "TiTlE", "TEXT", "data"), cancellationToken: cancellationToken),
deepLinkUrl = await service.GetDeepLinkInitiationUrlAsync(
tool!,
deployment!.Id,
userId,
false,
null,
context!.Id,
new DeepLinkSettingsOverride { Title = "TiTlE", Text = "TEXT", Data = "data" },
cancellationToken: cancellationToken),
resourceLinkUrls = DataService.ResourceLinks
.Select(async resourceLink => await service.GetResourceLinkInitiationUrlAsync(tool!, deployment!.Id, context!.Id, resourceLink, userId, false, launchPresentation: new LaunchPresentationOverride(documentTarget, height, width, "", locale), cancellationToken: cancellationToken))
.Select(async resourceLink => await service.GetResourceLinkInitiationUrlAsync(
tool!,
deployment!.Id,
context!.Id,
resourceLink,
userId,
false,
launchPresentation: new LaunchPresentationOverride
{
DocumentTarget = documentTarget,
Height = height,
Width = width,
Locale = locale
},
cancellationToken: cancellationToken))
.Select(t => t.Result)
});
}
Expand Down

0 comments on commit 1956ef9

Please sign in to comment.