SuperMarioOdysseyOnline/include/nn/friends.h
2022-06-16 14:33:18 -07:00

44 lines
No EOL
1,017 B
C++

/**
* @file friends.h
* @brief Friend implementation.
*/
#pragma once
#include "account.h"
#include "os.h"
namespace nn
{
namespace friends
{
typedef char Url[0xA0];
class AsyncContext;
class Profile;
void Initialize();
Result GetProfileList(nn::friends::AsyncContext* context, nn::friends::Profile* profiles, nn::account::Uid const &userID, nn::account::NetworkServiceAccountId const *accountIDs, s32 numAccounts);
class Profile
{
public:
Profile();
nn::account::NetworkServiceAccountId GetAccountId() const;
nn::account::Nickname& GetNickname() const;
bool IsValid() const;
Result GetProfileImageUrl(nn::friends::Url *, s32);
};
class AsyncContext
{
public:
AsyncContext();
~AsyncContext();
Result GetSystemEvent(nn::os::SystemEvent *);
Result GetResult() const;
};
};
};