public DocumentVisibilityConfiguration ToSDKVisibilityConfiguration()
        {
            if (apiConfiguration == null)
            {
                return(sdkConfiguration);
            }

            return(DocumentVisibilityConfigurationBuilder.NewDocumentVisibilityConfiguration(apiConfiguration.DocumentUid)
                   .WithSignerIds(apiConfiguration.RoleUids).Build());
        }
Exemple #2
0
        private List <DocumentVisibilityConfiguration> ConvertToDocumentVisibilityConfigurations()
        {
            if (configurationBuilders == null || configurationBuilders.Count == 0)
            {
                return(new List <DocumentVisibilityConfiguration>());
            }

            foreach (DocumentVisibilityConfigurationBasedOnSignerBuilder builder in configurationBuilders)
            {
                foreach (string documentId in builder.DocumentIds)
                {
                    MergeConfiguration(DocumentVisibilityConfigurationBuilder.NewDocumentVisibilityConfiguration(documentId).WithSignerId(builder.SignerId).Build());
                }
            }

            return(configurations);
        }
Exemple #3
0
 public DocumentVisibilityBuilder AddConfiguration(DocumentVisibilityConfigurationBuilder builder)
 {
     return(AddConfiguration(builder.Build()));
 }