DiscoverTenerife
Public Member Functions | Private Attributes | List of all members
newFriendData Class Reference

Store the information of the users that the current user has friendships invitations. More...

Public Member Functions

 newFriendData (string uid, string displayName, List< string > acceptedFriends)
 constructor More...
 
string getUid ()
 getter of the uid_ property. More...
 
string getDisplayName ()
 getter of the displayName_ property. More...
 
void addAcceptedFriendInvitation (string uid)
 this method add the given user id to the list of the accepted friends of the represented user. More...
 
string getStringConversionOfAcceptedFriendInvitations ()
 this method returns a string conversion of the accepted friends list on the json format. More...
 

Private Attributes

string uid_
 string that contains the user id of the user that has sended the friendship invitation. More...
 
string displayName_
 string that contains the display name of the user that has sended the friendship invitation. More...
 
List< string > acceptedFriendsInvitations_
 list of string that contains the accepted friendships invitations of the user that sended the friendship invitation. This is necessary because if the friendship invitation is accepted the user id of the current user has to be added to the list. It has to be a list because more than one friend can accept your invitations before you connect to the app again. More...
 

Detailed Description

Store the information of the users that the current user has friendships invitations.

Constructor & Destructor Documentation

◆ newFriendData()

newFriendData.newFriendData ( string  uid,
string  displayName,
List< string >  acceptedFriends 
)

constructor

Parameters
stringthat contains the user id
stringthat contains the user display name
listof strings that contains the user id of the users that have accepted his invitations.

Member Function Documentation

◆ addAcceptedFriendInvitation()

void newFriendData.addAcceptedFriendInvitation ( string  uid)

this method add the given user id to the list of the accepted friends of the represented user.

Parameters
stringthat contains the user id of the added user.

◆ getDisplayName()

string newFriendData.getDisplayName ( )

getter of the displayName_ property.

Returns
string that contains the display name of the represented user.

◆ getStringConversionOfAcceptedFriendInvitations()

string newFriendData.getStringConversionOfAcceptedFriendInvitations ( )

this method returns a string conversion of the accepted friends list on the json format.

Returns
string conversion of the accepted friends list on json formart.

◆ getUid()

string newFriendData.getUid ( )

getter of the uid_ property.

Returns
string that contains the user id of the represented user.

Member Data Documentation

◆ acceptedFriendsInvitations_

List<string> newFriendData.acceptedFriendsInvitations_
private

list of string that contains the accepted friendships invitations of the user that sended the friendship invitation. This is necessary because if the friendship invitation is accepted the user id of the current user has to be added to the list. It has to be a list because more than one friend can accept your invitations before you connect to the app again.

◆ displayName_

string newFriendData.displayName_
private

string that contains the display name of the user that has sended the friendship invitation.

◆ uid_

string newFriendData.uid_
private

string that contains the user id of the user that has sended the friendship invitation.


The documentation for this class was generated from the following file: