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 sessionState must be an instance of the SessionState enumeration.
  • Replace each variable with an appropriate value or object as required for your application.

Author:
Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
  • Method Details

    • getMediaSessionId

      String getMediaSessionId()
      Gets the session ID associated with the success response.
      Returns:
      the session ID.
    • setMediaSessionId

      void setMediaSessionId(String mediaSessionId)
      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

      void setSessionState(SessionState sessionState)
      Sets the session state associated with the success response.
      Parameters:
      sessionState - the session state to set.