-
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.
- Loading branch information
1 parent
420e307
commit 95b82e0
Showing
8 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,23 @@ | ||
using CogniteSdk.DataModels; | ||
using CogniteSdk.DataModels.Core; | ||
|
||
namespace CogniteSdk.Resources.DataModels | ||
{ | ||
/// <summary> | ||
/// Base resource for activity in core data models. | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
public class CoreActivityResource<T> : BaseDataModelResource<T> where T : CogniteActivity | ||
{ | ||
/// <inheritdoc /> | ||
public override ViewIdentifier View { get; } | ||
|
||
/// <inheritdoc /> | ||
public CoreActivityResource( | ||
DataModelsResource resource, | ||
ViewIdentifier view) : base(resource) | ||
{ | ||
View = view ?? new ViewIdentifier("cdf_cdm", "CogniteActivity", "v1"); | ||
} | ||
} | ||
} |
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,23 @@ | ||
using CogniteSdk.DataModels; | ||
using CogniteSdk.DataModels.Core; | ||
|
||
namespace CogniteSdk.Resources.DataModels | ||
{ | ||
/// <summary> | ||
/// Base resource for asset in core data models. | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
public class CoreAssetResource<T> : BaseDataModelResource<T> where T : CogniteAssetBase | ||
{ | ||
/// <inheritdoc /> | ||
public override ViewIdentifier View { get; } | ||
|
||
/// <inheritdoc /> | ||
public CoreAssetResource( | ||
DataModelsResource resource, | ||
ViewIdentifier view) : base(resource) | ||
{ | ||
View = view ?? new ViewIdentifier("cdf_cdm", "CogniteAsset", "v1"); | ||
} | ||
} | ||
} |
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,23 @@ | ||
using CogniteSdk.DataModels; | ||
using CogniteSdk.DataModels.Core; | ||
|
||
namespace CogniteSdk.Resources.DataModels | ||
{ | ||
/// <summary> | ||
/// Base resource for equipment in core data models. | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
public class CoreEquipmentResource<T> : BaseDataModelResource<T> where T : CogniteEquipment | ||
{ | ||
/// <inheritdoc /> | ||
public override ViewIdentifier View { get; } | ||
|
||
/// <inheritdoc /> | ||
public CoreEquipmentResource( | ||
DataModelsResource resource, | ||
ViewIdentifier view) : base(resource) | ||
{ | ||
View = view ?? new ViewIdentifier("cdf_cdm", "CogniteEquipment", "v1"); | ||
} | ||
} | ||
} |
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,23 @@ | ||
using CogniteSdk.DataModels; | ||
using CogniteSdk.DataModels.Core; | ||
|
||
namespace CogniteSdk.Resources.DataModels | ||
{ | ||
/// <summary> | ||
/// Base resource for file in core data models. | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
public class CoreFileResource<T> : BaseDataModelResource<T> where T : CogniteFile | ||
{ | ||
/// <inheritdoc /> | ||
public override ViewIdentifier View { get; } | ||
|
||
/// <inheritdoc /> | ||
public CoreFileResource( | ||
DataModelsResource resource, | ||
ViewIdentifier view) : base(resource) | ||
{ | ||
View = view ?? new ViewIdentifier("cdf_cdm", "CogniteFile", "v1"); | ||
} | ||
} | ||
} |
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,4 +1,3 @@ | ||
using System.Collections.Generic; | ||
using CogniteSdk.DataModels; | ||
using CogniteSdk.DataModels.Core; | ||
|
||
|
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 +1 @@ | ||
4.8.0 | ||
4.9.0 |