Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (51 sloc) 1.494 kb
800a935 Initial revision
Thomas J Mather authored
1 /**
2 * Country.cs
3 *
5b5b37b Changed license from GPL to LGPL
Thomas J Mather authored
4 * Copyright (C) 2008 MaxMind Inc. All Rights Reserved.
800a935 Initial revision
Thomas J Mather authored
5 *
6 * This library is free software; you can redistribute it and/or
5b5b37b Changed license from GPL to LGPL
Thomas J Mather authored
7 * modify it under the terms of the GNU Lesser General Public
800a935 Initial revision
Thomas J Mather authored
8 * License as published by the Free Software Foundation; either
5b5b37b Changed license from GPL to LGPL
Thomas J Mather authored
9 * version 2.1 of the License, or (at your option) any later version.
800a935 Initial revision
Thomas J Mather authored
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
5b5b37b Changed license from GPL to LGPL
Thomas J Mather authored
14 * Lesser General Public License for more details.
800a935 Initial revision
Thomas J Mather authored
15 *
5b5b37b Changed license from GPL to LGPL
Thomas J Mather authored
16 * You should have received a copy of the GNU Lesser General Public
800a935 Initial revision
Thomas J Mather authored
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
22 using System;
23 using System.IO;
24 public 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 }
Something went wrong with that request. Please try again.