package com.red.circle.other.app.dto.clientobject.family;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.List;

/**
 * 家族成员列表响应
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class FamilyMemberListCO extends ClientObject {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 家族ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long familyId;

    /**
     * 最大成员数
     */
    private Integer maxMember;

    /**
     * 最大管理员数
     */
    private Integer maxManager;

    /**
     * 家族成员列表
     */
    private List<FamilyMemberCO> members;
}
