logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementSdkAcquisition

    Where one storefront SDK comes from, and whether it can simply be installed or has to be granted.

    Inheritance
    object
    AchievementSdkAcquisition
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Achievements.Infrastructure.Editor.Platforms
    Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
    Syntax
    public sealed class AchievementSdkAcquisition
    Remarks

    Split out of AchievementSdkManifest because these three travel together and mean nothing apart: the name to ask for is only useful with the place to ask, and both read differently depending on whether anyone is allowed to hand the SDK over. Keeping them as one argument also stops the manifest's constructor growing a tail of same-typed strings a caller can transpose without the compiler noticing.

    Constructors

    AchievementSdkAcquisition(string, bool, string)

    Describes how one storefront SDK is obtained.

    Declaration
    public AchievementSdkAcquisition(string packageId, bool isRedistributable, string obtainedFrom)
    Parameters
    Type Name Description
    string packageId

    What to ask for: a package name, or the programme that grants the SDK.

    bool isRedistributable

    Whether the SDK can simply be installed, as opposed to being granted.

    string obtainedFrom

    Where the SDK comes from, as a URL the reader can open.

    Properties

    IsRedistributable

    Declaration
    public bool IsRedistributable { get; }
    Property Value
    Type Description
    bool

    Whether the SDK can simply be installed, as opposed to being granted under a vendor agreement.

    ObtainedFrom

    Declaration
    public string ObtainedFrom { get; }
    Property Value
    Type Description
    string

    Where the SDK comes from, as a URL the reader can open.

    PackageId

    Declaration
    public string PackageId { get; }
    Property Value
    Type Description
    string

    What to ask for: a package name, or the name of the programme that grants the SDK.

    Methods

    GrantedByVendor(string, string)

    Describes an SDK granted under a vendor or platform-holder agreement.

    Declaration
    public static AchievementSdkAcquisition GrantedByVendor(string packageId, string obtainedFrom)
    Parameters
    Type Name Description
    string packageId

    The programme or download that grants it.

    string obtainedFrom

    Where it is requested.

    Returns
    Type Description
    AchievementSdkAcquisition

    The acquisition record.

    Installable(string, string)

    Describes an SDK anyone may install.

    Declaration
    public static AchievementSdkAcquisition Installable(string packageId, string obtainedFrom)
    Parameters
    Type Name Description
    string packageId

    The package name.

    string obtainedFrom

    Where it is published.

    Returns
    Type Description
    AchievementSdkAcquisition

    The acquisition record.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved