/* 
 * Copyright (C) 2015-2017 Fabrice Bouyé
 * All rights reserved.
 *
 * This software may be modified and distributed under the terms
 * of the BSD license.  See the LICENSE file for details.
 */
package api.web.gw2.mapping.v2.titles;

import api.web.gw2.mapping.core.IdValue;
import api.web.gw2.mapping.core.LocalizedResource;
import api.web.gw2.mapping.v2.APIv2;

/**
 * Defines a title.
 * @author Fabrice Bouyé
 */
@APIv2(endpoint = "v2/titles")
public interface Title {

    /**
     * Gets the id of this title.
     * @return An {@code int}.
     */
    @IdValue
    int getId();

    /**
     * Gets the i18n name of this title.
     * @return A {@code String} instance, never {@code null}.
     */
    @LocalizedResource
    String getName();

    /**
     * Gets the id of the achievement that grants this title.
     * @return An {@code int}.
     */
    @IdValue
    int getAchievement();
}

@@ -355,16 +355,204 @@
 ing.
-v2.APIv2
+core.OptionalValue;%0Aimport api.web.gw2.mapping.core.QuantityValue;%0Aimport api.web.gw2.mapping.core.SetValue;%0Aimport api.web.gw2.mapping.v2.APIv2;%0Aimport java.util.OptionalInt;%0Aimport java.util.Set
 ;%0A%0A/
@@ -1048,45 +1048,612 @@
    *
-/%0A    @IdValue%0A    int getAchievement
+ @deprecated %0A     */%0A    @Deprecated%0A    @IdValue%0A    int getAchievement();%0A%0A    /**%0A     * Gets the set of achievement ids that grants this title.%0A     * @return A %7B@code Set%3CInteger%3E%7D instance; never %7B@code null%7D. May be empty.%0A     * @see api.web.gw2.mapping.v2.achievements.Achievement%0A     */%0A    @IdValue%0A    @SetValue%0A    Set%3CInteger%3E getAchievements();%0A%0A    /**%0A     * Gets the number of achievement points required to obtain this title.%0A     * @return An %7B@code OptionalInt%7D instance; never %7B@code null%7D. May be empty.%0A     */%0A    @QuantityValue%0A    @OptionalValue%0A    OptionalInt getApRequired
 ();%0A

Update v2/titles support.