Struct: FPatreonUserInfo

//  PatreonUserInfo.h : 17

struct NBPATREONAPICLIENT_API FPatreonUserInfo;

Reflection-enabled

Specifiers:

  • BlueprintType

Contains basic information about a user obtained from the Patreon API. This is meant as a convenience to cover the information most applications might need(e.g.to display to the user their pledge status or to unlock specific content based on the tiers they've pledged to). If any information you need about a user is not included here, you can still extract that information manually from an API request or submit a feature request for this plugin to nbpsup@gmail.com


Properties

  • CanSeeNSFW

    public:
    bool CanSeeNSFW;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    Whether or not the user has enabled NSFW content on their Patreon profile
  • FirstName

    public:
    FString FirstName;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

  • FullName

    public:
    FString FullName;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

  • ImageURL

    public:
    FString ImageURL;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    URL of the user's avatar image
  • IsCreator

    public:
    bool IsCreator;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    Whether or not the current user is also the creator of the campaign.
  • LastName

    public:
    FString LastName;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

  • PatronStatus

    public:
    FString PatronStatus;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    Can be one of:
    • active_patron: They are currently subscribed to a campaign
    • declined_patron: They have attempted to subscribe, but payment failed!!
    • former_patron: They used to subscribe, but currently do not
    • null: They have never subscribed before
  • Tiers

    public:
    TArray<FPatreonTierInfo> Tiers;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    A list of all tiers this user is entitled to. In many cases this will include not just the specific tier they have pledged to, but also any lower tiers.
  • URL

    public:
    FString URL;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    URL of the user's profile
  • VanityName

    public:
    FString VanityName;
    

    Reflection-enabled

    Specifiers:

    • EditAnywhere
    • BlueprintReadWrite
    • Category = NBPatreonAPIClient|User Info

    If set, represents the user's preferred nickname

Constructors

  • FPatreonUserInfo

    //  PatreonUserInfo.h : 25
    
    public:
    FPatreonUserInfo();
    

    Empty constructor does not provide any default values.

  • FPatreonUserInfo

    //  PatreonUserInfo.h : 33
    
    public:
    FPatreonUserInfo(
        const FString& json
    );
    

    Constructs FPatreonUserInfo from a JSON string. Populates any fields it can find in the provided JSON. If the provided json string cannot be parsed for any reason, the result will be uninitialized.


    Arguments

    • json

      const FString& json
      

Methods

  • HasBenefit

    //  PatreonUserInfo.h : 50
    
    public:
    bool HasBenefit(
        const FString& benefitName
    ) const;
    

    Convenience method to check if this user is entitled to a particular benefit. Will check all tiers the user is pledged to.


    Arguments

    • benefitName

      const FString& benefitName
      

      Name of the benefit to check for, case-insensitive


    Returns

    • bool
      

      True if the user is entitled to the given benefit

  • HasTier

    //  PatreonUserInfo.h : 42
    
    public:
    bool HasTier(
        const FString& tierName
    ) const;
    

    Convenience method to check if this user has pledged to a specific tier


    Arguments

    • tierName

      const FString& tierName
      

      Name of the tier to check for, case-insensitive


    Returns

    • bool
      

      True if the user has pledged to the given tier

  • ParseTier

    //  PatreonUserInfo.h : 35
    
    public:
    FPatreonTierInfo ParseTier(
        const TSharedPtr<FJsonObject> tierEntry,
        const TSharedPtr<FJsonObject> tierattributes
    );
    

    Arguments


    Returns

    • FPatreonTierInfo
      






For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com