Example #1
0
        public static Foo[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaFoo==null)
                javaUnityApplicasaFoo = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaFoo");

                AndroidJavaObject[] bigArray = javaUnityApplicasaFoo.CallStatic<AndroidJavaObject[]>("ApplicasaFooGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            Foo[] fooInner= null;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                Foo[] footemp = new Foo[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    footemp[j] = new Foo(tempObj.GetRawObject(),tempObj);
                }
                if (fooInner == null)
                    fooInner = footemp;
                else{
                   Foo[] firstOne = fooInner;
                    fooInner = new Foo[firstOne.Length+footemp.Length];
                    firstOne.CopyTo(fooInner,0);
                    footemp.CopyTo(fooInner,firstOne.Length);
                }

            }
            return fooInner;
        }
Example #2
0
 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback)
 {
     callback(true,new Error(),new ColorsArray());
 }
Example #3
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Colors[]  colorsInner = new Colors[0];
         finalColors = colorsInner;
 }
Example #4
0
 public static int UpdateLocalStorage(Query query, QueryKind queryKind)
 {
     return ApplicasaColorsUpdateLocalStorage((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
 }
Example #5
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaColors==null)
                javaUnityApplicasaColors = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaColors");

                AndroidJavaObject[] bigArray = javaUnityApplicasaColors.CallStatic<AndroidJavaObject[]>("ApplicasaColorsGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            Colors[] colorsInner= null;;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                Colors[] colorstemp = new Colors[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    colorstemp[j] = new Colors(tempObj.GetRawObject(),tempObj);
                }
                if (colorsInner == null)
                    colorsInner = colorstemp;
                else{
                   Colors[] firstOne = colorsInner;
                    colorsInner = new Colors[firstOne.Length+colorstemp.Length];
                    firstOne.CopyTo(colorsInner,0);
                    colorstemp.CopyTo(colorsInner,firstOne.Length);
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalColors = colorsInner;
        }
Example #6
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Chat[]  chatInner = new Chat[0];
         finalChat = chatInner;
 }
Example #7
0
 public static Colors[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
 {
     return GetColorsArray(ApplicasaColorsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
 }
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaDataManager==null)
                javaUnityApplicasaDataManager = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaDataManager");

                AndroidJavaObject[] bigArray = javaUnityApplicasaDataManager.CallStatic<AndroidJavaObject[]>("ApplicasaDataManagerGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            DataManager[] dataManagerInner= null;;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                DataManager[] dataManagertemp = new DataManager[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    dataManagertemp[j] = new DataManager(tempObj.GetRawObject(),tempObj);
                }
                if (dataManagerInner == null)
                    dataManagerInner = dataManagertemp;
                else{
                   DataManager[] firstOne = dataManagerInner;
                    dataManagerInner = new DataManager[firstOne.Length+dataManagertemp.Length];
                    firstOne.CopyTo(dataManagerInner,0);
                    dataManagertemp.CopyTo(dataManagerInner,firstOne.Length);
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalDataManager = dataManagerInner;
        }
 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetDataManagerArrayFinished callback)
 {
     callback(true,new Error(),new DataManagerArray());
 }
Example #10
0
 public static DataManager[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
 {
     return GetDataManagerArray(ApplicasaDataManagerGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
 }
Example #11
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     DataManagerArray dataManagerArray = ApplicasaDataManagerGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
     finalDataManager = GetDataManagerArray(dataManagerArray);
     yield return new WaitForSeconds(0.1f);
 }
Example #12
0
 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetDataManagerArrayFinished callback)
 {
     ApplicasaDataManagerGetArrayWithQuery((query != null ? query.innerQuery : IntPtr.Zero), queryKind, callback);
 }
Example #13
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Foo[]  fooInner = new Foo[0];
         finalFoo = fooInner;
 }
Example #14
0
        public static Foo[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Foo[] foo = new Foo[0];

            return foo;
        }
