/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.35
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

namespace be.portugal.eid {

using System;
using System.Runtime.InteropServices;

/// <summary>
/// Class for the id document on a EID Card.
/// You can get such an object from PTEID_EIDCard::getID()	(or getDocument).
/// </summary>
public class PTEID_EId : PTEID_XMLDoc {
  private HandleRef swigCPtr;

  internal PTEID_EId(IntPtr cPtr, bool cMemoryOwn) : base(pteidlib_dotNetPINVOKE.PTEID_EIdUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(PTEID_EId obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~PTEID_EId() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        pteidlib_dotNetPINVOKE.delete_PTEID_EId(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  /// <summary>Return Document Version field.</summary>
  public string getDocumentVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getDocumentVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Document Type field.</summary>
  public string getDocumentType()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getDocumentType(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Complete First Names.</summary>
  public string getFirstName()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getFirstName(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return First Name part 1 (2 first given name).</summary>
  public string getFirstName1()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getFirstName1(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return First Name part 2 (first letter of the 3rd given name).</summary>
  public string getFirstName2()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getFirstName2(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Surname field.</summary>
  public string getSurname()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getSurname(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Gender field.</summary>
  public string getGender()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getGender(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Date Of Birth field.</summary>
  public string getDateOfBirth()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getDateOfBirth(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Location Of Birth field.</summary>
  public string getLocationOfBirth()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getLocationOfBirth(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Nobility field.</summary>
  public string getNobility()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getNobility(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Nationality field.</summary>
  public string getNationality()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getNationality(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return National Number field.</summary>
  public string getNationalNumber()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getNationalNumber(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Duplicata field.</summary>
  public string getDuplicata()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getDuplicata(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Special Organization field.</summary>
  public string getSpecialOrganization()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getSpecialOrganization(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Member Of Family field.</summary>
  public string getMemberOfFamily()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getMemberOfFamily(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Logical Number field.</summary>
  public string getLogicalNumber()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getLogicalNumber(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Chip Number field.</summary>
  public string getChipNumber()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getChipNumber(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Validity Begin Date field.</summary>
  public string getValidityBeginDate()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getValidityBeginDate(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Validity End Date field.</summary>
  public string getValidityEndDate()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getValidityEndDate(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Issuing Municipality field.</summary>
  public string getIssuingMunicipality()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getIssuingMunicipality(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Address Version field.</summary>
  public string getAddressVersion()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getAddressVersion(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Street field.</summary>
  public string getStreet()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getStreet(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Zip Code field.</summary>
  public string getZipCode()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getZipCode(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Municipality field.</summary>
  public string getMunicipality()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getMunicipality(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Country field.</summary>
  public string getCountry()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getCountry(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  /// <summary>Return Special Status field.</summary>
  public string getSpecialStatus()
  {
    string ret = pteidlib_dotNetPINVOKE.PTEID_EId_getSpecialStatus(swigCPtr);
    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

}

}
