// Copyright (C) 2014 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.gerrit.extensions.common;

public class AvatarInfo {
  /**
   * Size in pixels the UI prefers an avatar image to be.
   *
   * <p>The web UI prefers avatar images to be square, both the height and width of the image should
   * be this size. The height is the more important dimension to match than the width.
   */
  public static final int DEFAULT_SIZE = 32;

  public String url;
  public Integer height;
  public Integer width;
}

@@ -648,16 +648,209 @@
 ommon;%0A%0A
+/**%0A * Representation of an avatar in the REST API.%0A *%0A * %3Cp%3EThis class determines the JSON format of avatars in the REST API.%0A *%0A * %3Cp%3EAn avatar is the graphical representation of a user.%0A */%0A
 public c
@@ -1182,51 +1182,192 @@
 %0A%0A  
-public String url;%0A  public Integer height;
+/** The URL to the avatar image. */%0A  public String url;%0A%0A  /** The height of the avatar image in pixels. */%0A  public Integer height;%0A%0A  /** The width of the avatar image in pixels. */
 %0A  p

Document AvatarInfo class