mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-17 00:45:10 +00:00
44 lines
No EOL
1,017 B
C++
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;
|
|
};
|
|
};
|
|
}; |