package com.maxmind.geoip2;


import java.lang.*;
import java.util.*;
import java.io.*;
import org.json.*;

//import record.Country;
//import record.Continent;
public class Country
{
  private CountryRecord country;
  private CountryRecord registered_country;
  private ContinentRecord continent;
  private TraitsRecord traits;
  Country(JSONObject json) {
    try {
      JSONObject jcontinent = json.getJSONObject("continent");
      continent = new ContinentRecord(jcontinent);
      JSONObject jcountry = json.getJSONObject("country");
      country = new CountryRecord(jcountry);
      jcountry = json.getJSONObject("registered_country");
      registered_country = new CountryRecord(jcountry);
      JSONObject jtraits = json.getJSONObject("traits");
      traits = new TraitsRecord(jtraits);
    } catch (JSONException e) {
      e.printStackTrace();
    }
  }
  public CountryRecord get_country() {
    return country;
  }
  public CountryRecord get_registered_country() {
    return registered_country;
  }
  public ContinentRecord get_continent() {
    return continent;
  }
  public TraitsRecord get_traits() {
    return traits;
  }
}


@@ -235,34 +235,33 @@
 ecord registered
-_c
+C
 ountry;%0A  privat
@@ -648,26 +648,25 @@
   registered
-_c
+C
 ountry = new
@@ -885,18 +885,17 @@
 cord get
-_c
+C
 ountry()
@@ -951,10 +951,9 @@
  get
-_r
+R
 egis
@@ -953,26 +953,25 @@
 etRegistered
-_c
+C
 ountry() %7B%0A 
@@ -986,26 +986,25 @@
 n registered
-_c
+C
 ountry;%0A  %7D%0A
@@ -1031,18 +1031,17 @@
 cord get
-_c
+C
 ontinent
@@ -1100,10 +1100,9 @@
  get
-_t
+T
 rait

add TraitsRecord