Example #15
0
        public static Chat[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaChat==null)
                javaUnityApplicasaChat = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaChat");

                AndroidJavaObject[] bigArray = javaUnityApplicasaChat.CallStatic<AndroidJavaObject[]>("ApplicasaChatGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            Chat[] chatInner= null;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                Chat[] chattemp = new Chat[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    chattemp[j] = new Chat(tempObj.GetRawObject(),tempObj);
                }
                if (chatInner == null)
                    chatInner = chattemp;
                else{
                   Chat[] firstOne = chatInner;
                    chatInner = new Chat[firstOne.Length+chattemp.Length];
                    firstOne.CopyTo(chatInner,0);
                    chattemp.CopyTo(chatInner,firstOne.Length);
                }

            }
            return chatInner;
        }
Example #16
0
        public static DataManager[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            DataManager[] dataManager = new DataManager[0];

            return dataManager;
        }
Example #17
0
        public static Chat[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Chat[] chat = new Chat[0];

            return chat;
        }
Example #18
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         DataManager[]  dataManagerInner = new DataManager[0];
         finalDataManager = dataManagerInner;
 }
Example #19
0
 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback)
 {
     ApplicasaColorsGetArrayWithQuery((query != null ? query.innerQuery : IntPtr.Zero), queryKind, callback);
 }
Example #20
0
 public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
 {
     return GetGameVArray(ApplicasaGameVGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
 }
Example #21
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     ColorsArray colorsArray = ApplicasaColorsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
     finalColors = GetColorsArray(colorsArray);
     yield return new WaitForSeconds(0.1f);
 }
Example #22
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     GameVArray gameVArray = ApplicasaGameVGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
     finalGameV = GetGameVArray(gameVArray);
     yield return new WaitForSeconds(0.1f);
 }
Example #23
0
 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback)
 {
     if(javaUnityApplicasaColors==null)
         javaUnityApplicasaColors = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaColors");
     int uniqueActionID=Core.currentCallbackID;
     Core.currentCallbackID++;
     setGetObjectArrayFinished(callback, uniqueActionID);
     javaUnityApplicasaColors.CallStatic("ApplicasaColorsGetArrayWithQuery", query.innerQueryJavaObject, (int)queryKind, uniqueActionID);
 }
Example #24
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaGameV==null)
                javaUnityApplicasaGameV = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaGameV");

                AndroidJavaObject[] bigArray = javaUnityApplicasaGameV.CallStatic<AndroidJavaObject[]>("ApplicasaGameVGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind);

            GameV[] gameVInner= null;;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];

                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());
                GameV[] gameVtemp = new GameV[InnerArray.Length];
                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    gameVtemp[j] = new GameV(tempObj.GetRawObject(),tempObj);
                }
                if (gameVInner == null)
                    gameVInner = gameVtemp;
                else{
                   GameV[] firstOne = gameVInner;
                    gameVInner = new GameV[firstOne.Length+gameVtemp.Length];
                    firstOne.CopyTo(gameVInner,0);
                    gameVtemp.CopyTo(gameVInner,firstOne.Length);
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalGameV = gameVInner;
        }
Example #25
0
        public static int UpdateLocalStorage(Query query, QueryKind queryKind)
        {
            if(javaUnityApplicasaColors==null)
                javaUnityApplicasaColors = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaColors");

                int count = javaUnityApplicasaColors.CallStatic<int>("ApplicasaColorsUpdateLocalStorage", query.innerQueryJavaObject, (int)queryKind);

                return count;
        }
Example #26
0
        public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            GameV[] gameV = new GameV[0];

            return gameV;
        }
Example #27
0
        public static Colors[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            Colors[] colors = new Colors[0];

            return colors;
        }
Example #28
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         GameV[]  gameVInner = new GameV[0];
         finalGameV = gameVInner;
 }
Example #29
0
 public static int UpdateLocalStorage(Query query, QueryKind queryKind)
 {
     return -1;
 }
Example #30
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     FooArray fooArray = ApplicasaFooGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
     finalFoo = GetFooArray(fooArray);
     yield return new WaitForSeconds(0.1f);
 }