/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="studentPersonalRefId">GUID that identifies the student for the relationship.</param>
 ///<param name="studentContactPersonalRefId">GUID that identifies the contact person for the relationship.</param>
 ///<param name="relationship">The relationship of the contact person to the student</param>
 ///<param name="contactFlags">Contains Yes/No characteristics of the contact person's role. Provide a Yes value for all that apply. At least one of the child elements of ContactFlags must have a Yes value.</param>
 ///
 public StudentContactRelationship( string studentPersonalRefId, string studentContactPersonalRefId, Relationship relationship, ContactFlags contactFlags )
     : base(Adk.SifVersion, StudentDTD.STUDENTCONTACTRELATIONSHIP)
 {
     this.StudentPersonalRefId = studentPersonalRefId;
     this.StudentContactPersonalRefId = studentContactPersonalRefId;
     this.Relationship = relationship;
     this.ContactFlags = contactFlags;
 }
 /// <summary>
 /// Removes a <see cref="SLContact"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Relationship">Identifies the SLContact object to remove by its Relationship value</param>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void RemoveContact( Relationship Relationship )
 {
     RemoveChild( ReportingDTD.STUDENTLOCATOR_CONTACT, new String[] { Relationship.ToString() } );
 }
 /// <summary>
 /// Gets a <see cref="SLContact"/> object instance. More than one instance can be defined for this object because it is a repeatable field element.
 /// </summary>
 /// <param name="Relationship">Identifies the SLContact object to return by its "Relationship" attribute value</param>
 /// <returns>A SLContact object</returns>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public SLContact GetContact( Relationship Relationship )
 {
     return (SLContact)GetChild( ReportingDTD.STUDENTLOCATOR_CONTACT, new string[] { Relationship.ToString() } );
 }
 ///<summary>Adds the value of the <c>&lt;Contact&gt;</c> element.</summary>
 /// <param name="Relationship">Relationship to the student.</param>
 ///<remarks>
 /// <para>This form of <c>setContact</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddContact</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddContact( Relationship Relationship )
 {
     AddChild( ReportingDTD.STUDENTLOCATOR_CONTACT, new SLContact( Relationship ) );
 }
Beispiel #5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="relationship">Relationship to the student.</param>
 ///
 public SLContact( Relationship relationship )
     : base(ReportingDTD.SLCONTACT)
 {
     this.Relationship = relationship;
 }
Beispiel #6
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="relationship">Relationship to the person.</param>
 ///
 public Contact( Relationship relationship )
     : base(CommonDTD.CONTACT)
 {
     this.Relationship = relationship;
 }