using System; using System.Collections.Generic; using System.Linq; namespace UnityEngine.Purchasing.Security { /// /// Stub cross-platform receipt validator class for platforms not supported by this feature. /// Will always throw exceptions if used. /// public class CrossPlatformValidator { /// /// Constructs an instance and checks the validity of the certification keys /// which only takes input parameters for the supported platforms and uses a common bundle ID for Apple and GooglePlay. /// /// The GooglePlay public key. /// The Apple certification key. /// The bundle ID for all platforms. public CrossPlatformValidator(byte[] googlePublicKey, byte[] appleRootCert, string appBundleId) { throw new NotImplementedException(); } /// /// Constructs an instance and checks the validity of the certification keys /// which only takes input parameters for the supported platforms. /// /// The GooglePlay public key. /// The Apple certification key. /// The GooglePlay bundle ID. /// The Apple bundle ID. public CrossPlatformValidator(byte[] googlePublicKey, byte[] appleRootCert, string googleBundleId, string appleBundleId) { throw new NotImplementedException(); } /// /// Validates a receipt. /// /// The receipt to be validated. /// An array of receipts parsed from the validation process public IPurchaseReceipt[] Validate(string unityIAPReceipt) { throw new NotImplementedException(); } } }