Пример #1
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="LinkSettings" /> class.</para>
 /// </summary>
 /// <param name="audience">The type of audience on the link for this file.</param>
 /// <param name="expiry">An expiry timestamp to set on a link.</param>
 /// <param name="password">The password for the link.</param>
 public LinkSettings(LinkAudience audience = null,
                     LinkExpiry expiry     = null,
                     LinkPassword password = null)
 {
     this.Audience = audience;
     this.Expiry   = expiry;
     this.Password = password;
 }
Пример #2
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="LinkSettings" /> class.</para>
 /// </summary>
 /// <param name="accessLevel">The access level on the link for this file. Currently, it
 /// only accepts 'viewer' and 'viewer_no_comment'.</param>
 /// <param name="audience">The type of audience on the link for this file.</param>
 /// <param name="expiry">An expiry timestamp to set on a link.</param>
 /// <param name="password">The password for the link.</param>
 public LinkSettings(AccessLevel accessLevel = null,
                     LinkAudience audience   = null,
                     LinkExpiry expiry       = null,
                     LinkPassword password   = null)
 {
     this.AccessLevel = accessLevel;
     this.Audience    = audience;
     this.Expiry      = expiry;
     this.Password    = password;
 }