当前位置: 首页>>代码示例>>C#>>正文


C# Applicasa.Query类代码示例

本文整理汇总了C#中Applicasa.Query的典型用法代码示例。如果您正苦于以下问题:C# Query类的具体用法?C# Query怎么用?C# Query使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Query类属于Applicasa命名空间,在下文中一共展示了Query类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetArrayWithQuerySync

        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;
        }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:31,代码来源:Foo.cs

示例2: GetArrayWithQuery

 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback)
 {
     callback(true,new Error(),new ColorsArray());
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:4,代码来源:Colors.cs

示例3: GetArrayWithQuerySyncIEnumerator

 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Colors[]  colorsInner = new Colors[0];
         finalColors = colorsInner;
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:6,代码来源:Colors.cs

示例4: UpdateLocalStorage

 public static int UpdateLocalStorage(Query query, QueryKind queryKind)
 {
     return ApplicasaColorsUpdateLocalStorage((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:4,代码来源:Colors.cs

示例5: GetArrayWithQuerySyncIEnumerator

 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Chat[]  chatInner = new Chat[0];
         finalChat = chatInner;
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:6,代码来源:Chat.cs

示例6: GetArrayWithQuerySync

 public static Colors[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
 {
     return GetColorsArray(ApplicasaColorsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:4,代码来源:Colors.cs

示例7: GetArrayWithQuerySyncIEnumerator

        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;
        }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:31,代码来源:DataManager.cs

示例8: GetArrayWithQuery

 public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetDataManagerArrayFinished callback)
 {
     callback(true,new Error(),new DataManagerArray());
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:4,代码来源:DataManager.cs

示例9: GetArrayWithQuerySync

 public static DataManager[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
 {
     return GetDataManagerArray(ApplicasaDataManagerGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:4,代码来源:DataManager.cs

示例10: GetArrayWithQuerySyncIEnumerator

 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         Foo[]  fooInner = new Foo[0];
         finalFoo = fooInner;
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:6,代码来源:Foo.cs

示例11: GetArrayWithQuerySync

        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;
        }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:31,代码来源:Chat.cs

示例12: GetArrayWithQuerySync

 public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
 {
     return GetGameVArray(ApplicasaGameVGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:4,代码来源:GameV.cs

示例13: GetArrayWithQuerySyncIEnumerator

 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);
 }
开发者ID:Applicasa,项目名称:Sample-App-Unity,代码行数:6,代码来源:GameV.cs


注:本文中的Applicasa.Query类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。