初始提交: UE5.3项目基础框架
This commit is contained in:
74
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumIonClient/Profile.h
vendored
Normal file
74
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumIonClient/Profile.h
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace CesiumIonClient {
|
||||
|
||||
/**
|
||||
* @brief Information about the amount of storage available in a user's account.
|
||||
*/
|
||||
struct ProfileStorage final {
|
||||
/**
|
||||
* @brief The number of bytes currently being used by this account.
|
||||
*/
|
||||
int64_t used = 0;
|
||||
|
||||
/**
|
||||
* @brief The number of bytes available for additional asset uploads to this
|
||||
* account.
|
||||
*/
|
||||
int64_t available = 0;
|
||||
|
||||
/**
|
||||
* @brief The total number of bytes currently allowed to be used by this
|
||||
* account.
|
||||
*/
|
||||
int64_t total = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Contains of a Cesium ion user.
|
||||
*
|
||||
* @see CesiumIonConnection#me
|
||||
*/
|
||||
struct Profile final {
|
||||
/**
|
||||
* @brief The unique identifier for this account.
|
||||
*/
|
||||
int64_t id = -1;
|
||||
|
||||
/**
|
||||
* @brief The array of scopes available with this token.
|
||||
*/
|
||||
std::vector<std::string> scopes{};
|
||||
|
||||
/**
|
||||
* @brief The account username.
|
||||
*/
|
||||
std::string username{};
|
||||
|
||||
/**
|
||||
* @brief The primary email address associated with this account.
|
||||
*/
|
||||
std::string email{};
|
||||
|
||||
/**
|
||||
* @brief If true, the email address has been verified for this account.
|
||||
*/
|
||||
bool emailVerified = false;
|
||||
|
||||
/**
|
||||
* @brief A url to the profile image associated with this account.
|
||||
*/
|
||||
std::string avatar{};
|
||||
|
||||
/**
|
||||
* @brief Information about the amount of storage available in the user's
|
||||
* account.
|
||||
*/
|
||||
ProfileStorage storage{0, 0, 0};
|
||||
};
|
||||
|
||||
} // namespace CesiumIonClient
|
||||
Reference in New Issue
Block a user