Commit 74ff6a2 1 parent d7159f8 commit 74ff6a2 Copy full SHA for 74ff6a2
File tree 3 files changed +11
-4
lines changed
src/Pipedrive.net/Models/Request
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public class NewActivity : IEntityWithCustomFields
34
34
public long ? PersonId { get ; set ; }
35
35
36
36
[ JsonProperty ( "participants" ) ]
37
- public List < Participant > Participants { get ; set ; }
37
+ public List < Participant > Participants { get ; set ; } = new List < Participant > ( ) ;
38
38
39
39
[ JsonProperty ( "org_id" ) ]
40
40
public long ? OrgId { get ; set ; }
Original file line number Diff line number Diff line change @@ -5,18 +5,25 @@ namespace Pipedrive
5
5
{
6
6
public class NewFile
7
7
{
8
+ [ JsonProperty ( "file" ) ]
8
9
public Stream File { get ; set ; }
9
-
10
+
11
+ [ JsonProperty ( "deal_id" ) ]
10
12
public long ? DealId { get ; set ; }
11
13
14
+ [ JsonProperty ( "person_id" ) ]
12
15
public long ? PersonId { get ; set ; }
13
16
17
+ [ JsonProperty ( "org_id" ) ]
14
18
public long ? OrgId { get ; set ; }
15
19
20
+ [ JsonProperty ( "product_id" ) ]
16
21
public long ? ProductId { get ; set ; }
17
22
23
+ [ JsonProperty ( "activity_id" ) ]
18
24
public long ? ActivityId { get ; set ; }
19
25
26
+ [ JsonProperty ( "note_id" ) ]
20
27
public long ? NoteId { get ; set ; }
21
28
22
29
public NewFile ( Stream file )
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ public class NewPerson : IEntityWithCustomFields
15
15
public long OrgId { get ; set ; }
16
16
17
17
[ JsonProperty ( "email" ) ]
18
- public List < Email > Email { get ; set ; }
18
+ public List < Email > Email { get ; set ; } = new List < Email > ( ) ;
19
19
20
20
[ JsonProperty ( "phone" ) ]
21
- public List < Phone > Phone { get ; set ; }
21
+ public List < Phone > Phone { get ; set ; } = new List < Phone > ( ) ;
22
22
23
23
[ JsonProperty ( "visible_to" ) ]
24
24
public Visibility VisibleTo { get ; set ; }
You can’t perform that action at this time.
0 commit comments