|
- using System;
- using UnityEngine;
-
- namespace SUISS.Promo
- {
- [Serializable]
- public class SparkSocGame
- {
- public void Initialise(string refererLink, bool isInstalled, SparkSocGames.OpenAppInStoreDelegate openAppInStore)
- {
- this.refererLink = refererLink;
- this.IsInstalled = isInstalled;
- this.openAppInStore = openAppInStore;
- }
-
- public void SetAppIcon(Texture2D icon)
- {
- this.AppIcon = icon;
- }
-
- public void SetPromoImage(Texture2D image)
- {
- this.PromoImage = image;
- }
-
- public void SetBannerImage(Texture2D image)
- {
- this.BannerImage = image;
- }
-
- public void OpenInAppStore()
- {
- if (this.openAppInStore != null)
- {
- this.openAppInStore(this.AppId, this.downloadUrl, this.refererLink);
- }
- }
-
- public int Factor
- {
- get
- {
- return this.factor;
- }
- }
-
- public string DisplayName
- {
- get
- {
- return this.displayName;
- }
- }
-
- public string AppIconUrl
- {
- get
- {
- return this.appIconUrl;
- }
- }
-
- public string LargeImageUrl
- {
- get
- {
- return this.largeImageUrl;
- }
- }
-
- public string BannerUrl
- {
- get
- {
- return this.bannerUrl;
- }
- }
-
- public string AppId
- {
- get
- {
- return this.appId;
- }
- }
-
- public Texture2D AppIcon { get; private set; }
-
- public Texture2D PromoImage { get; private set; }
-
- public Texture2D BannerImage { get; private set; }
-
- public bool IsInstalled { get; private set; }
-
- public string PackageName
- {
- get
- {
- return this.packageName;
- }
- }
-
- public string ProductId
- {
- get
- {
- return this.productId;
- }
- }
-
- [SerializeField]
- private int factor;
-
- [SerializeField]
- private string packageName;
-
- [SerializeField]
- private string displayName;
-
- [SerializeField]
- private string appIconUrl;
-
- [SerializeField]
- private string largeImageUrl;
-
- [SerializeField]
- private string bannerUrl;
-
- [SerializeField]
- private string downloadUrl;
-
- [SerializeField]
- private string appId;
-
- [SerializeField]
- private string productId;
-
- private SparkSocGames.OpenAppInStoreDelegate openAppInStore;
-
- private string refererLink;
- }
- }
|