Skip to content
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

feat: add options object to specify custom params for feed.items() #1264

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Androz2091
Copy link

It is now possible to retrieve as many messages as desired per thread when fetching direct inbox items or direct thread items

@Androz2091
Copy link
Author

Androz2091 commented Aug 27, 2020

Could close #1263

Copy link
Collaborator

@Nerixyz Nerixyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the class as the input for the options not the request method.

src/feeds/direct-inbox.feed.ts Outdated Show resolved Hide resolved
src/feeds/direct-pending.feed.ts Outdated Show resolved Hide resolved
src/feeds/direct-thread.feed.ts Outdated Show resolved Hide resolved
@Androz2091
Copy link
Author

I tried to change that, should we add @Expose()? Should we use camelCase instead of snake_case for things like thread_message_limit?

src/core/feed.factory.ts Outdated Show resolved Hide resolved
src/feeds/direct-inbox.feed.ts Outdated Show resolved Hide resolved
src/feeds/direct-inbox.feed.ts Outdated Show resolved Hide resolved
src/feeds/direct-pending.feed.ts Outdated Show resolved Hide resolved
src/core/feed.factory.ts Outdated Show resolved Hide resolved
@bayoumymac
Copy link
Contributor

@Nerixyz I am new in here, I have had 2 prs open since july and I was wondering if there's an issue I can help with as they haven't gotten any comments. #1224 #1231

@Nerixyz
Copy link
Collaborator

Nerixyz commented Sep 1, 2020

@Nerixyz I am new in here, I have had 2 prs open since july and I was wondering if there's an issue I can help with as they haven't gotten any comments. #1224 #1231

I've seen the PRs already. They seem fine to me. I haven't tested them though.

@@ -9,6 +9,8 @@ export class DirectPendingInboxFeed extends Feed<DirectInboxFeedResponse, Direct
@Expose()
private seqId: number;

public limit?: number;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify the default values here instead of using ?? operator below

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same for another feeds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants