package com.maxmind.geoip2;

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

public class TraitsRecord
{
  private String ipAddress;
  public TraitsRecord(JSONObject json) throws JSONException {
    ipAddress = json.getString("ip_address");
  }
  public String getIpAddress() {
    return ipAddress;
  }
}


@@ -163,175 +163,1017 @@
 %0A  p
-ublic TraitsRecord(JSONObject json) throws JSONException %7B%0A    ipAddress = json.getString(%22ip_address%22);%0A  %7D%0A  public String getIpAddress() %7B%0A    return ipAddress;%0A  %7D%0A%7D
+rivate int autonomousSystemNumber;%0A  private String autonomousSystemOrganization;%0A  private String domain;%0A  private String isp;%0A  private String organization;%0A  private String userType;%0A  %0A  public TraitsRecord(JSONObject json) throws JSONException %7B%0A    ipAddress = json.getString(%22ip_address%22);%0A      autonomousSystemNumber = json.optInt(%22autonomous_system_number%22);%0A      domain = json.optString(%22domain%22);%0A      isp = json.optString(%22isp%22);%0A      organization = json.optString(%22organization%22);%0A      userType = json.optString(%22user_type%22);%0A  %7D%0A  public String getIpAddress() %7B%0A    return ipAddress;%0A  %7D%0A  public int getAutonomousSystemNumber() %7B%0A    return autonomousSystemNumber;%0A  %7D%0A  public String getAutonomousSystemOrganization() %7B%0A    return autonomousSystemOrganization;%0A  %7D%0A  public String getDomain() %7B%0A    return domain;%0A  %7D%0A  public String getIsp() %7B%0A    return isp;%0A  %7D%0A  public String getOrganization() %7B%0A    return organization;%0A  %7D%0A  public String getUserType() %7B%0A    return userType;%0A  %7D%0A%7D%0A
 %0A%0A

add more traits fields