-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update apply api method to set contact creation channel
- Loading branch information
Showing
2 changed files
with
49 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using GetIntoTeachingApi.Models.Crm; | ||
|
||
namespace GetIntoTeachingApi.Jobs; | ||
|
||
public class ContactChannelCandidateWrapper : ICreateContactChannel | ||
{ | ||
|
||
/// <summary> | ||
/// Provides the default read-only contact creation channel integer value. | ||
/// </summary> | ||
public int? DefaultContactCreationChannel => | ||
(int?)Candidate.Channel.ApplyForTeacherTraining; | ||
|
||
/// <summary> | ||
/// Provides the ability to assign and retrieve the channel source creation identifier. | ||
/// </summary> | ||
public int? CreationChannelSourceId { get; set; } | ||
|
||
/// <summary> | ||
/// Provides the ability to assign and retrieve the channel service creation identifier. | ||
/// </summary> | ||
public int? CreationChannelServiceId { get; set; } | ||
|
||
/// <summary> | ||
/// Provides the ability to assign and retrieve the channel activity creation identifier. | ||
/// </summary> | ||
public int? CreationChannelActivityId { get; set; } | ||
|
||
|
||
public Candidate ScopedCandidate { get; } | ||
|
||
// Todo: add some documentation | ||
public ContactChannelCandidateWrapper(Candidate candidate) | ||
{ | ||
ScopedCandidate = candidate; | ||
} | ||
} |