Skip to content

Commit

Permalink
chore: Activity cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRouyer committed Jul 23, 2018
1 parent 46e716b commit e99c31c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/Pipedrive.net/Models/Request/NewActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Pipedrive
{
public class NewActivity : IEntityWithCustomFields
public class NewActivity
{
[JsonProperty("subject")]
public string Subject { get; set; }
Expand Down Expand Up @@ -42,9 +42,6 @@ public class NewActivity : IEntityWithCustomFields
[JsonProperty("note")]
public string Note { get; set; }

[JsonIgnore]
public IDictionary<string, ICustomField> CustomFields { get; set; } = new Dictionary<string, ICustomField>();

public NewActivity(string subject, string type)
{
this.Subject = subject;
Expand Down
7 changes: 1 addition & 6 deletions src/Pipedrive.net/Models/Response/Activity.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using Newtonsoft.Json;
using Pipedrive.Internal;
using System;
using System.Collections.Generic;

namespace Pipedrive
{
[JsonConverter(typeof(CustomFieldConverter))]
public class Activity : IEntityWithCustomFields, IDealUpdateEntity
public class Activity : IDealUpdateEntity
{
public long Id { get; set; }

Expand Down Expand Up @@ -112,9 +110,6 @@ public class Activity : IEntityWithCustomFields, IDealUpdateEntity
[JsonProperty("assigned_to_user_id")]
public long? AssignedToUserId { get; set; }

[JsonIgnore]
public IDictionary<string, ICustomField> CustomFields { get; set; }

public ActivityUpdate ToUpdate()
{
return new ActivityUpdate
Expand Down

0 comments on commit e99c31c

Please sign in to comment.