Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.ModManager.FetchAllUserEvents

Jackson Wood edited this page Mar 25, 2019 · 5 revisions

ModManager.FetchAllUserEvents

public static void FetchAllUserEvents(int fromTimeStamp, int untilTimeStamp, Action<List<UserEvent>> onSuccess, Action<WebRequestError> onError);

Parameters

Name Description
fromTimeStamp Start of the time period to filter by (exclusively)
untilTimeStamp End of the time period to filter by (inclusively)
onSuccess Action to execute if the request succeeds
onError Action to execute if the request returns an error

Description

Fetches all user events for the authenticated user.

Primarily wraps APIClient.GetUserEvents providing a convenient interface for fetching all of the events that involve the authenticated user and the stored game id, as it automatically fetches each page sequentially until all have been received.

See also: ModIO.APIClient.GetUserEvents, ModIO.UserAuthenticationData

Clone this wiki locally