SuperMarioOdysseyOnline/include/nn/friends.h

44 lines
1,017 B
C
Raw Normal View History

2022-06-16 21:33:18 +00:00
/**
* @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;
};
};
};