/*
 * Copyright (c) 2016, Mazen Kotb, mazenkotb@gmail.com
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
package xyz.mkotb.xenapi.resp;

import com.google.gson.annotations.SerializedName;
import xyz.mkotb.xenapi.XenUtils;

import java.util.Map;

public class GetUserResponse extends ExtendedUserResponse {
    @SerializedName(value = "mood_id")
    private int moodId;
    @SerializedName(value = "friend_count")
    private int friendCount;
    @SerializedName(value = "personal_friend_count")
    private int personalFriendCount;
    @SerializedName(value = "custom_fields")
    private String[] customFields;

    public int moodId() {
        return moodId;
    }

    public int friendCount() {
        return friendCount;
    }

    public int personalFriendCount() {
        return personalFriendCount;
    }

    public Map<String, String> customFields() {
        return XenUtils.decodeMap(customFields);
    }
}

@@ -1217,88 +1217,8 @@
 unt;
-%0A    @SerializedName(value = %22custom_fields%22)%0A    private String%5B%5D customFields;
 %0A%0A  
@@ -1421,111 +1421,7 @@
    %7D
-%0A%0A    public Map%3CString, String%3E customFields() %7B%0A        return XenUtils.decodeMap(customFields);%0A    %7D
 %0A%7D%0A

Fix duplicate fields