Ejemplo n.º 1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        internal Issuers(DirectoryResDirectory directoryResDirectory)
        {
            if (directoryResDirectory != null)
            {
                this.Countries = new List <Country>();
                // Create comparer for sorting
                IssuerComparer comparer = new IssuerComparer();

                foreach (var directoryResDirectoryCountry in directoryResDirectory.Country)
                {
                    var country = new Country(directoryResDirectoryCountry.countryNames);
                    foreach (var directoryResDirectoryCountryIssuer in directoryResDirectoryCountry.Issuer)
                    {
                        country.AddIssuer(new Issuer(directoryResDirectoryCountryIssuer.issuerID, directoryResDirectoryCountryIssuer.issuerName));
                    }
                    // Sort lists alphabetically on issuer name
                    country.Issuers.Sort(comparer);
                    this.Countries.Add(country);
                }

                this.DateTimestamp = directoryResDirectory.directoryDateTimestamp;
            }
        }
Ejemplo n.º 2
0
 public DirectoryRes()
 {
     this._signature = new SignatureType();
     this._directory = new DirectoryResDirectory();
     this._acquirer  = new DirectoryResAcquirer();
 }