package org.jeecg.modules.adweb.databridge.dto.google.gtm;

import lombok.*;
import lombok.experimental.SuperBuilder;

import org.apache.commons.lang3.StringUtils;
import org.jeecg.modules.adweb.databridge.dto.google.ResourceDTO;

/**
 * @author wfansh
 */
@Data
@SuperBuilder
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class GTMAccountDTO extends ResourceDTO {

    private boolean supportUserPermissions;

    private boolean supportMultipleContainers;

    public static String toResourceName(String id) {
        return StringUtils.isNumeric(id) ? "accounts" + RESOURCE_NAME_SPLITTER + id : id;
    }
}
