-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
50 changed files
with
225 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Close.Interfaces; | ||
|
||
namespace Close.Helpers; | ||
|
||
public abstract class ActivityService<TEntity> where TEntity : ICloseEntity | ||
{ | ||
protected Request<TEntity> _request; | ||
|
||
public ActivityService(CloseClient closeClient, string endpoint) | ||
{ | ||
_request = new Request<TEntity>(closeClient, endpoint); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...Close/Services/Interfaces/ICloseEntity.cs → src/Close/Interfaces/ICloseEntity.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Close.Services.Interfaces; | ||
namespace Close.Interfaces; | ||
|
||
public interface ICloseEntity | ||
{ | ||
|
4 changes: 1 addition & 3 deletions
4
src/Close/Services/Interfaces/ICreatable.cs → src/Close/Interfaces/ICreatable.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
2 changes: 1 addition & 1 deletion
2
...ose/Services/Interfaces/ICreateOptions.cs → src/Close/Interfaces/ICreateOptions.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Close.Services.Interfaces; | ||
namespace Close.Interfaces; | ||
|
||
public interface ICreateOptions | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Close/Services/Interfaces/IDeletable.cs → src/Close/Interfaces/IDeletable.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Close.Services.Interfaces; | ||
namespace Close.Interfaces; | ||
|
||
internal interface IDeletable | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...lose/Services/Interfaces/IHasCreatedBy.cs → src/Close/Interfaces/IHasCreatedBy.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
2 changes: 1 addition & 1 deletion
2
...lose/Services/Interfaces/IHasUpdatedBy.cs → src/Close/Interfaces/IHasUpdatedBy.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
2 changes: 1 addition & 1 deletion
2
src/Close/Services/Interfaces/IListable.cs → src/Close/Interfaces/IListable.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
2 changes: 1 addition & 1 deletion
2
...se/Services/Interfaces/IRequestOptions.cs → src/Close/Interfaces/IRequestOptions.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Close.Services.Interfaces; | ||
namespace Close.Interfaces; | ||
|
||
public interface IRequestOptions | ||
{ | ||
|
4 changes: 1 addition & 3 deletions
4
...Close/Services/Interfaces/IRetrievable.cs → src/Close/Interfaces/IRetrievable.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
4 changes: 1 addition & 3 deletions
4
src/Close/Services/Interfaces/IUpdatable.cs → src/Close/Interfaces/IUpdatable.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
2 changes: 1 addition & 1 deletion
2
...ose/Services/Interfaces/IUpdateOptions.cs → src/Close/Interfaces/IUpdateOptions.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Close.Services.Interfaces; | ||
namespace Close.Interfaces; | ||
|
||
public interface IUpdateOptions | ||
{ | ||
|
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,46 @@ | ||
using System.Text.Json.Serialization; | ||
using Close.Interfaces; | ||
|
||
namespace Close.Models.Activities.Notes; | ||
|
||
public class Note : ICloseEntity, IHasCreatedBy, IHasUpdatedBy | ||
{ | ||
[JsonPropertyName("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonPropertyName("lead_id")] | ||
public string LeadId { get; set; } | ||
|
||
[JsonPropertyName("user_id")] | ||
public string UserId { get; set; } | ||
|
||
[JsonPropertyName("user_name")] | ||
public string UserName { get; set; } | ||
|
||
[JsonPropertyName("organization_id")] | ||
public string OrganizationId { get; set; } | ||
|
||
[JsonPropertyName("contact_id")] | ||
public string ContactId { get; set; } | ||
|
||
[JsonPropertyName("note_html")] | ||
public string NoteHtml { get; set; } | ||
|
||
[JsonPropertyName("created_by_name")] | ||
public string CreatedByName { get; set; } | ||
|
||
[JsonPropertyName("date_created")] | ||
public DateTimeOffset DateCreated { get; set; } | ||
|
||
[JsonPropertyName("created_by")] | ||
public string CreatedBy { get; set; } | ||
|
||
[JsonPropertyName("updated_by_name")] | ||
public string UpdatedByName { get; set; } | ||
|
||
[JsonPropertyName("date_updated")] | ||
public DateTimeOffset? DateUpdated { get; set; } | ||
|
||
[JsonPropertyName("updated_by")] | ||
public string UpdatedBy { 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,16 @@ | ||
using System.Text.Json.Serialization; | ||
using Close.Interfaces; | ||
|
||
namespace Close.Models.Activities.Notes; | ||
|
||
public class NoteCreateOptions : ICreateOptions | ||
{ | ||
[JsonPropertyName("lead_id")] | ||
public string LeadId { get; set; } | ||
|
||
[JsonPropertyName("note")] | ||
public string Note { get; set; } | ||
|
||
[JsonPropertyName("note_html")] | ||
public string NoteHtml { 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,22 @@ | ||
using System.Text.Json.Serialization; | ||
using Close.Models.Common; | ||
|
||
namespace Close.Models.Activities.Notes; | ||
|
||
public class NoteListOptions : IListOptions | ||
{ | ||
[JsonPropertyName("_skip")] | ||
public int? Skip { get; set; } | ||
|
||
[JsonPropertyName("_limit")] | ||
public int? Limit { get; set; } | ||
|
||
[JsonPropertyName("_fields")] | ||
public string[] Fields { get; set; } | ||
|
||
[JsonPropertyName("query")] | ||
public string Query { get; set; } | ||
|
||
[JsonPropertyName("lead_saved_search_id")] | ||
public string LeadSavedSearchId { 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,13 @@ | ||
using System.Text.Json.Serialization; | ||
using Close.Interfaces; | ||
|
||
namespace Close.Models.Activities.Notes; | ||
|
||
public class NoteUpdateOptions : IUpdateOptions | ||
{ | ||
[JsonPropertyName("note")] | ||
public string Note { get; set; } | ||
|
||
[JsonPropertyName("note_html")] | ||
public string NoteHtml { 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
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
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
Oops, something went wrong.