C# Class LtiLibrary.Core.Lti1.LtiRequest

Inheritance: LtiLibrary.Core.OAuth.OAuthRequest, IBasicLaunchRequest, IOutcomesManagementRequest, IContentItemSelectionRequest, IContentItemSelection
Mostra file Open project: andyfmiller/LtiLibrary Class Usage Examples

Private Properties

Property Type Description
SubstituteCustomVariable string

Public Methods

Method Description
AddCustomParameter ( string name, string value ) : void
AddCustomParameters ( string parameters ) : void

Add the custom parameters from a string.

GetRoles ( ) : IList

Get the roles in the LtiRequest as an IList of LtiRoles.

LtiRequest ( ) : System
LtiRequest ( string messageType ) : System
SetRoles ( IList roles ) : void

Set the roles in the LtiRequest from an IList of LtiRoles.

SubstituteCustomVariables ( NameValueCollection parameters ) : void

Perform all the custom variable substitutions

Private Methods

Method Description
SubstituteCustomVariable ( string value ) : string

Substitute known custom value tokens. Per the LTI 1.1 spec, unknown tokens are ignored.

Method Details

AddCustomParameter() public method

public AddCustomParameter ( string name, string value ) : void
name string
value string
return void

AddCustomParameters() public method

Add the custom parameters from a string.
public AddCustomParameters ( string parameters ) : void
parameters string
return void

GetRoles() public method

Get the roles in the LtiRequest as an IList of LtiRoles.
public GetRoles ( ) : IList
return IList

LtiRequest() public method

public LtiRequest ( ) : System
return System

LtiRequest() public method

public LtiRequest ( string messageType ) : System
messageType string
return System

SetRoles() public method

Set the roles in the LtiRequest from an IList of LtiRoles.
public SetRoles ( IList roles ) : void
roles IList An IList of LtiRoles.
return void

SubstituteCustomVariables() public method

Perform all the custom variable substitutions
public SubstituteCustomVariables ( NameValueCollection parameters ) : void
parameters System.Collections.Specialized.NameValueCollection
return void