-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Pagining enhancements to multiple methods - Add recipient notification to FinalizePackage - Addresses #7
- Loading branch information
1 parent
417c55b
commit 00fefdb
Showing
16 changed files
with
624 additions
and
234 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace SendSafely.Objects | ||
{ | ||
[JsonObject(MemberSerialization.OptIn)] | ||
class NotifyPackageRecipientsRequest | ||
{ | ||
private String _keycode; | ||
|
||
[JsonProperty(PropertyName = "keycode")] | ||
public String Keycode { get; set; } | ||
} | ||
} |
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,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace SendSafely.Objects | ||
{ | ||
class PaginationResponse : StandardResponse | ||
{ | ||
|
||
private Dictionary<String, String> _pagination; | ||
|
||
[JsonProperty(PropertyName = "pagination")] | ||
internal Dictionary<String, String> Pagination | ||
{ | ||
get { return _pagination; } | ||
set { _pagination = value; } | ||
} | ||
} | ||
} |
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,46 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace SendSafely | ||
{ | ||
[JsonObject(MemberSerialization.OptIn)] | ||
public class PaginatedList<T> : List<T> | ||
{ | ||
private int _rowIndex = 0; | ||
private int _rowsReturned; | ||
private int _nextRowIndex; | ||
private bool _rowsCapped; | ||
|
||
[JsonProperty(PropertyName = "rowIndex")] | ||
public int RowIndex | ||
{ | ||
get { return _rowIndex; } | ||
set { _rowIndex = value; } | ||
} | ||
|
||
[JsonProperty(PropertyName = "rowsReturned")] | ||
public int RowsReturned | ||
{ | ||
get { return _rowsReturned; } | ||
set { _rowsReturned = value; } | ||
} | ||
|
||
[JsonProperty(PropertyName = "nextRowIndex")] | ||
public int NextRowIndex | ||
{ | ||
get { return _nextRowIndex; } | ||
set { _nextRowIndex = value; } | ||
} | ||
|
||
[JsonProperty(PropertyName = "rowsCapped")] | ||
public bool RowsCapped | ||
{ | ||
get { return _rowsCapped; } | ||
set { _rowsCapped = value; } | ||
} | ||
} | ||
|
||
|
||
} |
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
Oops, something went wrong.