* move stuff out into file transfer manager * obnoxious unsupported version text, adjustments to filetransfermanager * add back file upload transfer progress * restructure code * cleanup some more stuff I guess * downloadids by playername * individual anim/sound bs * fix migration stuff, finalize impl of individual sound/anim pause * fixes with logging stuff * move download manager to transient * rework dl ui first iteration * some refactoring and cleanup * more code cleanup * refactoring * switch to hostbuilder * some more rework I guess * more refactoring * clean up mediator calls and disposal * fun code cleanup * push error message when log level is set to anything but information in non-debug builds * remove notificationservice * move message to after login * add download bars to gameworld * fixes download progress bar * set gpose ui min and max size * remove unnecessary usings * adjustments to reconnection logic * add options to set visible/offline groups visibility * add impl of uploading display, transfer list in settings ui * attempt to fix issues with server selection * add back download status to compact ui * make dl bar fixed size based * some fixes for upload/download handling * adjust text from Syncing back to Uploading --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com> Co-authored-by: Stanley Dimant <stanley.dimant@varian.com>
		
			
				
	
	
		
			58 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using MareSynchronos.MareConfiguration.Models;
 | 
						|
using MareSynchronos.MareConfiguration.Models.Obsolete;
 | 
						|
 | 
						|
namespace MareSynchronos.MareConfiguration.Configurations.Obsolete;
 | 
						|
 | 
						|
[Serializable]
 | 
						|
[Obsolete("Deprecated, use MareConfig")]
 | 
						|
public class MareConfigV0 : IMareConfiguration
 | 
						|
{
 | 
						|
    public int Version { get; set; } = 0;
 | 
						|
    public Dictionary<string, ServerStorageV0> ServerStorage { get; set; } = new(StringComparer.OrdinalIgnoreCase);
 | 
						|
    public Dictionary<string, HashSet<string>> PlayerPersistentTransientCache { get; set; } = new(StringComparer.Ordinal);
 | 
						|
    public bool AcceptedAgreement { get; set; } = false;
 | 
						|
    public string CacheFolder { get; set; } = string.Empty;
 | 
						|
    public double MaxLocalCacheInGiB { get; set; } = 20;
 | 
						|
    public bool ReverseUserSort { get; set; } = false;
 | 
						|
    public int TimeSpanBetweenScansInSeconds { get; set; } = 30;
 | 
						|
    public bool FileScanPaused { get; set; } = false;
 | 
						|
    public bool InitialScanComplete { get; set; } = false;
 | 
						|
    public bool DisableOptionalPluginWarnings { get; set; } = false;
 | 
						|
    public bool OpenGposeImportOnGposeStart { get; set; } = false;
 | 
						|
    public bool ShowTransferWindow { get; set; } = true;
 | 
						|
    public bool OpenPopupOnAdd { get; set; } = true;
 | 
						|
    public string CurrentServer { get; set; } = string.Empty;
 | 
						|
    public bool ShowOnlineNotifications { get; set; } = false;
 | 
						|
    public bool ShowOnlineNotificationsOnlyForIndividualPairs { get; set; } = true;
 | 
						|
    public bool ShowOnlineNotificationsOnlyForNamedPairs { get; set; } = false;
 | 
						|
    public bool ShowCharacterNameInsteadOfNotesForVisible { get; set; } = false;
 | 
						|
    public NotificationLocation InfoNotification { get; set; } = NotificationLocation.Toast;
 | 
						|
    public NotificationLocation WarningNotification { get; set; } = NotificationLocation.Both;
 | 
						|
    public NotificationLocation ErrorNotification { get; set; } = NotificationLocation.Both;
 | 
						|
 | 
						|
    public MareConfig ToV1()
 | 
						|
    {
 | 
						|
        return new MareConfig()
 | 
						|
        {
 | 
						|
            AcceptedAgreement = this.AcceptedAgreement,
 | 
						|
            CacheFolder = this.CacheFolder,
 | 
						|
            MaxLocalCacheInGiB = this.MaxLocalCacheInGiB,
 | 
						|
            ReverseUserSort = this.ReverseUserSort,
 | 
						|
            TimeSpanBetweenScansInSeconds = this.TimeSpanBetweenScansInSeconds,
 | 
						|
            FileScanPaused = this.FileScanPaused,
 | 
						|
            InitialScanComplete = this.InitialScanComplete,
 | 
						|
            DisableOptionalPluginWarnings = this.DisableOptionalPluginWarnings,
 | 
						|
            OpenGposeImportOnGposeStart = this.OpenGposeImportOnGposeStart,
 | 
						|
            ShowTransferWindow = this.ShowTransferWindow,
 | 
						|
            OpenPopupOnAdd = this.OpenPopupOnAdd,
 | 
						|
            ShowOnlineNotifications = this.ShowOnlineNotifications,
 | 
						|
            ShowOnlineNotificationsOnlyForIndividualPairs = this.ShowOnlineNotificationsOnlyForIndividualPairs,
 | 
						|
            ShowCharacterNameInsteadOfNotesForVisible = this.ShowCharacterNameInsteadOfNotesForVisible,
 | 
						|
            ShowOnlineNotificationsOnlyForNamedPairs = this.ShowOnlineNotificationsOnlyForNamedPairs,
 | 
						|
            ErrorNotification = this.ErrorNotification,
 | 
						|
            InfoNotification = this.InfoNotification,
 | 
						|
            WarningNotification = this.WarningNotification,
 | 
						|
        };
 | 
						|
    }
 | 
						|
}
 |