public static void Test1()
        {
            AppParams appParams = AdConfigurer.GetAppParams();

            Console.WriteLine("UserID:" + appParams.userId);
            Console.WriteLine("StartTime:" + appParams.startTime);
        }
 public static void Shutdown()
 {
     if (!isShutdownDone)
     {
         isShutdownDone = true;
         AdConfigurer.Shutdown();
     }
 }
 public static void Startup(String appId)
 {
     if (!isStartupDone)
     {
         isStartupDone = true;
         AdConfigurer.SetAppId(appId);
         AdConfigurer.Startup(new PlatformPCWindowsImpl());
         PlatformObjectsFactoryHolder.SetFactory(new PlatformObjectsFactoryUnity());
     }
 }
Ejemplo n.º 4
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            AdConfigurer.Startup(new PlatformImpl());
            PlatformVariableTest.Test1();

            /*AdListenerImplementation adListenerImplementation = new AdListenerImplementation();
             *          ImageTextureAd adClient = new ImageTextureAd (adListenerImplementation, "asdfadfd");
             *          adClient.LoadAds (2);
             * //AnalyticsWebManagerTest.Test1();*/
            PlatformObjectsFactoryHolder.SetFactory(new PlatformObjectsFactoryUnity());
            AdListenerImplementation adListener = new AdListenerImplementation();
            ImageTextureAdUnit       adUnit     = new ImageTextureAdUnit(adListener, "adsfd");

            adUnit.LoadAds(2);
            SystemInfoTest.TestHardwareInfo();
            //AnalyticsWebManagerTest.Test1();
            AdConfigurer.Shutdown();
            Console.ReadLine();
        }