protected override void _pushEventGetScoresFinished(GetScoresFinishedEvent ev)
        {
            if (SoomlaProfile.IsProviderNativelyImplemented(ev.Provider))
            {
                return;
            }
            List <JSONObject> scoreList = new List <JSONObject>();

            foreach (var sc in ev.Scores.PageData)
            {
                scoreList.Add(sc.toJSONObject());
            }
            JSONObject jsonSc = new JSONObject(scoreList.ToArray());

            soomlaProfile_PushEventGetScoresFinished(ev.Provider.ToString(), ev.From.toJSONObject().ToString(), jsonSc.ToString(), ev.Payload, ev.Scores.HasMore);
        }
Ejemplo n.º 2
0
        protected override void _pushEventGetScoresFinished(GetScoresFinishedEvent ev)
        {
            if (SoomlaProfile.IsProviderNativelyImplemented(ev.Provider))
            {
                return;
            }
            List <JSONObject> scoreList = new List <JSONObject>();

            foreach (var sc in ev.Scores.PageData)
            {
                scoreList.Add(sc.toJSONObject());
            }
            JSONObject jsonSc = new JSONObject(scoreList.ToArray());

            AndroidJNI.PushLocalFrame(100);
            using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
                ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventGetScoresFinished",
                                                 ev.Provider.ToString(), ev.From.toJSONObject().ToString(), jsonSc.ToString(), ev.Scores.HasMore, ev.Payload);
            }
            AndroidJNI.PopLocalFrame(IntPtr.Zero);
        }
Ejemplo n.º 3
0
			protected virtual void _pushEventGetScoresFinished(GetScoresFinishedEvent getScoresFinishedEvent) {}
		protected override void _pushEventGetScoresFinished(GetScoresFinishedEvent ev) {
			if (SoomlaProfile.IsProviderNativelyImplemented(ev.Provider)) return;
			List<JSONObject> scoreList = new List<JSONObject>();
			foreach (var sc in ev.Scores.PageData) {
				scoreList.Add(sc.toJSONObject());
			}
			JSONObject jsonSc = new JSONObject(scoreList.ToArray());
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventGetScoresFinished",
						ev.Provider.ToString(), ev.From.toJSONObject().ToString(), jsonSc.ToString(), ev.Scores.HasMore, ev.Payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
		protected override void _pushEventGetScoresFinished(GetScoresFinishedEvent ev) {
			if (SoomlaProfile.IsProviderNativelyImplemented(ev.Provider)) return;
			List<JSONObject> scoreList = new List<JSONObject>();
			foreach (var sc in ev.Scores.PageData) {
				scoreList.Add(sc.toJSONObject());
			}
			JSONObject jsonSc = new JSONObject(scoreList.ToArray());
			soomlaProfile_PushEventGetScoresFinished(ev.Provider.ToString(), ev.From.toJSONObject().ToString(), jsonSc.ToString(), ev.Payload, ev.Scores.HasMore);
		}
Ejemplo n.º 6
0
 protected virtual void _pushEventGetScoresFinished(GetScoresFinishedEvent getScoresFinishedEvent)
 {
 }