3030/** Details of a session including a unique Id and related information. */
3131public class PerfSession implements Parcelable {
3232
33- private final String internalSessionId ;
33+ private final String sessionId ;
3434 private final Timer creationTime ;
3535
3636 private boolean isGaugeAndEventCollectionEnabled = false ;
@@ -54,27 +54,21 @@ public static PerfSession createNewSession() {
5454
5555 /** Creates a PerfSession with the provided {@code sessionId} and {@code clock}. */
5656 @ VisibleForTesting (otherwise = VisibleForTesting .PACKAGE_PRIVATE )
57- public PerfSession (String internalSessionId , Clock clock ) {
58- this .internalSessionId = internalSessionId ;
57+ public PerfSession (String sessionId , Clock clock ) {
58+ this .sessionId = sessionId ;
5959 creationTime = clock .getTime ();
6060 }
6161
6262 private PerfSession (@ NonNull Parcel in ) {
6363 super ();
64- internalSessionId = in .readString ();
64+ sessionId = in .readString ();
6565 isGaugeAndEventCollectionEnabled = in .readByte () != 0 ;
6666 creationTime = in .readParcelable (Timer .class .getClassLoader ());
6767 }
6868
6969 /** Returns the sessionId of the object. */
7070 public String sessionId () {
71- return FirebasePerformanceSessionSubscriber .Companion .getInstance ()
72- .getAqsMappedToPerfSession (this .internalSessionId );
73- }
74-
75- @ VisibleForTesting (otherwise = VisibleForTesting .PACKAGE_PRIVATE )
76- public String getInternalSessionId () {
77- return internalSessionId ;
71+ return this .sessionId ;
7872 }
7973
8074 /**
@@ -202,7 +196,7 @@ public int describeContents() {
202196 * @param flags Additional flags about how the object should be written.
203197 */
204198 public void writeToParcel (@ NonNull Parcel out , int flags ) {
205- out .writeString (internalSessionId );
199+ out .writeString (sessionId );
206200 out .writeByte ((byte ) (isGaugeAndEventCollectionEnabled ? 1 : 0 ));
207201 out .writeParcelable (creationTime , 0 );
208202 }
0 commit comments