-
Notifications
You must be signed in to change notification settings - Fork 54
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
11 changed files
with
54 additions
and
69 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/Networking/NexusMods.Networking.ModUpdates/IModFeedItem.cs
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,22 @@ | ||
using NexusMods.Abstractions.NexusWebApi.Types.V2.Uid; | ||
namespace NexusMods.Networking.ModUpdates; | ||
|
||
/// <summary> | ||
/// Represents an individual item from a 'mod feed'; with the 'mod feed' being | ||
/// the result of an API call that returns one or more mods from the Nexus API. | ||
/// (Either V1 or V2 API) | ||
/// </summary> | ||
public interface IModFeedItem | ||
{ | ||
/// <summary> | ||
/// Returns a unique identifier for the given item, based on the ID format | ||
/// used in the NexusMods V2 API. | ||
/// </summary> | ||
public UidForMod GetModPageId(); | ||
|
||
/// <summary> | ||
/// Retrieves the time the item was last updated. | ||
/// This date is in UTC. | ||
/// </summary> | ||
public DateTime GetLastUpdatedDateUtc(); | ||
} |
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
5 changes: 2 additions & 3 deletions
5
src/Networking/NexusMods.Networking.ModUpdates/Mixins/PageMetadataMixin.cs
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
3 changes: 1 addition & 2 deletions
3
src/Networking/NexusMods.Networking.ModUpdates/PerFeedCacheUpdaterResult.cs
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
13 changes: 0 additions & 13 deletions
13
src/Networking/NexusMods.Networking.ModUpdates/Traits/ICanGetLastUpdatedTimestamp.cs
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/Networking/NexusMods.Networking.ModUpdates/Traits/ICanGetUidForMod.cs
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
5 changes: 2 additions & 3 deletions
5
tests/Networking/NexusMods.Networking.ModUpdates.Tests/Helpers/TestItem.cs
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