package com.kryptnostic.directory.v1;

import java.util.Set;
import java.util.UUID;

import com.kryptnostic.directory.v1.model.response.PublicKeyEnvelope;
import com.kryptnostic.kodex.v1.exceptions.types.ResourceNotFoundException;
import com.kryptnostic.sharing.v1.models.NotificationPreference;

public interface DirectoryClient {
    Set<UUID> listUsersInRealm( String realm );

    PublicKeyEnvelope getPublicKey( UUID id ) throws ResourceNotFoundException;

    @Deprecated
    NotificationPreference getNotificationPreference();

    @Deprecated
    void setNotificationPreference( NotificationPreference preference );
}

package com.kryptnostic.directory.v1;

import java.util.UUID;

import com.kryptnostic.directory.v1.model.response.PublicKeyEnvelope;
import com.kryptnostic.kodex.v1.exceptions.types.ResourceNotFoundException;
import com.kryptnostic.sharing.v1.models.NotificationPreference;

public interface DirectoryClient {
    Iterable<UUID> listUsersInRealm( String realm );

    PublicKeyEnvelope getPublicKey( UUID id ) throws ResourceNotFoundException;

    @Deprecated
    NotificationPreference getNotificationPreference();

    @Deprecated
    void setNotificationPreference( NotificationPreference preference );
}

change return type to Iterable<UUID>