-
Notifications
You must be signed in to change notification settings - Fork 15
Fix GetParticipantAsync #277
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
Refactored MeetingParticipant to use MeetingInfo and Conversation properties, removing Id, Role, IsOrganizer, and JoinTime. Changed GetParticipantAsync to require tenantId and updated its request URL. Added OnConversationUpdate handler and GetMeetingId helper in Program.cs. Updated unit tests to match new method signature and data structure.
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.
Pull request overview
This pull request refactors the GetParticipantAsync API method to require a tenantId parameter and restructures the MeetingParticipant model to better encapsulate meeting context. The changes remove individual properties like Id, Role, IsOrganizer, and JoinTime from MeetingParticipant, replacing them with structured Meeting and Conversation properties. A new MeetingInfo class was introduced to hold meeting-specific details.
Changes:
- Updated
GetParticipantAsyncto requiretenantIdparameter with URL path encoding formeetingIdandid - Refactored
MeetingParticipantmodel structure with newMeetingInfoandConversationproperties - Added sample implementation in
Program.csdemonstrating meeting ID extraction and participant retrieval
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| Libraries/Microsoft.Teams.Api/Clients/MeetingClient.cs | Updated API signature for GetParticipantAsync, refactored MeetingParticipant model, and added MeetingInfo class |
| Tests/Microsoft.Teams.Api.Tests/Clients/MeetingClientTests.cs | Updated test to reflect new method signature and validate new data structure |
| Samples/Samples.Meetings/Program.cs | Added OnConversationUpdate handler and GetMeetingId helper to demonstrate new API usage |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Properly URL-encode tenantId in GetParticipantAsync for safety. - Add MeetingInfo class to represent participant role/status. - Add XML docs to MeetingParticipant properties. - Remove OnConversationUpdate handler and GetMeetingId helper for simplicity.
…teams.net into fix/276-meetingClient
|
@copilot can you review this PR again and resolve the conversations? |
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fixes #276
Refactored MeetingParticipant to use MeetingInfo and Conversation properties, removing Id, Role, IsOrganizer, and JoinTime. Changed GetParticipantAsync to require tenantId and updated its request URL. Added OnConversationUpdate handler and GetMeetingId helper in Program.cs. Updated unit tests to match new method signature and data structure.
This pull request updates the
MeetingParticipantmodel and related API methods to improve how meeting participant details are retrieved and represented. The changes primarily focus on restructuring the participant data, updating API signatures to support tenant scoping, and adjusting tests and sample usage accordingly.API and Model Updates:
GetParticipantAsyncmethod inMeetingClientnow requires atenantIdparameter and encodes all path and query parameters for safety.MeetingParticipantclass has been refactored: properties likeId,Role,IsOrganizer, andJoinTimewere removed, and new propertiesMeeting(of typeMeetingInfo) andConversationwere added to better encapsulate participant context.MeetingInfoclass was introduced to hold meeting-specific participant details such asRoleandInMeeting.Sample and Test Adjustments:
Program.cs) now demonstrates how to extract the meeting ID from activity channel data and fetch participant details using the updated API signature, including the newtenantIdparameter.MeetingClient.GetParticipantAsyncwere updated to reflect the new method signature and model structure, ensuring correct property mapping and URL construction. [1] [2]Minor Cleanups: