73 UPROPERTY(BlueprintReadOnly)
81 UPROPERTY(BlueprintReadOnly)
84 UPROPERTY(BlueprintReadOnly)
87 UPROPERTY(BlueprintReadOnly, Meta=(
DisplayName=
"Module Id"))
90 UPROPERTY(BlueprintReadOnly)
91 FString ModuleVersion;
93 UPROPERTY(BlueprintReadOnly)
96 UPROPERTY(BlueprintReadOnly)
99 UPROPERTY(BlueprintReadOnly)
102 UPROPERTY(BlueprintReadOnly)
105 UPROPERTY(BlueprintReadOnly)
106 FGuid CurrentSessionGuid;
108 UPROPERTY(BlueprintReadOnly)
110#pragma endregion PublicProperties
114 UPROPERTY(BlueprintReadOnly)
115 bool SessionInProgress;
117 UPROPERTY(BlueprintReadOnly)
118 bool WebSocketEnabled;
123 virtual void Initialize(FSubsystemCollectionBase& Collection)
override;
125 UFUNCTION(BlueprintCallable, Category =
"Apex|API")
128 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
131 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
134 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
135 bool IsWebSocketConnected();
137 UFUNCTION(BlueprintCallable, Category = "
Apex|API", meta = (Tooltip = "This function only needs to be called when a user has logged out."))
138 void ConnectWebSocketService();
140 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
141 void RequestAuthorizationCode();
143 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
146 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
149 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
152 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
153 bool FetchTopTen(FString Scenario,
int OrgUnit);
155 UFUNCTION(BlueprintCallable, Category = "
Apex|API", meta = (
DisplayName = "Fetch Top Ten By User"))
156 bool FetchTopTenByCurrentUser(FString Scenario);
158 UFUNCTION(BlueprintCallable, Category = "
Apex|API", meta=(
DisplayName = "Fetch Top Ten By User"))
159 bool FetchTopTenByUser(
int UserId, FString Scenario,
int OrgUnit);
161 UFUNCTION(BlueprintCallable, Category = "
Apex|API")
162 bool FetchTopTenByTimeRange(
float TimePriorToToday, FString Scenario,
int OrgUnit);
166#pragma region PrivateFunctions
167 bool FetchTopTen(
int UserId,
float TimePriorToToday, FString Scenario,
int OrgUnit);
169 void VerifyModuleAcess();
170 void SetupModuleSettings();
188#pragma endregion PrivateFunctions
192#pragma region PrivateVariables
196 FString AuthorizationToken;
198 TUniquePtr<ApexWebSocket> ApexSocket;
199#pragma endregion PrivateVariables
205 UPROPERTY(BlueprintAssignable, Category =
"Apex|Event")
206 FOnApexRequestComplete OnRequestComplete;
208 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
209 FOnApexRequestFail OnRequestFail;
211 FOnStaticApexRequestComplete OnStaticRequestComplete;
212 FOnStaticApexRequestFail OnStaticRequestFail;
215 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
216 FOnApexTopTenDataComplete OnFetchTopTenComplete;
218 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
219 FOnApexTopTenDataFail OnFetchTopTenFail;
221 FOnStaticApexTopTenDataComplete OnStaticFetchTopTenComplete;
223 FOnStaticApexTopTenDataFail OnStaticFetchTopTenFail;
226 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
227 FOnApexWebSocketConnected OnWebSocketConnected;
229 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
230 FOnApexWebSocketConnectFailed OnWebSocketConnectFailed;
232 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
233 FOnApexWebSocketDisconnected OnWebSocketDisconnected;
235 UPROPERTY(BlueprintAssignable, Category = "
Apex|
Event")
236 FOnApexAuthCodeRetrieved OnAuthorizationCodeRetrieved;
238 FOnStaticApexWebSocketConnected OnStaticWebSocketConnected;
240 FOnStaticApexWebSocketConnectFailed OnStaticWebSocketConnectFailed;
242 FOnStaticApexWebSocketDisconnected OnStaticWebSocketDisconnected;
244 FOnStaticApexAuthCodeRetrieved OnStaticAuthorizationCodeRetrieved;
245#pragma endregion Events