コード例 #1
0
 /// <summary>
 /// Creates a statement with a verb from the predefined verb enumeration.
 /// </summary>
 /// <param name="actor">The actor in this statement</param>
 /// <param name="verb">The PredefinedVerb of this statement</param>
 /// <param name="statementTarget">The target statement</param>
 public Statement(Actor actor, PredefinedVerbs verb, StatementTarget statementTarget)
     : this(actor, new StatementVerb(verb), statementTarget)
 {
 }
コード例 #2
0
 /// <summary>
 /// Creates a statement with a verb from the predefined verb enumeration.
 /// </summary>
 /// <param name="actor">The actor in this statement</param>
 /// <param name="verb">The PredefinedVerb of this statement</param>
 /// <param name="statementTarget">The target statement</param>
 public Statement(Actor actor, PredefinedVerbs verb, StatementTarget statementTarget)
     : this(actor, new StatementVerb(verb), statementTarget)
 {
 }
コード例 #3
0
 /// <summary>
 /// Creates a Statement Verb from the predefined list of verbs
 /// </summary>
 /// <param name="verb"></param>
 public StatementVerb(PredefinedVerbs verb)
 {
     this.id = "http://adlnet.gov/expapi/verbs/" + verb.ToString().ToLower();
     this.display = new LanguageMap();
     this.display["en-US"] = verb.ToString().ToLower();
 }
コード例 #4
0
 /// <summary>
 /// Creates a Statement Verb from the predefined list of verbs
 /// </summary>
 /// <param name="verb"></param>
 public StatementVerb(PredefinedVerbs verb)
 {
     this.id               = "http://adlnet.gov/expapi/verbs/" + verb.ToString().ToLower();
     this.display          = new LanguageMap();
     this.display["en-US"] = verb.ToString().ToLower();
 }