Created
May 1, 2018 01:18
-
-
Save sunnyy02/7da0dd6cc0c2994d1f65b54a4fb0a312 to your computer and use it in GitHub Desktop.
Create web hook event filter
This file contains hidden or 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
public class WebhooksFilterProvider : IWebHookFilterProvider | |
{ | |
private readonly Collection<WebHookFilter> filters = new Collection<WebHookFilter> | |
{ | |
new WebHookFilter | |
{ | |
Name = "NewInquiry", | |
Description = "new inquiry is raised." | |
}, | |
new WebHookFilter | |
{ | |
Name = "UpdateSalesInquiry", | |
Description = "existing inquiry is updated." | |
}, | |
}; | |
public Task<Collection<WebHookFilter>> GetFiltersAsync() | |
{ | |
return Task.FromResult(this.filters); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment