public DocumentVisibilityConfiguration ToSDKVisibilityConfiguration() { if (apiConfiguration == null) { return(sdkConfiguration); } return(DocumentVisibilityConfigurationBuilder.NewDocumentVisibilityConfiguration(apiConfiguration.DocumentUid) .WithSignerIds(apiConfiguration.RoleUids).Build()); }
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); }
public DocumentVisibilityBuilder AddConfiguration(DocumentVisibilityConfigurationBuilder builder) { return(AddConfiguration(builder.Build())); }