package com.sikey.wa04.business.infrastructure.dto.response.contact;

import com.sikey.wa04.common.enums.ContactRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class GetContactResponse {
    private List<GetContactResult> persons;

    @Data
    @Accessors(chain = true)
    public static class GetContactResult {
        private Long ctid;
        private String refId;
        /**
         * 成员角色
         *
         * @see ContactRole
         */
        private Integer role;
        /**
         * 成员类型
         *
         * @see com.sikey.wa04.common.enums.UserType
         */
        private Integer type;
        private String phoneNumber;
        private String areaCode;
        private String avatar;
        private String appellation;

        /**
         * 是否可以视频通话
         */
        private Boolean isVideoCall;
    }
}
