public void inviteParticipants(final GroupChatSession session,final Set<ContactId> participants) throws PayloadException, NetworkException {
  if (sLogger.isActivated()) {
    sLogger.debug("Adding " + Arrays.toString(participants.toArray()) + " to the session.");
  }
  int maxNumberOfAdditionalParticipants=session.getMaxNumberOfAdditionalParticipants();
  if (maxNumberOfAdditionalParticipants < participants.size()) {
    throw new ServerApiPermissionDeniedException("Invite of " + participants.size() + " participants failed, max number of additional participants: "+ maxNumberOfAdditionalParticipants+ "!");
  }
  session.inviteParticipants(participants);
}

public void inviteParticipants ( final GroupChatSession session , final Set < ContactId > participants ) throws PayloadException , NetworkException { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Adding " + Arrays . toString ( participants . toArray ( ) ) + " to the session." ) ; } int maxNumberOfAdditionalParticipants = session . getMaxNumberOfAdditionalParticipants ( ) ; if ( maxNumberOfAdditionalParticipants < participants . size ( ) ) { throw new ServerApiPermissionDeniedException ( "Invite of " + participants . size ( ) + " participants failed, max number of additional participants: " + maxNumberOfAdditionalParticipants + "!" ) ; } session . inviteParticipants ( participants ) ; }
invite additional participants to this group chat inviteparticipants
