Photon C++ Client API  5.0.7.3
Public Member Functions | List of all members
LobbyStatsResponse Class Reference
Inheritance diagram for LobbyStatsResponse:
Inheritance graph
[legend]
Collaboration diagram for LobbyStatsResponse:
Collaboration graph
[legend]

Public Member Functions

const Common::JStringgetName (void) const
 
nByte getType (void) const
 
int getPeerCount (void) const
 
int getRoomCount (void) const
 
virtual Common::JStringtoString (Common::JString &retStr, bool withTypes=false) const
 
virtual JStringtoString (JString &retStr, bool withTypes=false) const=0
 
JString toString (bool withTypes=false) const
 
- Public Member Functions inherited from ToString
virtual ~ToString (void)
 
virtual JString typeToString (void) const
 
JString toString (bool withTypes=false) const
 

Detailed Description

Passed to Listener::onLobbyStatsResponse(), Listener::onLobbyStatsUpdate(). Each instance of this class holds the name, the type and the statistics (peer count and room count) of one specific lobby. Each lobby can be uniquely identified by the combination of its name and type.

See also
Client::opLobbyStats(), Listener::onLobbyStatsResponse(), Listener::onLobbyStatsUpdate(), LobbyStatsRequest

Member Function Documentation

◆ getName()

const JString & getName ( void  ) const
Returns
the lobby name. Each lobby can be uniquely identified by the combination of its name and type.

◆ getType()

nByte getType ( void  ) const
Returns
the lobby type. Each lobby can be uniquely identified by the combination of its name and type.

◆ getPeerCount()

int getPeerCount ( void  ) const
Returns
the number of clients that currently reside in this specific lobby

◆ getRoomCount()

int getRoomCount ( void  ) const
Returns
the number of clients that currently exist and that belong to this specific lobby.

On room creation the creator of the room can specify the name and type of the lobby to which that room gets assigned in the RoomOptions.

◆ toString() [1/3]

JString & toString ( Common::JString retStr,
bool  withTypes = false 
) const
virtual
Remarks
The cost of this function depends a lot on implementation details of the implementing subclasses, but for container classes this function can become quite expensive, if the instance contains huge amounts of data, as its cost for many container class implementations increases disproportionately high to the size of the payload.
Parameters
retStrreference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string
withTypesset to true, to include type information in the generated string
Returns
a JString representation of the instance and its contents for debugging purposes.

Implements ToString.

◆ toString() [2/3]

toString
Remarks
The cost of this function depends a lot on implementation details of the implementing subclasses, but for container classes this function can become quite expensive, if the instance contains huge amounts of data, as its cost for many container class implementations increases disproportionately high to the size of the payload.
Parameters
retStrreference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string
withTypesset to true, to include type information in the generated string
Returns
a JString representation of the instance and its contents for debugging purposes.

◆ toString() [3/3]

JString toString

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
withTypesset to true, to include type information in the generated string
Returns
a JString representation of the instance and its contents for debugging purposes.
See also
JString