Limo
A simple mod manager
Loading...
Searching...
No Matches
mod.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <chrono>
9#include <json/json.h>
10#include <string>
11
12
16namespace nexus
17{
21class Mod
22{
23public:
25 Mod() = default;
31 Mod(const std::string& http_body);
37 Mod(const Json::Value& json_body);
38
40 std::string name;
42 std::string summary;
44 std::string description;
46 std::string picture_url;
52 long uid;
54 long mod_id;
56 long game_id;
60 std::string domain_name;
64 std::string version;
68 std::time_t created_time;
70 std::time_t updated_time;
72 std::string author;
74 std::string uploaded_by;
80 std::string status;
88 std::string user_name;
90 std::string endorsement_status;
91
92private:
98 void init(const Json::Value& json_body);
99};
100}
std::string user_name
Name of the uploader.
Definition mod.h:88
std::string uploaded_users_profile_url
URL to the NexusMods account which uploaded the mod.
Definition mod.h:76
bool allow_rating
If true: Mod can be rated.
Definition mod.h:58
void init(const Json::Value &json_body)
Initializes all members from the given http response body in json form generated through an API reque...
Definition mod.cpp:24
long mod_downloads
Total number of downloads for the mod.
Definition mod.h:48
Mod(const Json::Value &json_body)
Constructor. Initializes all members from the given http response body in json form generated through...
std::string summary
A summary of the mods contents.
Definition mod.h:42
bool contains_adult_content
True if the mod contains adult content.
Definition mod.h:78
long uid
Purpose unknown.
Definition mod.h:52
std::time_t created_time
Timestamp for when the mod was first uploaded to NexusMods.
Definition mod.h:68
long user_member_group_id
A group id for the uploader.
Definition mod.h:86
long endorsement_count
Number of endorsements of the mod.
Definition mod.h:66
std::string domain_name
Name of the NexusMods domain containing the mod.
Definition mod.h:60
std::string author
Name of the mods author.
Definition mod.h:72
std::string name
Name of the mod.
Definition mod.h:40
long game_id
Id of the NexusMods domain containing the mod.
Definition mod.h:56
long category_id
Id of the NexusMods mod category for the mod.
Definition mod.h:62
long user_member_id
User id of the uploader.
Definition mod.h:84
std::string version
Most recent mod version.
Definition mod.h:64
std::string endorsement_status
Endorsement status of the mod for the account used to fetch the mod data.
Definition mod.h:90
std::string status
The current status of the mod, e.g. Published.
Definition mod.h:80
std::time_t updated_time
Timestamp for when the mod was first last updated.
Definition mod.h:70
bool available
True if the mod is available........
Definition mod.h:82
std::string picture_url
URL of the main image representing the mod.
Definition mod.h:46
std::string uploaded_by
Name of the mod uploader.
Definition mod.h:74
long mod_unique_downloads
Total number of unique downloads for the mod.
Definition mod.h:50
std::string description
The long form description of the mod.
Definition mod.h:44
Mod()=default
Default constructor.
long mod_id
NexusMods mod id.
Definition mod.h:54
The nexus namespace contains structs and functions needed for accessing the NexusMods API.
Definition api.h:18