コード例 #1
0
ファイル: Apprien.cs プロジェクト: phzfi/ApprienUnitySDK
 /// <summary>
 /// Initializes a new instance of the <see cref="ApprienManager" /> class.
 /// </summary>
 /// <param name="gamePackageName">The package name of the game. Usually Application.identifier</param>
 /// <param name="integrationType">Store integration, e.g. GooglePlayStore, AppleAppStore.</param>
 /// <param name="token">Token, retrieved from the Apprien Dashboard.</param>
 public ApprienManager(
     string gamePackageName,
     ApprienIntegrationType integrationType,
     string token
     )
 {
     GamePackageName = gamePackageName;
     IntegrationType = integrationType;
     Token           = token;
 }
コード例 #2
0
        /// <summary>
        /// Convert the ApprienIntegrationType enum into a resource URI that gets passed to the Apprien backend.
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string GetIntegrationUri(ApprienIntegrationType type)
        {
            switch (type)
            {
            case ApprienIntegrationType.GooglePlayStore:
                return("google");

            case ApprienIntegrationType.AppleAppStore:
                return("apple");
            }

            return("unknown");
        }