コード例 #1
0
ファイル: XAD.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a XAD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public XAD(IMessage message, string description) : base(message, description){
		data = new IType[12];
		data[0] = new SAD(message,"Street address (SAD)");
		data[1] = new ST(message,"Other designation");
		data[2] = new ST(message,"City");
		data[3] = new ST(message,"State or province");
		data[4] = new ST(message,"Zip or postal code");
		data[5] = new ID(message, 0,"Country");
		data[6] = new ID(message, 0,"Address type");
		data[7] = new ST(message,"Other geographic designation");
		data[8] = new IS(message, 0,"County/parish code");
		data[9] = new IS(message, 0,"Census tract");
		data[10] = new ID(message, 0,"Address representation code");
		data[11] = new DR(message,"Address validity range");
	}
コード例 #2
0
ファイル: XAD.cs プロジェクト: erdemsarigh/nhapi
        /// <summary>   Creates a XAD. </summary>
        ///
        /// <param name="message">      The Message to which this Type belongs. </param>
        /// <param name="description">  The description of this type. </param>

        public XAD(IMessage message, string description) : base(message, description)
        {
            data     = new IType[12];
            data[0]  = new SAD(message, "Street address (SAD)");
            data[1]  = new ST(message, "Other designation");
            data[2]  = new ST(message, "City");
            data[3]  = new ST(message, "State or province");
            data[4]  = new ST(message, "Zip or postal code");
            data[5]  = new ID(message, 0, "Country");
            data[6]  = new ID(message, 0, "Address type");
            data[7]  = new ST(message, "Other geographic designation");
            data[8]  = new IS(message, 0, "County/parish code");
            data[9]  = new IS(message, 0, "Census tract");
            data[10] = new ID(message, 0, "Address representation code");
            data[11] = new DR(message, "Address validity range");
        }