Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 50805053 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

added supercategories to VehicleCategoryHelper (PrimaryBus, Lorry, CompletedBus, Van)

parent 6e45a67d
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
*/
using System;
using Microsoft.Win32.SafeHandles;
using System.Collections.Generic;
namespace TUGraz.VectoCommon.Models
{
......@@ -51,10 +51,18 @@ namespace TUGraz.VectoCommon.Models
public static class VehicleCategoryHelper
{
public static string PrimaryBus = "PrimaryBus";
public static string Lorry = "Lorry";
public static string CompletedBus = "CompletedBus";
public static string Van = "Van";
public static HashSet<string> SuperCategories { get; } = new HashSet<string>() {
PrimaryBus,
Lorry,
CompletedBus,
Van
};
public static string GetVehicleType(this VehicleCategory category)
{
switch (category) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment