/// <summary> /// <para>Initializes a new instance of the <see cref="SharedLinkSettings" /> /// class.</para> /// </summary> /// <param name="requestedVisibility">The requested access for this shared /// link.</param> /// <param name="linkPassword">If <paramref name="requestedVisibility" /> is <see /// cref="Dropbox.Api.Sharing.RequestedVisibility.Password" /> this is needed to /// specify the password to access the link.</param> /// <param name="expires">Expiration time of the shared link. By default the link won't /// expire.</param> public SharedLinkSettings(RequestedVisibility requestedVisibility = null, string linkPassword = null, sys.DateTime?expires = null) { this.RequestedVisibility = requestedVisibility; this.LinkPassword = linkPassword; this.Expires = expires; }
/// <summary> /// <para>Initializes a new instance of the <see cref="LinkPermissions" /> /// class.</para> /// </summary> /// <param name="canRevoke">Whether the caller can revoke the shared link</param> /// <param name="resolvedVisibility">The current visibility of the link after /// considering the shared links policies of the the team (in case the link's owner is /// part of a team) and the shared folder (in case the linked file is part of a shared /// folder). This field is shown only if the caller has access to this info (the link's /// owner always has access to this data).</param> /// <param name="requestedVisibility">The shared link's requested visibility. This can /// be overridden by the team and shared folder policies. The final visibility, after /// considering these policies, can be found in <paramref name="resolvedVisibility" />. /// This is shown only if the caller is the link's owner.</param> /// <param name="revokeFailureReason">The failure reason for revoking the link. This /// field will only be present if the <paramref name="canRevoke" /> is /// <c>false</c>.</param> public LinkPermissions(bool canRevoke, ResolvedVisibility resolvedVisibility = null, RequestedVisibility requestedVisibility = null, SharedLinkAccessFailureReason revokeFailureReason = null) { this.CanRevoke = canRevoke; this.ResolvedVisibility = resolvedVisibility; this.RequestedVisibility = requestedVisibility; this.RevokeFailureReason = revokeFailureReason; }
/// <summary> /// <para>Initializes a new instance of the <see cref="SharedLinkSettings" /> /// class.</para> /// </summary> /// <param name="requestedVisibility">The requested access for this shared /// link.</param> /// <param name="linkPassword">If <paramref name="requestedVisibility" /> is <see /// cref="Dropbox.Api.Sharing.RequestedVisibility.Password" /> this is needed to /// specify the password to access the link.</param> /// <param name="expires">Expiration time of the shared link. By default the link won't /// expire.</param> /// <param name="audience">The new audience who can benefit from the access level /// specified by the link's access level specified in the `link_access_level` field of /// `LinkPermissions`. This is used in conjunction with team policies and shared folder /// policies to determine the final effective audience type in the `effective_audience` /// field of `LinkPermissions.</param> /// <param name="access">Requested access level you want the audience to gain from this /// link. Note, modifying access level for an existing link is not supported.</param> public SharedLinkSettings(RequestedVisibility requestedVisibility = null, string linkPassword = null, sys.DateTime?expires = null, LinkAudience audience = null, RequestedLinkAccessLevel access = null) { this.RequestedVisibility = requestedVisibility; this.LinkPassword = linkPassword; this.Expires = expires; this.Audience = audience; this.Access = access; }
/// <summary> /// <para>Initializes a new instance of the <see cref="LinkPermissions" /> /// class.</para> /// </summary> /// <param name="canRevoke">Whether the caller can revoke the shared link.</param> /// <param name="resolvedVisibility">The current visibility of the link after /// considering the shared links policies of the the team (in case the link's owner is /// part of a team) and the shared folder (in case the linked file is part of a shared /// folder). This field is shown only if the caller has access to this info (the link's /// owner always has access to this data). For some links, an effective_audience value /// is returned instead.</param> /// <param name="requestedVisibility">The shared link's requested visibility. This can /// be overridden by the team and shared folder policies. The final visibility, after /// considering these policies, can be found in <paramref name="resolvedVisibility" />. /// This is shown only if the caller is the link's owner and resolved_visibility is /// returned instead of effective_audience.</param> /// <param name="revokeFailureReason">The failure reason for revoking the link. This /// field will only be present if the <paramref name="canRevoke" /> is /// <c>false</c>.</param> /// <param name="effectiveAudience">The type of audience who can benefit from the /// access level specified by the `link_access_level` field.</param> /// <param name="linkAccessLevel">The access level that the link will grant to its /// users. A link can grant additional rights to a user beyond their current access /// level. For example, if a user was invited as a viewer to a file, and then opens a /// link with `link_access_level` set to `editor`, then they will gain editor /// privileges. The `link_access_level` is a property of the link, and does not depend /// on who is calling this API. In particular, `link_access_level` does not take into /// account the API caller's current permissions to the content.</param> public LinkPermissions(bool canRevoke, ResolvedVisibility resolvedVisibility = null, RequestedVisibility requestedVisibility = null, SharedLinkAccessFailureReason revokeFailureReason = null, LinkAudience effectiveAudience = null, LinkAccessLevel linkAccessLevel = null) { this.CanRevoke = canRevoke; this.ResolvedVisibility = resolvedVisibility; this.RequestedVisibility = requestedVisibility; this.RevokeFailureReason = revokeFailureReason; this.EffectiveAudience = effectiveAudience; this.LinkAccessLevel = linkAccessLevel; }