Skip to content

Commit

Permalink
Merge pull request #154 from ai-zen/feature/ugc-result
Browse files Browse the repository at this point in the history
Add `time_added_to_user_list` and `visibility` for ugc QueryResult.
  • Loading branch information
Noxime authored Feb 7, 2024
2 parents a204e81 + 6c07b55 commit 1ffb361
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ugc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,8 @@ impl<'a> QueryResults<'a> {
owner: SteamId(raw_details.m_ulSteamIDOwner),
time_created: raw_details.m_rtimeCreated,
time_updated: raw_details.m_rtimeUpdated,
time_added_to_user_list: raw_details.m_rtimeAddedToUserList,
visibility: raw_details.m_eVisibility.into(),
banned: raw_details.m_bBanned,
accepted_for_use: raw_details.m_bAcceptedForUse,
url: CStr::from_ptr(raw_details.m_rgchURL.as_ptr())
Expand Down Expand Up @@ -1777,6 +1779,9 @@ pub struct QueryResult {
pub time_created: u32,
/// Time updated in unix epoch seconds format
pub time_updated: u32,
/// Time when the user added the published item to their list (not always applicable), provided in Unix epoch format (time since Jan 1st, 1970).
pub time_added_to_user_list: u32,
pub visibility: PublishedFileVisibility,
pub banned: bool,
pub accepted_for_use: bool,
pub tags: Vec<String>,
Expand Down

0 comments on commit 1ffb361

Please sign in to comment.