-
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.
Merged in GUARD-784-Large-Intermittent-Sync-Delays (pull request #6)
2020-08-31 GUARD-784 GUARD-780 Large-Intermittent-Sync-Delays Approved-by: Maxim Strelsov Approved-by: Slav Ivanyuk
- Loading branch information
Showing
7 changed files
with
184 additions
and
113 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 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,27 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ShipStationAccess.V2.Services | ||
{ | ||
public sealed class PaginatedResponse< T > where T : class, new() | ||
{ | ||
public int? TotalPagesExpected { get; set; } | ||
public int? TotalEntitiesExpected { get; set; } | ||
public int TotalPagesReceived { get; set; } | ||
|
||
public List< T > Data { get; private set; } | ||
public List< ReadError > ReadErrors { get; private set; } | ||
|
||
public PaginatedResponse() | ||
{ | ||
this.Data = new List< T >(); | ||
this.ReadErrors = new List< ReadError >(); | ||
} | ||
} | ||
|
||
public sealed class ReadError | ||
{ | ||
public string Url { get; set; } | ||
public int PageSize { get; set; } | ||
public int Page { get; set; } | ||
} | ||
} |
Oops, something went wrong.