Skip to content

RHAPI_Restriction

Summary

MembersDescriptions
struct FRHAPI_RestrictionRestriction applied to a player.

struct FRHAPI_Restriction

struct FRHAPI_Restriction
: public FRHAPI_Model

Restriction applied to a player.

Summary

MembersDescriptions
public ERHAPI_RestrictionType TypeType of restriction.
public FString Reason_OptionalReason the restriction was applied.
public bool Reason_IsSettrue if Reason_Optional has been set to a value
public FDateTime Expiration_OptionalDate the restriction expires. Null means the restriction is permanent.
public bool Expiration_IsSettrue if Expiration_Optional has been set to a value
public virtual bool FromJson(const TSharedPtr< FJsonValue > & JsonValue)Fills this object with data from the passed in JSON.
public virtual void WriteJson(TSharedRef< TJsonWriter<>> & Writer) constWrites the data from this object into the specified JSON Writer stream.
public inline ERHAPI_RestrictionType & GetType()Gets the value of Type.
public inline const ERHAPI_RestrictionType & GetType() constGets the value of Type.
public inline void SetType(ERHAPI_RestrictionType NewValue)Sets the value of Type.
public inline FString & GetReason()Gets the value of Reason_Optional, regardless of it having been set.
public inline const FString & GetReason() constGets the value of Reason_Optional, regardless of it having been set.
public inline const FString & GetReason(const FString & DefaultValue) constGets the value of Reason_Optional, if it has been set, otherwise it returns DefaultValue.
public inline bool GetReason(FString & OutValue) constFills OutValue with the value of Reason_Optional and returns true if it has been set, otherwise returns false.
public inline FString * GetReasonOrNull()Returns a pointer to Reason_Optional, if it has been set, otherwise returns nullptr.
public inline const FString * GetReasonOrNull() constReturns a pointer to Reason_Optional, if it has been set, otherwise returns nullptr.
public inline void SetReason(FString NewValue)Sets the value of Reason_Optional and also sets Reason_IsSet to true.
public inline void ClearReason()Clears the value of Reason_Optional and sets Reason_IsSet to false.
public inline FDateTime & GetExpiration()Gets the value of Expiration_Optional, regardless of it having been set.
public inline const FDateTime & GetExpiration() constGets the value of Expiration_Optional, regardless of it having been set.
public inline const FDateTime & GetExpiration(const FDateTime & DefaultValue) constGets the value of Expiration_Optional, if it has been set, otherwise it returns DefaultValue.
public inline bool GetExpiration(FDateTime & OutValue) constFills OutValue with the value of Expiration_Optional and returns true if it has been set, otherwise returns false.
public inline FDateTime * GetExpirationOrNull()Returns a pointer to Expiration_Optional, if it has been set, otherwise returns nullptr.
public inline const FDateTime * GetExpirationOrNull() constReturns a pointer to Expiration_Optional, if it has been set, otherwise returns nullptr.
public inline void SetExpiration(FDateTime NewValue)Sets the value of Expiration_Optional and also sets Expiration_IsSet to true.
public inline void ClearExpiration()Clears the value of Expiration_Optional and sets Expiration_IsSet to false.

Members

public ERHAPI_RestrictionType Type

Type of restriction.


#### `public FString `[`Reason_Optional`](#structFRHAPI__Restriction_1acb07c004735610b31b0326e85867841f)

Reason the restriction was applied.


#### `public bool `[`Reason_IsSet`](#structFRHAPI__Restriction_1a33efc2fe715a3c3ee06ec148ab82a239)

true if Reason_Optional has been set to a value


#### `public FDateTime `[`Expiration_Optional`](#structFRHAPI__Restriction_1aa9e2bfa5e8c955b12b209034e64c5e57)

Date the restriction expires. Null means the restriction is permanent.


#### `public bool `[`Expiration_IsSet`](#structFRHAPI__Restriction_1ae0bb6d1bcce99870a53bd773b2740cf2)

true if Expiration_Optional has been set to a value


#### `public virtual bool `[`FromJson`](#structFRHAPI__Restriction_1a5a03667bdf37bfdf85209ed872024579)`(const TSharedPtr< FJsonValue > & JsonValue)`

Fills this object with data from the passed in JSON.

Parameters

  • JsonValue Data from the API call.

Returns

true if parsing of the JSON data was successful.


#### `public virtual void `[`WriteJson`](#structFRHAPI__Restriction_1ad9b9b26c7c642e5d5c0d08fb4625a43f)`(TSharedRef< TJsonWriter<>> & Writer) const`

Writes the data from this object into the specified JSON Writer stream.

