GOG GALAXY SDK Documentation
IFriendInvitationRespondToListener Class Referenceabstract

Listener for the event of responding to a friend invitation. More...

#include <IFriends.h>

Inheritance diagram for IFriendInvitationRespondToListener:
[legend]

Public Types

enum  FailureReason {
  FAILURE_REASON_UNDEFINED , FAILURE_REASON_USER_DOES_NOT_EXIST , FAILURE_REASON_FRIEND_INVITATION_DOES_NOT_EXIST , FAILURE_REASON_USER_ALREADY_FRIEND ,
  FAILURE_REASON_CONNECTION_FAILURE
}
 The reason of a failure in responding to a friend invitation. More...
 

Public Member Functions

virtual void OnFriendInvitationRespondToSuccess (GalaxyID userID, bool accept)=0
 Notification for the event of a success in responding to a friend invitation. More...
 
virtual void OnFriendInvitationRespondToFailure (GalaxyID userID, FailureReason failureReason)=0
 Notification for the event of a failure in responding to a friend invitation. More...
 

Additional Inherited Members

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

Detailed Description

Listener for the event of responding to a friend invitation.

Member Enumeration Documentation

◆ FailureReason

The reason of a failure in responding to a friend invitation.

Enumerator
FAILURE_REASON_UNDEFINED 

Unspecified error.

FAILURE_REASON_USER_DOES_NOT_EXIST 

User does not exist.

FAILURE_REASON_FRIEND_INVITATION_DOES_NOT_EXIST 

Friend invitation does not exist.

FAILURE_REASON_USER_ALREADY_FRIEND 

User already on the friend list.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

Member Function Documentation

◆ OnFriendInvitationRespondToFailure()

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

Notification for the event of a failure in responding to a friend invitation.

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

◆ OnFriendInvitationRespondToSuccess()

virtual void OnFriendInvitationRespondToSuccess ( GalaxyID  userID,
bool  accept 
)
pure virtual

Notification for the event of a success in responding to a friend invitation.

Parameters
[in]userIDThe ID of the user who sent the invitation.
[in]acceptTrue when accepting the invitation, false when declining.