Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.GeoIP/1.12/Country.cs @ 15130

Last change on this file since 15130 was 8040, checked in by ascheibe, 13 years ago

#1648 integrated server parts of the access service into trunk

File size: 1.5 KB
Line 
1/**
2 * Country.cs
3 *
4 * Copyright (C) 2008 MaxMind Inc.  All Rights Reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21
22using System;
23using System.IO;
24public class Country {
25
26    private String code;
27    private String name;
28
29    /**
30     * Creates a new Country.
31     *
32     * @param code the country code.
33     * @param name the country name.
34     */
35    public Country(String code, String name) {
36        this.code = code;
37        this.name = name;
38    }
39   /**
40     * Returns the ISO two-letter country code of this country.
41     *
42     * @return the country code.
43     */
44    public String getCode() {
45        return code;
46    }
47
48    /**
49     * Returns the name of this country.
50     *
51     * @return the country name.
52     */
53    public String getName() {
54        return name;
55    }
56}
Note: See TracBrowser for help on using the repository browser.