public UserPolicy() { IsHidden = true; EnableContentDeletion = false; EnableContentDeletionFromFolders = Array.Empty <string>(); EnableSyncTranscoding = true; EnableMediaConversion = true; EnableMediaPlayback = true; EnableAudioPlaybackTranscoding = true; EnableVideoPlaybackTranscoding = true; EnablePlaybackRemuxing = true; ForceRemoteSourceTranscoding = false; EnableLiveTvManagement = true; EnableLiveTvAccess = true; // Without this on by default, admins won't be able to do this // Improve in the future EnableLiveTvManagement = true; EnableSharedDeviceControl = true; BlockedTags = Array.Empty <string>(); BlockUnratedItems = Array.Empty <UnratedItem>(); EnableUserPreferenceAccess = true; AccessSchedules = Array.Empty <AccessSchedule>(); LoginAttemptsBeforeLockout = -1; MaxActiveSessions = 0; EnableAllChannels = true; EnabledChannels = Array.Empty <Guid>(); EnableAllFolders = true; EnabledFolders = Array.Empty <Guid>(); EnabledDevices = Array.Empty <string>(); EnableAllDevices = true; EnableContentDownloading = true; EnablePublicSharing = true; EnableRemoteAccess = true; SyncPlayAccess = SyncPlayAccess.CreateAndJoinGroups; }
/// <summary> /// Initializes a new instance of the <see cref="SyncPlayAccessRequirement"/> class. /// </summary> /// <param name="requiredAccess">A value of <see cref="SyncPlayAccess"/>.</param> public SyncPlayAccessRequirement(SyncPlayAccess requiredAccess) { RequiredAccess = requiredAccess; }