コード例 #1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="TeamFolderUpdateSyncSettingsArg"
        /// /> class.</para>
        /// </summary>
        /// <param name="teamFolderId">The ID of the team folder.</param>
        /// <param name="syncSetting">Sync setting to apply to the team folder itself. Only
        /// meaningful if the team folder is not a shared team root.</param>
        /// <param name="contentSyncSettings">Sync settings to apply to contents of this team
        /// folder.</param>
        public TeamFolderUpdateSyncSettingsArg(string teamFolderId,
                                               global::Dropbox.Api.Files.SyncSettingArg syncSetting = null,
                                               col.IEnumerable <global::Dropbox.Api.Files.ContentSyncSettingArg> contentSyncSettings = null)
            : base(teamFolderId)
        {
            var contentSyncSettingsList = enc.Util.ToList(contentSyncSettings);

            this.SyncSetting         = syncSetting;
            this.ContentSyncSettings = contentSyncSettingsList;
        }
コード例 #2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="TeamFolderCreateArg" />
        /// class.</para>
        /// </summary>
        /// <param name="name">Name for the new team folder.</param>
        /// <param name="syncSetting">The sync setting to apply to this team folder. Only
        /// permitted if the team has team selective sync enabled.</param>
        public TeamFolderCreateArg(string name,
                                   global::Dropbox.Api.Files.SyncSettingArg syncSetting = null)
        {
            if (name == null)
            {
                throw new sys.ArgumentNullException("name");
            }

            this.Name        = name;
            this.SyncSetting = syncSetting;
        }