-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from bobbahbrown/net6
Version 1.4.0 - NET 6 Upgrade
- Loading branch information
Showing
136 changed files
with
5,367 additions
and
5,020 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace CentCom.API.Controllers | ||
namespace CentCom.API.Controllers; | ||
|
||
[ApiExplorerSettings(IgnoreApi = true)] | ||
[Route("scraper")] | ||
public class ScraperInfoController : Controller | ||
{ | ||
[ApiExplorerSettings(IgnoreApi = true)] | ||
[Route("scraper")] | ||
public class ScraperInfoController : Controller | ||
[HttpGet] | ||
public IActionResult Index() | ||
{ | ||
[HttpGet] | ||
public IActionResult Index() | ||
{ | ||
return View(); | ||
} | ||
return View(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
using System.Collections.Generic; | ||
using CentCom.Common.Models; | ||
|
||
namespace CentCom.API.Models | ||
namespace CentCom.API.Models; | ||
|
||
public class BanSearchViewModel | ||
{ | ||
public class BanSearchViewModel | ||
{ | ||
public string CKey { get; set; } | ||
public IEnumerable<KeySummary> Data { get; set; } | ||
} | ||
} | ||
public string CKey { get; set; } | ||
public IEnumerable<KeySummary> Data { get; set; } | ||
} |
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 |
---|---|---|
@@ -1,40 +1,39 @@ | ||
using CentCom.Common.Models; | ||
|
||
namespace CentCom.API.Models | ||
namespace CentCom.API.Models; | ||
|
||
/// <summary> | ||
/// DTO for ban sources | ||
/// </summary> | ||
public class BanSourceData | ||
{ | ||
/// <summary> | ||
/// DTO for ban sources | ||
/// Internal CentCom DB ID | ||
/// </summary> | ||
public class BanSourceData | ||
{ | ||
/// <summary> | ||
/// Internal CentCom DB ID | ||
/// </summary> | ||
public int ID { get; set; } | ||
public int ID { get; set; } | ||
|
||
/// <summary> | ||
/// Display name | ||
/// </summary> | ||
public string Name { get; set; } | ||
/// <summary> | ||
/// Display name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// The roleplay level of this ban source | ||
/// </summary> | ||
public RoleplayLevel RoleplayLevel { get; set; } | ||
/// <summary> | ||
/// The roleplay level of this ban source | ||
/// </summary> | ||
public RoleplayLevel RoleplayLevel { get; set; } | ||
|
||
/// <summary> | ||
/// Generates a DTO from a database BanSource | ||
/// </summary> | ||
/// <param name="source">The object to copy data from</param> | ||
/// <returns>A BanSource DTO</returns> | ||
public static BanSourceData FromBanSource(BanSource source) | ||
/// <summary> | ||
/// Generates a DTO from a database BanSource | ||
/// </summary> | ||
/// <param name="source">The object to copy data from</param> | ||
/// <returns>A BanSource DTO</returns> | ||
public static BanSourceData FromBanSource(BanSource source) | ||
{ | ||
return new BanSourceData | ||
{ | ||
return new BanSourceData() | ||
{ | ||
ID = source.Id, | ||
Name = source.Display, | ||
RoleplayLevel = source.RoleplayLevel | ||
}; | ||
} | ||
ID = source.Id, | ||
Name = source.Display, | ||
RoleplayLevel = source.RoleplayLevel | ||
}; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
using System.Collections.Generic; | ||
using CentCom.Common.Models.DTO; | ||
|
||
namespace CentCom.API.Models | ||
namespace CentCom.API.Models; | ||
|
||
public class BanViewViewModel | ||
{ | ||
public class BanViewViewModel | ||
{ | ||
public string CKey { get; set; } | ||
public bool OnlyActive { get; set; } | ||
public IEnumerable<BanData> Bans { get; set; } | ||
} | ||
} | ||
public string CKey { get; set; } | ||
public bool OnlyActive { get; set; } | ||
public IEnumerable<BanData> Bans { get; set; } | ||
} |
Oops, something went wrong.