diff --git a/CogniteSdk.Types/DataModels/Core/Assets.cs b/CogniteSdk.Types/DataModels/Core/Asset.cs similarity index 100% rename from CogniteSdk.Types/DataModels/Core/Assets.cs rename to CogniteSdk.Types/DataModels/Core/Asset.cs diff --git a/CogniteSdk.Types/DataModels/Core/Files.cs b/CogniteSdk.Types/DataModels/Core/File.cs similarity index 100% rename from CogniteSdk.Types/DataModels/Core/Files.cs rename to CogniteSdk.Types/DataModels/Core/File.cs diff --git a/CogniteSdk/src/Resources/DataModels/Activity.cs b/CogniteSdk/src/Resources/DataModels/Activity.cs new file mode 100644 index 00000000..65816754 --- /dev/null +++ b/CogniteSdk/src/Resources/DataModels/Activity.cs @@ -0,0 +1,23 @@ +using CogniteSdk.DataModels; +using CogniteSdk.DataModels.Core; + +namespace CogniteSdk.Resources.DataModels +{ + /// + /// Base resource for activity in core data models. + /// + /// + public class CoreActivityResource : BaseDataModelResource where T : CogniteActivity + { + /// + public override ViewIdentifier View { get; } + + /// + public CoreActivityResource( + DataModelsResource resource, + ViewIdentifier view) : base(resource) + { + View = view ?? new ViewIdentifier("cdf_cdm", "CogniteActivity", "v1"); + } + } +} diff --git a/CogniteSdk/src/Resources/DataModels/Asset.cs b/CogniteSdk/src/Resources/DataModels/Asset.cs new file mode 100644 index 00000000..239c3428 --- /dev/null +++ b/CogniteSdk/src/Resources/DataModels/Asset.cs @@ -0,0 +1,23 @@ +using CogniteSdk.DataModels; +using CogniteSdk.DataModels.Core; + +namespace CogniteSdk.Resources.DataModels +{ + /// + /// Base resource for asset in core data models. + /// + /// + public class CoreAssetResource : BaseDataModelResource where T : CogniteAssetBase + { + /// + public override ViewIdentifier View { get; } + + /// + public CoreAssetResource( + DataModelsResource resource, + ViewIdentifier view) : base(resource) + { + View = view ?? new ViewIdentifier("cdf_cdm", "CogniteAsset", "v1"); + } + } +} diff --git a/CogniteSdk/src/Resources/DataModels/Equipment.cs b/CogniteSdk/src/Resources/DataModels/Equipment.cs new file mode 100644 index 00000000..ca9564f3 --- /dev/null +++ b/CogniteSdk/src/Resources/DataModels/Equipment.cs @@ -0,0 +1,23 @@ +using CogniteSdk.DataModels; +using CogniteSdk.DataModels.Core; + +namespace CogniteSdk.Resources.DataModels +{ + /// + /// Base resource for equipment in core data models. + /// + /// + public class CoreEquipmentResource : BaseDataModelResource where T : CogniteEquipment + { + /// + public override ViewIdentifier View { get; } + + /// + public CoreEquipmentResource( + DataModelsResource resource, + ViewIdentifier view) : base(resource) + { + View = view ?? new ViewIdentifier("cdf_cdm", "CogniteEquipment", "v1"); + } + } +} diff --git a/CogniteSdk/src/Resources/DataModels/File.cs b/CogniteSdk/src/Resources/DataModels/File.cs new file mode 100644 index 00000000..cf5a9854 --- /dev/null +++ b/CogniteSdk/src/Resources/DataModels/File.cs @@ -0,0 +1,23 @@ +using CogniteSdk.DataModels; +using CogniteSdk.DataModels.Core; + +namespace CogniteSdk.Resources.DataModels +{ + /// + /// Base resource for file in core data models. + /// + /// + public class CoreFileResource : BaseDataModelResource where T : CogniteFile + { + /// + public override ViewIdentifier View { get; } + + /// + public CoreFileResource( + DataModelsResource resource, + ViewIdentifier view) : base(resource) + { + View = view ?? new ViewIdentifier("cdf_cdm", "CogniteFile", "v1"); + } + } +} diff --git a/CogniteSdk/src/Resources/DataModels/TimeSeries.cs b/CogniteSdk/src/Resources/DataModels/TimeSeries.cs index a06ac63d..1f9a2c07 100644 --- a/CogniteSdk/src/Resources/DataModels/TimeSeries.cs +++ b/CogniteSdk/src/Resources/DataModels/TimeSeries.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using CogniteSdk.DataModels; using CogniteSdk.DataModels.Core; diff --git a/version b/version index 6ca6df11..b617d997 100644 --- a/version +++ b/version @@ -1 +1 @@ -4.8.0 \ No newline at end of file +4.9.0 \ No newline at end of file