本文整理汇总了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;
}
示例2: GetArrayWithQuery
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetColorsArrayFinished callback)
{
callback(true,new Error(),new ColorsArray());
}
示例3: GetArrayWithQuerySyncIEnumerator
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
{
yield return new WaitForSeconds(0.2f);
Colors[] colorsInner = new Colors[0];
finalColors = colorsInner;
}
示例4: UpdateLocalStorage
public static int UpdateLocalStorage(Query query, QueryKind queryKind)
{
return ApplicasaColorsUpdateLocalStorage((query != null ? query.innerQuery : IntPtr.Zero), queryKind);
}
示例5: GetArrayWithQuerySyncIEnumerator
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
{
yield return new WaitForSeconds(0.2f);
Chat[] chatInner = new Chat[0];
finalChat = chatInner;
}
示例6: GetArrayWithQuerySync
public static Colors[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
{
return GetColorsArray(ApplicasaColorsGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
}
示例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;
}
示例8: GetArrayWithQuery
public static void GetArrayWithQuery(Query query, QueryKind queryKind, GetDataManagerArrayFinished callback)
{
callback(true,new Error(),new DataManagerArray());
}
示例9: GetArrayWithQuerySync
public static DataManager[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
{
return GetDataManagerArray(ApplicasaDataManagerGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
}
示例10: GetArrayWithQuerySyncIEnumerator
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
{
yield return new WaitForSeconds(0.2f);
Foo[] fooInner = new Foo[0];
finalFoo = fooInner;
}
示例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;
}
示例12: GetArrayWithQuerySync
public static GameV[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
{
return GetGameVArray(ApplicasaGameVGetArrayWithQuerySync((query != null ? query.innerQuery : IntPtr.Zero), queryKind));
}
示例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);
}