Beispiel #1
0
        public static IEnumerator GetChatArrayIEnumerator(ChatArray chatArray)
        {
            yield return(new WaitForSeconds(0.2f));

            Chat[] chatInner = new Chat[0];
            finalChat = chatInner;
        }
Beispiel #2
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            ChatArray chatArray = ApplicasaChatGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind);

            finalChat = GetChatArray(chatArray);
            yield return(new WaitForSeconds(0.1f));
        }
Beispiel #3
0
        public static Chat[] GetChatArray(ChatArray chatArray)
        {
            Chat[] chats = new Chat[chatArray.ArraySize];

            for (int i = 0; i < chatArray.ArraySize; i++)
            {
                IntPtr newPtr = Marshal.ReadIntPtr(chatArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                chats[i] = new Chat(newPtr);
            }
            return(chats);
        }
Beispiel #4
0
        public static Chat[] GetChatArray(ChatArray chatArray)
        {
            Chat[] chatInner             = new Chat[chatArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(chatArray.Array);

            int count = 0;

            for (int i = 0; i < bigArray.Length; i++)
            {
                AndroidJavaObject   tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray     = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0; j < InnerArray.Length; j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    chatInner[count] = new Chat(tempObj.GetRawObject(), tempObj);
                    count++;
                }
            }
            return(chatInner);
        }
Beispiel #5
0
        public static IEnumerator GetChatArrayIEnumerator(ChatArray chatArray)
        {
            Chat[] chatInner             = new Chat[chatArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(chatArray.Array);

            int count = 0;

            for (int i = 0; i < bigArray.Length; i++)
            {
                AndroidJavaObject   tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray     = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0; j < InnerArray.Length; j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    chatInner[count] = new Chat(tempObj.GetRawObject(), tempObj);
                    count++;
                }
                yield return(new WaitForSeconds(0.2f));
            }
            finalChat = chatInner;
        }
Beispiel #6
0
 public static IEnumerator GetChatArrayIEnumerator(ChatArray chatArray)
 {
     yield return new WaitForSeconds(0.2f);
     Chat[]  chatInner = new Chat[0];
     finalChat = chatInner;
 }
Beispiel #7
0
        public static IEnumerator GetChatArrayIEnumerator(ChatArray chatArray)
        {
            Chat[] chatInner = new Chat[chatArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(chatArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    chatInner[count] = new Chat(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalChat = chatInner;
        }
Beispiel #8
0
 public static IEnumerator GetChatArrayIEnumerator(ChatArray chatArray)
 {
     finalChat = GetChatArray(chatArray);
     yield return new WaitForSeconds(0.1f);
 }
Beispiel #9
0
 public static Chat[] GetChatArray(ChatArray chatArray)
 {
     Chat[] chats = new Chat[0];
     return chats;
 }
Beispiel #10
0
        public static Chat[] GetChatArray(ChatArray chatArray)
        {
            Chat[] chats = new Chat[chatArray.ArraySize];

            for (int i=0; i < chatArray.ArraySize; i++) {

                IntPtr newPtr = Marshal.ReadIntPtr (chatArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                chats[i] = new Chat(newPtr);
            }
            return chats;
        }
Beispiel #11
0
        public static Chat[] GetChatArray(ChatArray chatArray)
        {
            Chat[] chatInner = new Chat[chatArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(chatArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    chatInner[count] = new Chat(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return chatInner;
        }
Beispiel #12
0
 public static IEnumerator GetChatArrayIEnumerator(ChatArray chatArray)
 {
     finalChat = GetChatArray(chatArray);
     yield return(new WaitForSeconds(0.1f));
 }
Beispiel #13
0
 public static Chat[] GetChatArray(ChatArray chatArray)
 {
     Chat[] chats = new Chat[0];
     return(chats);
 }