GOG GALAXY SDK Documentation
IUserTimePlayedRetrieveListener Class Referenceabstract

Listener for the event of retrieving user time played. More...

#include <IStats.h>

Inheritance diagram for IUserTimePlayedRetrieveListener:
[legend]

Public Types

enum  FailureReason { FAILURE_REASON_UNDEFINED , FAILURE_REASON_CONNECTION_FAILURE }
 The reason of a failure in retrieving user time played. More...
 

Public Member Functions

virtual void OnUserTimePlayedRetrieveSuccess (GalaxyID userID)=0
 Notification for the event of a success in retrieving user time played. More...
 
virtual void OnUserTimePlayedRetrieveFailure (GalaxyID userID, FailureReason failureReason)=0
 Notification for the event of a failure in retrieving user time played. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GalaxyTypeAwareListener< USER_TIME_PLAYED_RETRIEVE >
static ListenerType GetListenerType ()
 Returns the type of the listener. More...
 

Detailed Description

Listener for the event of retrieving user time played.

Member Enumeration Documentation

◆ FailureReason

The reason of a failure in retrieving user time played.

Enumerator
FAILURE_REASON_UNDEFINED 

Unspecified error.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

Member Function Documentation

◆ OnUserTimePlayedRetrieveFailure()

virtual void OnUserTimePlayedRetrieveFailure ( GalaxyID  userID,
FailureReason  failureReason 
)
pure virtual

Notification for the event of a failure in retrieving user time played.

Parameters
[in]userIDThe ID of the user.
[in]failureReasonThe cause of the failure.

◆ OnUserTimePlayedRetrieveSuccess()

virtual void OnUserTimePlayedRetrieveSuccess ( GalaxyID  userID)
pure virtual

Notification for the event of a success in retrieving user time played.

In order to read user time played, call IStats::GetUserTimePlayed().

Parameters
[in]userIDThe ID of the user.