/*
 * Copyright (c) 2010-2013 Mark Allen.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.restfb.types;

import com.restfb.Facebook;

/**
 * Represents the <a href="http://developers.facebook.com/docs/api#impersonation">Account Graph API type</a>.
 * 
 * @author <a href="http://restfb.com">Mark Allen</a>
 */
public class Account extends CategorizedFacebookType {
  @Facebook("access_token")
  private String accessToken;

  private static final long serialVersionUID = 1L;

  /**
   * An OAuth access token for this account.
   * 
   * @return An OAuth access token for this account.
   */
  public String getAccessToken() {
    return accessToken;
  }
}
@@ -1174,16 +1174,68 @@
 ebook;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 /**%0A * R
@@ -1338,25 +1338,24 @@
 type%3C/a%3E.%0A *
- 
 %0A * @author 
@@ -1456,16 +1456,67 @@
 kType %7B%0A
+  private static final long serialVersionUID = 1L;%0A
   @Faceb
@@ -1572,55 +1572,217 @@
 %0A%0A  
-private static final long serialVersionUID = 1L
+@Facebook(%22category%22)%0A  private String category;%0A%0A  @Facebook(%22name%22)%0A  private String name;%0A%0A  @Facebook(%22id%22)%0A  private String id;%0A%0A  @Facebook(%22perms%22)%0A  private List%3CString%3E perms = new ArrayList%3CString%3E()
 ;%0A%0A 
@@ -1833,15 +1833,21 @@
 ount
+ / page
 .%0A   *
- 
 %0A   
@@ -1964,10 +1964,614 @@
 ken;%0A  %7D
+%0A%0A  /**%0A   * The category for this account / page.%0A   * @return%0A   */%0A  public String getCategory() %7B%0A    return category;%0A  %7D%0A%0A  /**%0A   * The name of of this account / page.%0A   * @return%0A   */%0A  public String getName() %7B%0A    return name;%0A  %7D%0A%0A  /**%0A   * The ID of this account / page.%0A   * @return%0A   */%0A  public String getId() %7B%0A    return id;%0A  %7D%0A%0A  /**%0A   * A list of permissions the user has for this page.%0A   * %3Ca href=%22https://developers.facebook.com/docs/facebook-login/access-tokens/#pagetokens%22%3Esee roles list here%3C/a%3E%0A   * @return%0A   */%0A  public List%3CString%3E getPerms() %7B%0A    return perms;%0A  %7D
 %0A%7D

Add 'perms' list to Account object.