Interface SuccessResponse
- All Known Subinterfaces:
MediaSessionUpsertResponse
public interface SuccessResponse
Represents a successful response, encapsulating details such as session ID and session state.
Implementations of this interface provide standardized access to the success response details.
Example usage:
SuccessResponse successResponse = new SuccessResponseImpl.Builder()
.mediaSessionId(mediaSessionId)
.sessionState(SessionState.CREATED)
.build();
Note:
- The value provided for
sessionStatemust be an instance of theSessionStateenumeration. - Replace each variable with an appropriate value or object as required for your application.
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableSuccessResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the session ID associated with the success response.Gets the session state associated with the success response.voidsetMediaSessionId(String mediaSessionId) Sets the session ID associated with the success response.voidsetSessionState(SessionState sessionState) Sets the session state associated with the success response.
-
Method Details
-
getMediaSessionId
String getMediaSessionId()Gets the session ID associated with the success response.- Returns:
- the session ID.
-
setMediaSessionId
Sets the session ID associated with the success response.- Parameters:
mediaSessionId- the session ID to set.
-
getSessionState
SessionState getSessionState()Gets the session state associated with the success response.- Returns:
- the session state.
-
setSessionState
Sets the session state associated with the success response.- Parameters:
sessionState- the session state to set.
-