-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
91 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
backend/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/FusionApp/ApiFusionApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Fusion.Integration.Apps.Abstractions.Models; | ||
|
||
namespace Equinor.ProjectExecutionPortal.WebApi.ViewModels.FusionApp; | ||
|
||
public class ApiFusionApp | ||
{ | ||
public ApiFusionApp() | ||
{ } | ||
|
||
public ApiFusionApp(App fusionApp) | ||
{ | ||
AppKey = fusionApp.AppKey; | ||
DisplayName = fusionApp.DisplayName; | ||
Description = fusionApp.Description; | ||
Type = fusionApp.Type; | ||
IsPinned = fusionApp.IsPinned; | ||
TemplateSource = fusionApp.TemplateSource; | ||
Category = fusionApp.Category != null ? new ApiFusionAppCategory(fusionApp.Category) : null; | ||
Build = fusionApp.Build != null ? new ApiFusionAppVersion(fusionApp.Build) : null; | ||
} | ||
|
||
public string AppKey { get; set; } = null!; | ||
public string DisplayName { get; set; } = null!; | ||
public string? Description { get; set; } = null!; | ||
public string? Type { get; set; } = null!; | ||
public string? Version { get; set; } | ||
public bool? IsPinned { get; set; } | ||
public string? TemplateSource { get; set; } | ||
public ApiFusionAppCategory? Category { get; set; } | ||
public ApiFusionAppVersion? Build { get; set; } | ||
} |
27 changes: 27 additions & 0 deletions
27
...nd/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/FusionApp/ApiFusionAppCategory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Fusion.Integration.Apps.Abstractions.Models; | ||
|
||
namespace Equinor.ProjectExecutionPortal.WebApi.ViewModels.FusionApp | ||
{ | ||
public class ApiFusionAppCategory | ||
{ | ||
public ApiFusionAppCategory() | ||
{ } | ||
|
||
public ApiFusionAppCategory(AppCategory fusionAppCategory) | ||
{ | ||
Id = fusionAppCategory.Id; | ||
Name = fusionAppCategory.Name; | ||
DisplayName = fusionAppCategory.DisplayName; | ||
Color = fusionAppCategory.Color; | ||
DefaultIcon = fusionAppCategory.DefaultIcon; | ||
SortOrder = fusionAppCategory.SortOrder; | ||
} | ||
|
||
public Guid Id { get; set; } | ||
public string Name { get; set; } = null!; | ||
public string DisplayName { get; set; } = null!; | ||
public string Color { get; set; } = null!; | ||
public string DefaultIcon { get; set; } = null!; | ||
public short SortOrder { get; set; } | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...end/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/FusionApp/ApiFusionAppVersion.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Fusion.Integration.Apps.Abstractions.Models; | ||
|
||
namespace Equinor.ProjectExecutionPortal.WebApi.ViewModels.FusionApp | ||
{ | ||
public class ApiFusionAppVersion | ||
{ | ||
public ApiFusionAppVersion() | ||
{ } | ||
|
||
public ApiFusionAppVersion(AppVersion fusionAppVersion) | ||
{ | ||
Version = fusionAppVersion.Version; | ||
EntryPoint = fusionAppVersion.EntryPoint; | ||
Tags = fusionAppVersion.Tags; | ||
Tag = fusionAppVersion.Tag; | ||
AssetPath = fusionAppVersion.AssetPath; | ||
ConfigUrl = fusionAppVersion.ConfigUrl; | ||
} | ||
|
||
public string Version { get; set; } = null!; | ||
public string EntryPoint { get; set; } = null!; | ||
public List<string>? Tags { get; set; } | ||
public string? Tag { get; set; } | ||
public string? AssetPath { get; set; } | ||
public string? ConfigUrl { get; set; } | ||
} | ||
} |
77 changes: 0 additions & 77 deletions
77
backend/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/OnboardedApp/ApiFusionApp.cs
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
backend/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/OnboardedApp/ApiOnboardedApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/PortalApp/ApiPortalApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...d/src/Equinor.ProjectExecutionPortal.WebApi/ViewModels/PortalApp/ApiPortalOnboardedApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters