mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-16 13:34:19 +00:00
Use mintaka shared libraries (#1)
* Add libhv and test http client * Remove cpp-httplib * Update premake5.lua * Update client.cpp * Update premake5.lua * Add more windows libs * Use mintaka http client
This commit is contained in:
46
include/tribufu/users/profile.h
Normal file
46
include/tribufu/users/profile.h
Normal file
@ -0,0 +1,46 @@
|
||||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <tribufu/prelude.h>
|
||||
|
||||
namespace tribufu
|
||||
{
|
||||
enum class UserType
|
||||
{
|
||||
User,
|
||||
Bot,
|
||||
Org,
|
||||
};
|
||||
|
||||
class TRIBUFU_API Profile
|
||||
{
|
||||
private:
|
||||
uint64_t id;
|
||||
std::string uuid;
|
||||
std::string name;
|
||||
std::string display_name;
|
||||
UserType type;
|
||||
uint64_t public_flags;
|
||||
bool verified;
|
||||
uint32_t level;
|
||||
double experience;
|
||||
bool public_birthday;
|
||||
double points;
|
||||
std::string location;
|
||||
std::string photo_url;
|
||||
std::string banner_url;
|
||||
std::string last_online;
|
||||
std::string biography;
|
||||
uint32_t view_count;
|
||||
std::string created;
|
||||
std::string updated;
|
||||
|
||||
public:
|
||||
Profile();
|
||||
Profile(json data);
|
||||
~Profile();
|
||||
|
||||
json to_json();
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user