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

com.larksuite.appframework.sdk.client.BatchMessageDestination Maven / Gradle / Ivy

/*
 * Copyright (c) 2019 Bytedance Inc.  All rights reserved.
 * Use of this source code is governed by a MIT style
 * license that can be found in the LICENSE file.
 */

package com.larksuite.appframework.sdk.client;

import com.larksuite.appframework.sdk.core.protocol.common.User;
import java.util.ArrayList;
import java.util.stream.Collectors;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class BatchMessageDestination {

    private List departmentIds;

    private List openIds;

    private List userIds;

    public void setUsers(List users){
      List cache =  users.stream().map(user->user.getUserId()).collect(Collectors.toList());
      if(userIds!=null){
          userIds.addAll(cache);
      }else{
          userIds = cache;
      }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy