Skip to content

Conversation

@GwFreak01
Copy link

@GwFreak01 GwFreak01 commented Jan 12, 2026

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

  • Add create poll functionality to the Java SDK following the existing SDK patterns
  • Implement Poll.java model class with Poll, PollOption, and VotingVisibility enum
  • Add PollService.java Retrofit service interface for the POST /polls endpoint
  • Include comprehensive test coverage in PollTest.java

@GwFreak01 GwFreak01 changed the title [NT] Implement Create polls basic functionality feat: Implement Create polls basic functionality Jan 12, 2026
@GwFreak01
Copy link
Author

Not sure if i need to add the feature to this SDK or the stream-sdk-java repo

GwFreak01 added 9 commits January 12, 2026 01:49
- Add GetPollResponse class
- Add GetPollRequest class with userId support
- Add get() static factory method
- Add GET /polls/{poll_id} service method
- Add unit tests for get poll functionality
- Add UpdatePollResponse class
- Add UpdatePollRequestData with UpdatePollRequest builder class
- Add update() static factory method
- Add PUT /polls service method
- Add unit tests for update poll and close poll functionality
- Add PartialUpdatePollRequestData with PartialUpdatePollRequest builder class
- Add partialUpdate() static factory method
- Add PATCH /polls/{poll_id} service method
- Add unit tests for partial update with set and unset
- Add DeletePollRequest class with userId support
- Add delete() static factory method
- Add DELETE /polls/{poll_id} service method
- Add unit test for poll deletion
- Add CreatePollOptionResponse class
- Add CreatePollOptionRequestData with CreatePollOptionRequest builder class
- Add createOption() static factory method
- Add POST /polls/{poll_id}/options service method
- Add unit test for poll option creation
- Add UpdatePollOptionResponse class
- Add UpdatePollOptionRequestData with UpdatePollOptionRequest builder class
- Add updateOption() static factory method
- Add PUT /polls/{poll_id}/options service method
- Add unit test for poll option update
- Add DeletePollOptionRequest class with userId support
- Add deleteOption() static factory method
- Add DELETE /polls/{poll_id}/options/{option_id} service method
- Add unit test for poll option deletion
- Add QueryPollsResponse class with pagination support
- Add QueryPollsRequestData with QueryPollsRequest builder class
- Add query() static factory method
- Add POST /polls/query service method
- Add unit tests for basic query and query with filter/sort
@GwFreak01 GwFreak01 changed the title feat: Implement Create polls basic functionality feat: Implement polls functionality Jan 12, 2026
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.

1 participant