/// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="SharedContentChangeLinkAudienceDetails" /> class.</para>
        /// </summary>
        /// <param name="newValue">New link audience value.</param>
        /// <param name="previousValue">Previous link audience value.</param>
        public SharedContentChangeLinkAudienceDetails(global::Dropbox.Api.Sharing.LinkAudience newValue,
                                                      global::Dropbox.Api.Sharing.LinkAudience previousValue = null)
        {
            if (newValue == null)
            {
                throw new sys.ArgumentNullException("newValue");
            }

            this.NewValue      = newValue;
            this.PreviousValue = previousValue;
        }
Esempio n. 2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="SharedLinkSettingsChangeAudienceDetails" /> class.</para>
        /// </summary>
        /// <param name="sharedContentAccessLevel">Shared content access level.</param>
        /// <param name="newValue">New link audience value.</param>
        /// <param name="sharedContentLink">Shared content link.</param>
        /// <param name="previousValue">Previous link audience value.</param>
        public SharedLinkSettingsChangeAudienceDetails(global::Dropbox.Api.Sharing.AccessLevel sharedContentAccessLevel,
                                                       global::Dropbox.Api.Sharing.LinkAudience newValue,
                                                       string sharedContentLink = null,
                                                       global::Dropbox.Api.Sharing.LinkAudience previousValue = null)
        {
            if (sharedContentAccessLevel == null)
            {
                throw new sys.ArgumentNullException("sharedContentAccessLevel");
            }

            if (newValue == null)
            {
                throw new sys.ArgumentNullException("newValue");
            }

            this.SharedContentAccessLevel = sharedContentAccessLevel;
            this.NewValue          = newValue;
            this.SharedContentLink = sharedContentLink;
            this.PreviousValue     = previousValue;
        }