Skip to content

Commit 74ff6a2

Browse files
committed
chore: initialize fields
1 parent d7159f8 commit 74ff6a2

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/Pipedrive.net/Models/Request/NewActivity.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class NewActivity : IEntityWithCustomFields
3434
public long? PersonId { get; set; }
3535

3636
[JsonProperty("participants")]
37-
public List<Participant> Participants { get; set; }
37+
public List<Participant> Participants { get; set; } = new List<Participant>();
3838

3939
[JsonProperty("org_id")]
4040
public long? OrgId { get; set; }

src/Pipedrive.net/Models/Request/NewFile.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@ namespace Pipedrive
55
{
66
public class NewFile
77
{
8+
[JsonProperty("file")]
89
public Stream File { get; set; }
9-
10+
11+
[JsonProperty("deal_id")]
1012
public long? DealId { get; set; }
1113

14+
[JsonProperty("person_id")]
1215
public long? PersonId { get; set; }
1316

17+
[JsonProperty("org_id")]
1418
public long? OrgId { get; set; }
1519

20+
[JsonProperty("product_id")]
1621
public long? ProductId { get; set; }
1722

23+
[JsonProperty("activity_id")]
1824
public long? ActivityId { get; set; }
1925

26+
[JsonProperty("note_id")]
2027
public long? NoteId { get; set; }
2128

2229
public NewFile(Stream file)

src/Pipedrive.net/Models/Request/NewPerson.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ public class NewPerson : IEntityWithCustomFields
1515
public long OrgId { get; set; }
1616

1717
[JsonProperty("email")]
18-
public List<Email> Email { get; set; }
18+
public List<Email> Email { get; set; } = new List<Email>();
1919

2020
[JsonProperty("phone")]
21-
public List<Phone> Phone { get; set; }
21+
public List<Phone> Phone { get; set; } = new List<Phone>();
2222

2323
[JsonProperty("visible_to")]
2424
public Visibility VisibleTo { get; set; }

0 commit comments

Comments
 (0)