All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.admin4j.chatbot.dingtalk.core.At Maven / Gradle / Ivy

The newest version!
package com.admin4j.chatbot.dingtalk.core;

import lombok.Data;

import java.util.Collections;
import java.util.List;

/**
 * @author andanyang
 * @since 2022/5/11 11:54
 */
@Data
public class At {
    private List atMobiles;
    private List atUserIds;
    private boolean isAtAll = false;

    public static At atMobiles(List atMobiles) {
        At at = new At();
        at.atMobiles = atMobiles;
        return at;
    }

    public static At atMobile(String atMobile) {
        At at = new At();
        at.atMobiles = Collections.singletonList(atMobile);
        return at;
    }

    public static At atUserIds(List atUserIds) {
        At at = new At();
        at.atUserIds = atUserIds;
        return at;
    }

    public static At atUserId(String atUserId) {
        At at = new At();
        at.atUserIds = Collections.singletonList(atUserId);
        return at;
    }

    public static At atAll() {
        At at = new At();
        at.setAtAll(true);
        return at;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy