Contains data for a file on NexusMods.
More...
#include <file.h>
|
| File (const std::string &http_body) |
| Constructor. Initializes all members from the given http response body generated through an API request.
|
|
| File (const Json::Value &json_body) |
| Constructor. Initializes all members from the given http response body in json form generated through an API request.
|
|
| File ()=default |
| Default constructor.
|
|
|
long | id_0 |
| The file id.
|
|
long | id_1 |
| The id of the domain containing mod to which the file belongs.
|
|
long | uid |
| Purpose unknown.
|
|
long | file_id |
| The file id.
|
|
std::string | name |
| The name of the actual file on disk.
|
|
std::string | version |
| The files version.
|
|
long | category_id |
| Id of the category to which the file belongs.
|
|
std::string | category_name |
| Name of the category to which the file belongs, e.g. MAIN.
|
|
bool | is_primary |
| Purpose unknown.
|
|
long | size |
| Size of the file in KibiBytes.
|
|
std::string | file_name |
| The files display name-.
|
|
std::time_t | uploaded_time |
| Timestamp for when the file was uploaded to NexusMods.
|
|
std::string | mod_version |
| Mod version to which the file belongs.
|
|
std::string | external_virus_scan_url |
| Optional: The URL of a virus scanning website (like virustotal.com) for this file.
|
|
std::string | description |
| The description if the file.
|
|
long | size_kb |
| Size of the file in KibiBytes.
|
|
long | size_in_bytes |
| Size of the file in Bytes.
|
|
std::string | changelog_html |
| The changelog if the file.
|
|
std::string | content_preview_link |
| A URL of a NexusMods site showing a preview of the files contents.
|
|
|
void | init (const Json::Value &json_body) |
| Initializes all members from the given http response body in json form generated through an API request.
|
|
Contains data for a file on NexusMods.
◆ File() [1/2]
File::File |
( |
const std::string & | http_body | ) |
|
Constructor. Initializes all members from the given http response body generated through an API request.
- Parameters
-
http_body | The http response body. |
◆ File() [2/2]
File::File |
( |
const Json::Value & | json_body | ) |
|
Constructor. Initializes all members from the given http response body in json form generated through an API request.
- Parameters
-
http_body | The http response body in json form. |
◆ init()
void File::init |
( |
const Json::Value & | json_body | ) |
|
|
private |
Initializes all members from the given http response body in json form generated through an API request.
- Parameters
-
http_body | The http response body in json form. |
The documentation for this class was generated from the following files:
- src/core/nexus/file.h
- src/core/nexus/file.cpp