-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add getDeals for organizations and persons
- Loading branch information
1 parent
d042643
commit 4169e03
Showing
11 changed files
with
340 additions
and
0 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
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
48 changes: 48 additions & 0 deletions
48
src/Pipedrive.net/Models/Request/OrganizationDealFilters.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,48 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Pipedrive | ||
{ | ||
public class OrganizationDealFilters | ||
{ | ||
public static OrganizationDealFilters None | ||
{ | ||
get { return new OrganizationDealFilters(); } | ||
} | ||
|
||
public int? StartPage { get; set; } | ||
|
||
public int? PageCount { get; set; } | ||
|
||
public int? PageSize { get; set; } | ||
|
||
public DealStatus? Status { get; set; } | ||
|
||
public string Sort { get; set; } | ||
|
||
public bool? OnlyPrimaryAssociation { get; set; } | ||
|
||
/// <summary> | ||
/// Get the query parameters that will be appending onto the search | ||
/// </summary> | ||
public IDictionary<string, string> Parameters | ||
{ | ||
get | ||
{ | ||
var d = new Dictionary<string, string>(); | ||
if (Status.HasValue) | ||
{ | ||
d.Add("status", Status.Value.ToString()); | ||
} | ||
if (!string.IsNullOrWhiteSpace(Sort)) | ||
{ | ||
d.Add("sort", Sort); | ||
} | ||
if (OnlyPrimaryAssociation.HasValue) | ||
{ | ||
d.Add("only_primary_association", OnlyPrimaryAssociation.Value.ToString()); | ||
} | ||
return d; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.