コード例 #1
0
        public DocumentVisibilityConfiguration ToSDKVisibilityConfiguration()
        {
            if (apiConfiguration == null)
            {
                return(sdkConfiguration);
            }

            return(DocumentVisibilityConfigurationBuilder.NewDocumentVisibilityConfiguration(apiConfiguration.DocumentUid)
                   .WithSignerIds(apiConfiguration.RoleUids).Build());
        }
コード例 #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);
        }
コード例 #3
0
 public DocumentVisibilityBuilder AddConfiguration(DocumentVisibilityConfigurationBuilder builder)
 {
     return(AddConfiguration(builder.Build()));
 }