Navigation
API > API/Plugins > API/Plugins/ConcertClient > API/Plugins/ConcertClient/IConcertClient
Description
Get the specified session activities, ordered by Activity ID (ascending) from a live or archived session without being connected to it. The function is used to explore the history of a session, for example to implement the disaster recovery scenario. It is possible to get the total number of activities in a session using -1 as ActivityCount. The response will contain the last Activity and its ID. To get the N last activities, set ActivityCount = -N.
| Name | GetSessionActivities |
| Type | function |
| Header File | /Engine/Plugins/Developer/Concert/ConcertMain/Source/ConcertClient/Public/IConcertClient.h |
| Include Path | #include "IConcertClient.h" |
TFuture < FConcertAdmin_GetSessionActivitiesResponse > GetSessionActivities
(
const FGuid & ServerAdminEndpointId,
const FGuid & SessionId,
int64 FromActivityId,
int64 ActivityCount,
bool bIncludeDetails
) const
A future for FConcertAdmin_GetSessionActivitiesResponse which contains up to Abs(ActivityCount) activities or an error if it fails. The array of payload in the response can always be decoded as FConcertSyncActivity objects. If bIncludeDetails is true, 'package' and 'transaction' can be decoded respectively as FConcertSyncPackageActivity and FConcertSyncTransactionActivity, providing extra information. The transaction event will contains the full transaction data. The package event contains the package event meta data only.
Parameters
| Name | Remarks |
|---|---|
| ServerAdminEndpointId | The Id of the Concert server admin endpoint |
| SessionId | The Id of the session |
| FromActivityId | The first activity ID to fetch (1-based) if ActivityCount is positive. Ignored if ActivityCount is negative. |
| ActivityCount | If positive, request ActivityCount starting from FromActivityId. If negative, request the Abs(ActivityCount) last activities. |
| bIncludeDetails | If true, includes extra information for package and transaction activity types. See the return type for more info. |