-
Notifications
You must be signed in to change notification settings - Fork 244
Support narrowcast message API #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- implments line#190 TODO: - narrowcast progress API
Codecov Report
@@ Coverage Diff @@
## master #191 +/- ##
==========================================
+ Coverage 75.59% 76.29% +0.69%
==========================================
Files 25 27 +2
Lines 2000 2143 +143
==========================================
+ Hits 1512 1635 +123
- Misses 394 411 +17
- Partials 94 97 +3
Continue to review full report at Codecov.
|
linebot/filter.go
Outdated
| } | ||
|
|
||
| // AudienceFilter type | ||
| type AudienceFilter struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Audience object is not an demographic filter object, it is a recipient object.
Currently recipient object and demographic filter object have (looks) same operator object but they are not exactly same, they can be altered for each.
So I think it is better to split operator struct to two, 1. recipient operator object 2. demographic filter operator object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, will update later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I've renamed filter to selector to remedy the semantics. Thanks.
|
I think interfaces for audience and other filters should be separately defined, such as: and Audience implements Recipient and other demographic filter objects implements DemographicFilter sorry my lack of explanation |
|
Since recipient and demographic filter are entirely different objects, can we treat them as such? |
Hi, I'm not the one who designs these filters, not sure if I missed the design proposal. Here's my initiatives:
How do you think? |
|
My apologies for the interruption and confusion. I thought the point was to separate Operator to simplify the interface/implementation: One operator for Recipient and another for Demographic filter. The Recipient document says the operator deals with |
Ok, I think it's fine to separate them. Updated. |
oklahomer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for those changes. LGTM 👍
|
LGTM, |
- follow line#190, line#191, implements the following API: https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
RequestIDto BasicResponseTODO: