-
Notifications
You must be signed in to change notification settings - Fork 47
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
6f593cc
commit ec9fdef
Showing
3 changed files
with
38 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Pipedrive.Internal | ||
{ | ||
internal class AdditionalData | ||
{ | ||
[JsonProperty("pagination")] | ||
public PaginationInfo Pagination { 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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
namespace Pipedrive.Internal | ||
using Newtonsoft.Json; | ||
|
||
namespace Pipedrive.Internal | ||
{ | ||
internal class JsonResponse<T> | ||
{ | ||
public bool Success { get; set; } | ||
|
||
public T Data { get; set; } | ||
|
||
[JsonProperty("additional_data")] | ||
public AdditionalData AdditionalData { get; set; } | ||
|
||
[JsonProperty("related_objects")] | ||
public object RelatedObjects { 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,19 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Pipedrive.Internal | ||
{ | ||
internal class PaginationInfo | ||
{ | ||
[JsonProperty("start")] | ||
public long Start { get; set; } | ||
|
||
[JsonProperty("limit")] | ||
public long Limit { get; set; } | ||
|
||
[JsonProperty("more_items_in_collection")] | ||
public bool MoreItemsInCollection { get; set; } | ||
|
||
[JsonProperty("next_start")] | ||
public long? NextStart { get; set; } | ||
} | ||
} |