generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 0
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
142 changed files
with
1,164 additions
and
352 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using MongoDB.Bson; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
namespace APIGateway.Models; | ||
|
||
public class MetadataObject | ||
{ | ||
[BsonRepresentation(BsonType.ObjectId)] | ||
public string _id { get; set; } = string.Empty; | ||
|
||
[BsonElement("basicData")] | ||
public BasicData basicData { get; set; } = new BasicData(); | ||
|
||
[BsonElement("additionalData")] | ||
public AdditionalData additionalData { get; set; } = new AdditionalData(); | ||
|
||
// The general and most important data about a dataset. | ||
public class BasicData | ||
{ | ||
public string DatasetId { get; set; } = string.Empty; | ||
public string Name { get; set; } = string.Empty; | ||
public string ShortDescription { get; set; } = string.Empty; | ||
public string Icon { get; set; } = string.Empty; | ||
} | ||
|
||
// The additional data for each of the datasets, queried at a request. | ||
public class AdditionalData | ||
{ | ||
public string Icon { get; set; } = string.Empty; | ||
public string Type { get; set; } = string.Empty; | ||
|
||
public string LongDescription { get; set; } = string.Empty; | ||
|
||
// Zoom level is higher the closer you look at something. If current zoom level is below this, it shouldn't display any value. | ||
public int MinZoomLevel { get; set; } = 0; | ||
|
||
// The zoom threshold where areas start to turn into markers | ||
public int MarkersThreshold { get; set; } = 0; | ||
|
||
// The display property is the property that should be shown in a popup. | ||
public string DisplayProperty { get; set; } = string.Empty; | ||
|
||
// Table data populated by the data pipeline. Contains the name and the size of the all .yaml files correlated to that specific dataset. | ||
public List<TableData> Tables { get; set; } = new List<TableData>(); | ||
} | ||
|
||
// Table data populated by the data pipeline. Contains the name and the size of the all .yaml files correlated to that specific dataset. | ||
public class TableData | ||
{ | ||
// The name of the .yaml file | ||
public string Name { get; set; } = string.Empty; | ||
// The number of lines of data in that file. | ||
public int NumberOfLines { get; set; } = 0; | ||
} | ||
} |
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
Oops, something went wrong.