Skip to content

Commit

Permalink
updated polling event names
Browse files Browse the repository at this point in the history
  • Loading branch information
bZverok committed Jun 27, 2024
1 parent d946950 commit 4858d23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Apps.XTM/Polling/PollingList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ public PollingList(InvocationContext invocationContext) : base(invocationContext
{
}

[PollingEvent("On projects created", "On any new projects created")]
[PollingEvent("On projects created (polling)", "On any new projects created")]
public Task<PollingEventResponse<DateMemory, ListProjectsResponse>> OnProjectsCreated(
PollingEventRequest<DateMemory> request) => ProcessProjectsPolling(request,
$"createdDateFrom={request.Memory?.LastInteractionDate.ToString("o", CultureInfo.InvariantCulture)}");

[PollingEvent("On projects updated", "On any projects are updated")]
[PollingEvent("On projects updated (polling)", "On any projects are updated")]
public Task<PollingEventResponse<DateMemory, ListProjectsResponse>> OnProjectsUpdated(
PollingEventRequest<DateMemory> request) => ProcessProjectsPolling(request,
$"modifiedDateFrom={request.Memory?.LastInteractionDate.ToString("o", CultureInfo.InvariantCulture)}");

[PollingEvent("On projects finished", "On any projects are finished")]
[PollingEvent("On projects finished (polling)", "On any projects are finished")]
public Task<PollingEventResponse<DateMemory, ListProjectsResponse>> OnProjectsFinished(
PollingEventRequest<DateMemory> request) => ProcessProjectsPolling(request,
$"finishedDateFrom={request.Memory?.LastInteractionDate.ToString("o", CultureInfo.InvariantCulture)}");

[PollingEvent("On project status changed", "On status of the specific project changed")]
[PollingEvent("On project status changed (polling)", "On status of the specific project changed")]
public async Task<PollingEventResponse<ProjectStatusMemory, SimpleProject>> OnProjectStatusChanged(
PollingEventRequest<ProjectStatusMemory> request,
[PollingEventParameter] ProjectRequest project,
Expand Down

0 comments on commit 4858d23

Please sign in to comment.