/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">The type of hold being referenced.</param> ///<param name="datePlaced">The date that the patron placed the hold.</param> /// public HoldInfo( HoldStatus type, DateTime? datePlaced ) : base(LibraryDTD.HOLDINFO) { this.SetType( type ); this.DatePlaced = datePlaced; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A HoldStatus object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "The type of hold being referenced."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.1</para> /// </remarks> public void SetType( HoldStatus val ) { SetField( LibraryDTD.HOLDINFO_TYPE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">The type of hold being referenced.</param> ///<param name="datePlaced">The date that the patron placed the hold.</param> /// public HoldInfo(HoldStatus type, DateTime?datePlaced) : base(LibraryDTD.HOLDINFO) { this.SetType(type); this.DatePlaced = datePlaced; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A HoldStatus object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "The type of hold being referenced."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void SetType(HoldStatus val) { SetField(LibraryDTD.HOLDINFO_TYPE, val); }
///<summary>Adds the value of the <c><HoldInfo></c> element.</summary> /// <param name="Type">The type of hold being referenced.</param> /// <param name="DatePlaced">The date that the patron placed the hold.</param> ///<remarks> /// <para>This form of <c>setHoldInfo</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddHoldInfo</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void AddHoldInfo(HoldStatus Type, DateTime?DatePlaced) { AddChild(LibraryDTD.HOLDINFOLIST_HOLDINFO, new HoldInfo(Type, DatePlaced)); }