some refactoring
This commit is contained in:
parent
89c3dcb424
commit
bbf905495c
8 changed files with 160 additions and 106 deletions
|
|
@ -5,4 +5,5 @@ public class InstallationData
|
|||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public required string Title { get; set; }
|
||||
public required InstallationParts Parts { get; set; }
|
||||
public DateTime InstalledAt { get; set; } = DateTime.Now;
|
||||
}
|
||||
|
|
@ -9,18 +9,4 @@ public class InstallationParts
|
|||
public string? WindowsContentPath { get; init; }
|
||||
public string? WindowsAdminPath { get; init; }
|
||||
public string? WindowsServerPath { get; init; }
|
||||
|
||||
public InstallationParts ExtendPaths(string prefixPath)
|
||||
{
|
||||
return new InstallationParts
|
||||
{
|
||||
OculusClientPath = OculusClientPath is null ? null : Path.Combine(prefixPath, OculusClientPath),
|
||||
PicoClientPath = PicoClientPath is null ? null : Path.Combine(prefixPath, PicoClientPath),
|
||||
AndroidAdminPath = AndroidAdminPath is null ? null : Path.Combine(prefixPath, AndroidAdminPath),
|
||||
AndroidContentPath = AndroidContentPath is null ? null : Path.Combine(prefixPath, AndroidContentPath),
|
||||
WindowsContentPath = WindowsContentPath is null ? null : Path.Combine(prefixPath, WindowsContentPath),
|
||||
WindowsAdminPath = WindowsAdminPath is null ? null : Path.Combine(prefixPath, WindowsAdminPath),
|
||||
WindowsServerPath = WindowsServerPath is null ? null : Path.Combine(prefixPath, WindowsServerPath)
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue