Beispiel #1
0
 /// <summary>
 ///     Creates a SharedLink to associate with a File or folder
 /// </summary>
 /// <param name="access">With whom the item should be shared</param>
 /// <param name="unsharedAt">Automatically stop sharing at this time</param>
 /// <param name="permissions">The </param>
 public SharedLink(Access access, DateTime? unsharedAt = null, Permissions permissions = null)
     : this()
 {
     Access = access;
     Permissions = permissions ?? new Permissions() {CanDownload = true, CanPreview = true};
     if (unsharedAt.HasValue)
     {
         UnsharedAt = unsharedAt.Value;
     }
 }
 /// <summary>
 ///     Creates a SharedLink to associate with a File or folder
 /// </summary>
 /// <param name="access">With whom the item should be shared</param>
 /// <param name="unsharedAt">Automatically stop sharing at this time</param>
 /// <param name="permissions">The </param>
 public SharedLink(Access access, DateTime unsharedAt, Permissions permissions)
 {
     Access = access;
     UnsharedAt = new DateTime(unsharedAt.Year, unsharedAt.Month, unsharedAt.Day, unsharedAt.Hour, unsharedAt.Minute, unsharedAt.Second);
     Permissions = permissions;
 }