Parameters

  • Writer JSON Writer stream to push .

#### `public inline ERHAPI_RestrictionType & `[`GetType`](#structFRHAPI__Restriction_1a3b9f455e0c867bfd7754103ecc9e7ba7)`()`

Gets the value of Type.


#### `public inline const ERHAPI_RestrictionType & `[`GetType`](#structFRHAPI__Restriction_1a591e500a3661de66229c5f1ba7724435)`() const`

Gets the value of Type.


#### `public inline void `[`SetType`](#structFRHAPI__Restriction_1aa8c1f024b4049bac6c1241a6cdaeddad)`(ERHAPI_RestrictionType NewValue)`

Sets the value of Type.


#### `public inline FString & `[`GetReason`](#structFRHAPI__Restriction_1a182cbbe5278382533d8c8ba1929a35bf)`()`

Gets the value of Reason_Optional, regardless of it having been set.


#### `public inline const FString & `[`GetReason`](#structFRHAPI__Restriction_1a531a35039b7dec535cd8ad7c84d066bb)`() const`

Gets the value of Reason_Optional, regardless of it having been set.


#### `public inline const FString & `[`GetReason`](#structFRHAPI__Restriction_1afe82ab3fd779eb1d73b537f733ba6bc0)`(const FString & DefaultValue) const`

Gets the value of Reason_Optional, if it has been set, otherwise it returns DefaultValue.


#### `public inline bool `[`GetReason`](#structFRHAPI__Restriction_1a560c7de16a3a9e8ae18c7f200d34104f)`(FString & OutValue) const`

Fills OutValue with the value of Reason_Optional and returns true if it has been set, otherwise returns false.


#### `public inline FString * `[`GetReasonOrNull`](#structFRHAPI__Restriction_1a580cc0f156b36849c2bdf786383a9b65)`()`

Returns a pointer to Reason_Optional, if it has been set, otherwise returns nullptr.


#### `public inline const FString * `[`GetReasonOrNull`](#structFRHAPI__Restriction_1a6b62ccb570a792b511846846be454f02)`() const`

Returns a pointer to Reason_Optional, if it has been set, otherwise returns nullptr.


#### `public inline void `[`SetReason`](#structFRHAPI__Restriction_1ac50ac97764b8e3d0c121c7f8b22024e7)`(FString NewValue)`

Sets the value of Reason_Optional and also sets Reason_IsSet to true.


#### `public inline void `[`ClearReason`](#structFRHAPI__Restriction_1a7d50b5b72086bb552c7a73c2acd0dd2c)`()`

Clears the value of Reason_Optional and sets Reason_IsSet to false.


#### `public inline FDateTime & `[`GetExpiration`](#structFRHAPI__Restriction_1a9de96ed60891e7a52aff0cb19582fe96)`()`

Gets the value of Expiration_Optional, regardless of it having been set.


#### `public inline const FDateTime & `[`GetExpiration`](#structFRHAPI__Restriction_1a41500509f91eaaa0659b1d40c038eb0b)`() const`

Gets the value of Expiration_Optional, regardless of it having been set.


#### `public inline const FDateTime & `[`GetExpiration`](#structFRHAPI__Restriction_1aadf3d0a157498122a8794f504bbcf770)`(const FDateTime & DefaultValue) const`

Gets the value of Expiration_Optional, if it has been set, otherwise it returns DefaultValue.


#### `public inline bool `[`GetExpiration`](#structFRHAPI__Restriction_1a0fc25026a69be9341c05a89894121eec)`(FDateTime & OutValue) const`

Fills OutValue with the value of Expiration_Optional and returns true if it has been set, otherwise returns false.


#### `public inline FDateTime * `[`GetExpirationOrNull`](#structFRHAPI__Restriction_1a866067dfa68137f91940de9ab1499d40)`()`

Returns a pointer to Expiration_Optional, if it has been set, otherwise returns nullptr.


#### `public inline const FDateTime * `[`GetExpirationOrNull`](#structFRHAPI__Restriction_1a09ebfb37388cad70e5d94da468bf3c08)`() const`

Returns a pointer to Expiration_Optional, if it has been set, otherwise returns nullptr.


#### `public inline void `[`SetExpiration`](#structFRHAPI__Restriction_1a6ac12c65ddd67ce353226d6acf29e559)`(FDateTime NewValue)`

Sets the value of Expiration_Optional and also sets Expiration_IsSet to true.


#### `public inline void `[`ClearExpiration`](#structFRHAPI__Restriction_1a0d5fdc4f552874f065336b803cef5eb3)`()`

Clears the value of Expiration_Optional and sets Expiration_IsSet to false.