* add jwt expiry * start of 0.9 api impl * some stuff idk * some more impl * some cleanup * remove grouppair, add configuration, rework some pair drawing stuff * do some stuff * rework some ui * I don't even know anymore * add cancellationtoken * token bla * ui fixes etc * probably individual adding/removing now working fully as expected * add working report popup * I guess it's more syncshell shit or so * popup shit idk * work out most of the syncshell bullshit I guess * delete some old crap * are we actually getting closer to the end * update pair info stuff * more fixes/adjustments, idk * refactor some things * some rework * some more cleanup * cleanup * make menu buttons w i d e * better icon text buttons * add all syncshell folder and ordering fixes --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
namespace MareSynchronos.MareConfiguration.Models.Obsolete;
 | 
						|
 | 
						|
[Serializable]
 | 
						|
[Obsolete("Deprecated, use ServerStorage")]
 | 
						|
public class ServerStorageV0
 | 
						|
{
 | 
						|
    public List<Authentication> Authentications { get; set; } = [];
 | 
						|
    public bool FullPause { get; set; } = false;
 | 
						|
    public Dictionary<string, string> GidServerComments { get; set; } = new(StringComparer.Ordinal);
 | 
						|
    public HashSet<string> OpenPairTags { get; set; } = new(StringComparer.Ordinal);
 | 
						|
    public Dictionary<int, SecretKey> SecretKeys { get; set; } = [];
 | 
						|
    public HashSet<string> ServerAvailablePairTags { get; set; } = new(StringComparer.Ordinal);
 | 
						|
    public string ServerName { get; set; } = string.Empty;
 | 
						|
    public string ServerUri { get; set; } = string.Empty;
 | 
						|
    public Dictionary<string, string> UidServerComments { get; set; } = new(StringComparer.Ordinal);
 | 
						|
    public Dictionary<string, List<string>> UidServerPairedUserTags { get; set; } = new(StringComparer.Ordinal);
 | 
						|
 | 
						|
    public ServerStorage ToV1()
 | 
						|
    {
 | 
						|
        return new ServerStorage()
 | 
						|
        {
 | 
						|
            ServerUri = ServerUri,
 | 
						|
            ServerName = ServerName,
 | 
						|
            Authentications = [.. Authentications],
 | 
						|
            FullPause = FullPause,
 | 
						|
            SecretKeys = SecretKeys.ToDictionary(p => p.Key, p => p.Value)
 | 
						|
        };
 | 
						|
    }
 | 
						|
} |