Пример #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="learnerPersonalRefId">The ID (GUID) of the learner whose contact this is.</param>
 ///<param name="contactPersonalRefId">The ID (GUID) of this contact.</param>
 ///<param name="relationship">Defines the relationship of the contact to the learner. CBDS: 100166</param>
 ///<param name="contactFlags">Contains Yes/No characteristics of the contact person's role. Provide a Yes value for all that apply. Otherwise No is assumed.  At least one of the child elements of ContactFlags must have a Yes value.</param>
 ///
 public LearnerContact( string learnerPersonalRefId, string contactPersonalRefId, Relationship relationship, ContactFlags contactFlags )
     : base(Adk.SifVersion, LearnerDTD.LEARNERCONTACT)
 {
     this.LearnerPersonalRefId = learnerPersonalRefId;
     this.ContactPersonalRefId = contactPersonalRefId;
     this.SetRelationship( relationship );
     this.ContactFlags = contactFlags;
 }
Пример #2
0
 /// <summary>
 /// Sets the value of the <c>&lt;Relationship&gt;</c> element.
 /// </summary>
 /// <param name="val">A Relationship object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Defines the relationship of the contact to the learner. CBDS: 100166"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetRelationship( Relationship val )
 {
     SetField( LearnerDTD.LEARNERCONTACT_RELATIONSHIP, val );
 }