Repository navigation
main#resource-type-enum ---> dev #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
70b512f
Merge pull request #14 from Cosmos-CSM/dev
RMotive 8fcbf05
removed and updated foundation
RMotive 293cf70
version bump and update for event
RMotive c8efb32
improved handling of objects
RMotive b5be19e
added object abstraction base
RMotive bb656d6
removed
RMotive a8310fc
released v4.0.0
RMotive 6f96a08
Added [ResourceType] enum
jr110 32ed653
adding [ScalarValue] enumerator
jr110 ab138f4
Fix summary comment for ResourceType enumeration
RMotive File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...ation Core/Core/Exceptions/SystemError.cs → ...oundation Core/Core/Errors/SystemError.cs
This file contains hidden or 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 hidden or 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,8 +1,22 @@ | ||
| namespace CSM_Foundation_Core.Core.Extensions; | ||
|
|
||
|
|
||
| /// <summary> | ||
| /// Extends <see cref="DateTime"/> class. | ||
| /// </summary> | ||
| public static class DateTimeExtensions { | ||
|
|
||
| public static DateTime Trim(this DateTime Current) { | ||
| return new DateTime(Current.Year, Current.Month, Current.Day, Current.Hour, Current.Minute, Current.Second); | ||
| /// <summary> | ||
| /// Trims the given <paramref name="obj"/> to seconds. | ||
| /// </summary> | ||
| /// <param name="obj"> | ||
| /// Current object. | ||
| /// </param> | ||
| /// <returns> | ||
| /// Trimmed <see cref="DateTime"/> to seconds. | ||
| /// </returns> | ||
| public static DateTime Trim(this DateTime obj) { | ||
| return new DateTime(obj.Year, obj.Month, obj.Day, obj.Hour, obj.Minute, obj.Second); | ||
| } | ||
|
|
||
| } |
22 changes: 20 additions & 2 deletions
22
CSM Foundation Core/Core/Extensions/EnumerableExtension.cs
This file contains hidden or 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,6 +1,24 @@ | ||
| namespace CSM_Foundation_Core.Core.Extensions; | ||
|
|
||
|
|
||
| /// <summary> | ||
| /// Extends <see cref="IEnumerable{T}"/> class. | ||
| /// </summary> | ||
| public static class EnumerableExtension { | ||
| public static bool Empty<T>(this IEnumerable<T> List) { | ||
| return !List.Any(); | ||
|
|
||
| /// <summary> | ||
| /// Checks if the <paramref name="obj"/> is empty. | ||
| /// </summary> | ||
| /// <typeparam name="T"> | ||
| /// Type of the <see cref="IEnumerable{T}"/> content. | ||
| /// </typeparam> | ||
| /// <param name="obj"> | ||
| /// Current object. | ||
| /// </param> | ||
| /// <returns> | ||
| /// Whether the collection is empty or not. | ||
| /// </returns> | ||
| public static bool Empty<T>(this IEnumerable<T> obj) { | ||
| return !obj.Any(); | ||
| } | ||
| } |
This file contains hidden or 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,16 @@ | ||
| namespace CSM_Foundation_Core.Core.Resources; | ||
|
|
||
| /// <summary> | ||
| /// Resource types enumeration. | ||
| /// </summary> | ||
| public enum ResourceType { | ||
| /// <summary> | ||
| /// When the resource has a remote access Link. | ||
| /// </summary> | ||
| HLINK, | ||
|
|
||
| /// <summary> | ||
| /// When the resource has local or network access data. | ||
| /// </summary> | ||
| FILE, | ||
| } |
This file contains hidden or 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,31 @@ | ||
| namespace CSM_Foundation_Core.Core.Resources; | ||
|
|
||
| /// <summary> | ||
| /// Scalar values enumerator. | ||
| /// </summary> | ||
| public enum ScalarValue { | ||
| /// <summary> | ||
| /// Double precision floating point number. | ||
| /// </summary> | ||
| DOUBLE, | ||
|
|
||
| /// <summary> | ||
| /// Integer number. | ||
| /// </summary> | ||
| INT, | ||
|
|
||
| /// <summary> | ||
| /// String value. | ||
| /// </summary> | ||
| STRING, | ||
|
|
||
| /// <summary> | ||
| /// Boolean value. | ||
| /// </summary> | ||
| BOOL, | ||
|
|
||
| /// <summary> | ||
| /// Enumeration value. | ||
| /// </summary> | ||
| ENUM, | ||
| } |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.