Pico Unreal Platform SDK
UOnlinePicoSportFunction Class Reference

OnlinePicoSport Blueprint Function class. More...

#include <Pico_Sport.h>

Static Public Member Functions

static bool GetDailySummary (UObject *WorldContextObject, int64 BeginTime, int64 EndTime, FGetDailySummary InGetDailySummaryDelegate)
 Gets a summary of the user's daily exercise data for a specified period within the recent 3 months. For example, if the period you set is between 2022/08/16 and 2022/08/18, the exercise data generated on 08/16, 08/17, and 08/18 will be returned. More...
 
static bool GetSummary (UObject *WorldContextObject, int64 BeginTime, int64 EndTime, FGetSummary InGetSummaryDelegate)
 Gets a summary of the user's exercise data for a specified duration within today. The duration should not exceed 24 hours. More...
 
static bool GetSportUserInfo (UObject *WorldContextObject, FGetSportUserInfo InGetSportUserInfoDelegate)
 Gets a user's basic information and exercise plan. More...
 
static int64 ConvertDateTimeToInt64 (FDateTime InDataTime)
 Converts FDateTime to int64. More...
 
static FDateTime ConvertInt64ToDateTime (int64 InValue)
 Converts int64 to FDateTime. More...
 

Detailed Description

OnlinePicoSport Blueprint Function class.

Member Function Documentation

◆ ConvertDateTimeToInt64()

int64 ConvertDateTimeToInt64 ( FDateTime  InDataTime)
static

Converts FDateTime to int64.

Note
BlueprintPure function.
Parameters
InDataTimeThe FDateTime input.
Returns
The int64 result of the FDateTime input.

◆ ConvertInt64ToDateTime()

FDateTime ConvertInt64ToDateTime ( int64  InValue)
static

Converts int64 to FDateTime.

Note
BlueprintPure function.
Parameters
InValueThe int64 input.
Returns
The FDateTime result of the int64 input.

◆ GetDailySummary()

bool GetDailySummary ( UObject *  WorldContextObject,
int64  BeginTime,
int64  EndTime,
FGetDailySummary  InGetDailySummaryDelegate 
)
static

Gets a summary of the user's daily exercise data for a specified period within the recent 3 months. For example, if the period you set is between 2022/08/16 and 2022/08/18, the exercise data generated on 08/16, 08/17, and 08/18 will be returned.

Note
Available in Mainland China only.
Parameters
WorldContextObjectUsed to get the information about the current world.
BeginTimeA DateTime struct(FDateTime(int64 InTicks).GetTicks()) defining the begin time of the period.
EndTimeA DateTime struct(FDateTime(int64 InTicks).GetTicks()) defining the end time of the period.
InGetDailySummaryDelegateWill be executed when the request has been completed. Delegate will contain the requested object class.
Returns
Bool:
  • true: success
  • false: failure

◆ GetSportUserInfo()

bool GetSportUserInfo ( UObject *  WorldContextObject,
FGetSportUserInfo  InGetSportUserInfoDelegate 
)
static

Gets a user's basic information and exercise plan.

Note
Available in Mainland China only.
Parameters
WorldContextObjectUsed to get the information about the current world.
InGetSportUserInfoDelegateWill be executed when the request has been completed. Delegate will contain the requested object class.
Returns
Bool:
  • true: success
  • false: failure

◆ GetSummary()

bool GetSummary ( UObject *  WorldContextObject,
int64  BeginTime,
int64  EndTime,
FGetSummary  InGetSummaryDelegate 
)
static

Gets a summary of the user's exercise data for a specified duration within today. The duration should not exceed 24 hours.

Note
Available in Mainland China only.
Parameters
WorldContextObjectUsed to get the information about the current world.
BeginTimeA DateTime struct(FDateTime(int64 InTicks).GetTicks()) defining the begin time of the period.
EndTimeA DateTime struct(FDateTime(int64 InTicks)GetTicks()) defining the end time of the period.
InGetSummaryDelegateWill be executed when the request has been completed. Delegate will contain the requested object class.
Returns
Bool:
  • true: success
  • false: failure