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


C# Provider.ToString方法代码示例

本文整理汇总了C#中Soomla.Profile.Provider.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Provider.ToString方法的具体用法?C# Provider.ToString怎么用?C# Provider.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Soomla.Profile.Provider的用法示例。


在下文中一共展示了Provider.ToString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _logout

		protected override void _logout (Provider provider){
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "logout", provider.ToString());
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:drapermovies,项目名称:MansionGamingGitHub,代码行数:7,代码来源:SoomlaProfileAndroid.cs

示例2: _updateStatus

		protected override void _updateStatus(Provider provider, string status, string payload){
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "updateStatus", provider.ToString(), status, payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:drapermovies,项目名称:MansionGamingGitHub,代码行数:7,代码来源:SoomlaProfileAndroid.cs

示例3: _pushEventLoginFailed

		protected override void _pushEventLoginFailed(Provider provider, string message, bool autoLogin, string payload) {
			if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventLoginFailed", provider.ToString(), message, autoLogin, payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:trananh1992,项目名称:unity3d-profile,代码行数:8,代码来源:ProfileEventPusherAndroid.cs

示例4: _getFeed

 protected override void _getFeed(Provider provider, bool fromStart, string payload)
 {
     AndroidJNI.PushLocalFrame(100);
     using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
         ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "getFeed", provider.ToString(), fromStart, payload);
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
 }
开发者ID:fordream,项目名称:unity3d-profile,代码行数:8,代码来源:SoomlaProfileAndroid.cs

示例5: _pushEventLogoutFinished

		protected override void _pushEventLogoutFinished(Provider provider) {
			if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventLogoutFinished", provider.ToString());
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:trananh1992,项目名称:unity3d-profile,代码行数:8,代码来源:ProfileEventPusherAndroid.cs

示例6: _login

		protected override void _login(Provider provider, string payload){
			AndroidJNI.PushLocalFrame(100);
			using (AndroidJavaClass unityActivityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
				using(AndroidJavaObject unityActivity = unityActivityClass.GetStatic<AndroidJavaObject>("currentActivity")) {
					using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
						ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "login", unityActivity, provider.ToString(), payload);
					}
				}
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:drapermovies,项目名称:MansionGamingGitHub,代码行数:11,代码来源:SoomlaProfileAndroid.cs

示例7: _pushEventGetContactsFinished

        protected override void _pushEventGetContactsFinished(Provider provider, SocialPageData<UserProfile> contactsPage, string payload)
        {
            if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
            List<JSONObject> profiles = new List<JSONObject>();
            foreach (var profile in contactsPage.PageData) {
                profiles.Add(profile.toJSONObject());
            }
            JSONObject contacts = new JSONObject(profiles.ToArray());

            soomlaProfile_PushEventGetContactsFinished(provider.ToString(), contacts.ToString(), payload, contactsPage.HasMore);
        }
开发者ID:thirunar,项目名称:Soomla-Social-Sharing,代码行数:11,代码来源:ProfileEventPusherIOS.cs

示例8: _isLoggedIn

		protected override bool _isLoggedIn(Provider provider) {
			bool loggedIn;
			AndroidJNI.PushLocalFrame(100);
			using (AndroidJavaClass unityActivityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
				using(AndroidJavaObject unityActivity = unityActivityClass.GetStatic<AndroidJavaObject>("currentActivity")) {
					using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
						loggedIn = ProfileJNIHandler.CallStatic<bool>(jniSoomlaProfile, "isLoggedIn", unityActivity, provider.ToString());
					}
				}
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
			return loggedIn;
		}
开发者ID:drapermovies,项目名称:MansionGamingGitHub,代码行数:13,代码来源:SoomlaProfileAndroid.cs

示例9: _getStoredUserProfile

        protected override UserProfile _getStoredUserProfile(Provider provider)
        {
            IntPtr p = IntPtr.Zero;
            int err = soomlaProfile_GetStoredUserProfile(provider.ToString(), out p);
            IOS_ProfileErrorCodes.CheckAndThrowException(err);

            string json = Marshal.PtrToStringAnsi(p);
            Marshal.FreeHGlobal(p);
            SoomlaUtils.LogDebug(TAG, "Got json: " + json);

            JSONObject obj = new JSONObject(json);
            return new UserProfile(obj);
        }
开发者ID:john-gu,项目名称:TuneSoomlaUnity,代码行数:13,代码来源:SoomlaProfileIOS.cs

示例10: _getAccessToken

 protected override string _getAccessToken(Provider provider)
 {
     string accessToken;
     AndroidJNI.PushLocalFrame(100);
     using (AndroidJavaClass unityActivityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
         using(AndroidJavaObject unityActivity = unityActivityClass.GetStatic<AndroidJavaObject>("currentActivity")) {
             using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
                 accessToken = ProfileJNIHandler.CallStatic<string>(jniSoomlaProfile, "getAccessToken", unityActivity, provider.ToString());
             }
         }
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
     return accessToken;
 }
开发者ID:jhorikawa,项目名称:unity3d-profile,代码行数:14,代码来源:SoomlaProfileAndroid.cs

示例11: _pushEventGetContactsFinished

        protected override void _pushEventGetContactsFinished(Provider provider, SocialPageData<UserProfile> contactsPage, string payload)
        {
            if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
            List<JSONObject> profiles = new List<JSONObject>();
            foreach (var profile in contactsPage.PageData) {
                profiles.Add(profile.toJSONObject());
            }
            JSONObject contacts = new JSONObject(profiles.ToArray());

            AndroidJNI.PushLocalFrame(100);
            using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
                ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventGetContactsFinished",
                                                 provider.ToString(), contacts.ToString(), payload, contactsPage.HasMore);
            }
            AndroidJNI.PopLocalFrame(IntPtr.Zero);
        }
开发者ID:thirunar,项目名称:Soomla-Social-Sharing,代码行数:16,代码来源:ProfileEventPusherAndroid.cs

示例12: _getStoredUserProfile

        protected override UserProfile _getStoredUserProfile(Provider provider)
        {
            JSONObject upObj = null;
            AndroidJNI.PushLocalFrame(100);
            using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
                string upJSON = ProfileJNIHandler.CallStatic<string>(jniSoomlaProfile, "getStoredUserProfile", provider.ToString());
                if(upJSON != null) {
                    upObj = new JSONObject(upJSON);
                }
            }
            AndroidJNI.PopLocalFrame(IntPtr.Zero);

            if (upObj) {
                return new UserProfile(upObj);
            } else {
                return null;
            }
        }
开发者ID:fordream,项目名称:unity3d-profile,代码行数:18,代码来源:SoomlaProfileAndroid.cs

示例13: _pushEventGetFeedFinished

		protected override void _pushEventGetFeedFinished(Provider provider ,SocialPageData<String> feedPage, string payload) {
			if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
			List<JSONObject> feeds = new List<JSONObject>();
			foreach (var feed in feedPage.PageData) {
				feeds.Add(JSONObject.StringObject(feed));
			}
			JSONObject jsonFeeds = new JSONObject(feeds.ToArray());
			soomlaProfile_PushEventGetFeedFinished(provider.ToString(), jsonFeeds.ToString(), payload, feedPage.HasMore);
		}
开发者ID:trananh1992,项目名称:unity3d-profile,代码行数:9,代码来源:ProfileEventPusherIOS.cs

示例14: _pushEventInviteFinished

		protected override void _pushEventInviteFinished(Provider provider, string requestId, List<string> invitedIds, string payload) {
			if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				List<JSONObject> invited = new List<JSONObject>();
				foreach (var id in invitedIds) {
					invited.Add(JSONObject.StringObject(id));
				}
				JSONObject jsonInvited = new JSONObject(invited.ToArray());
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventInviteFinished",
				                                 provider.ToString(), SocialActionType.INVITE.ToString(), requestId, jsonInvited.ToString(), payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:trananh1992,项目名称:unity3d-profile,代码行数:14,代码来源:ProfileEventPusherAndroid.cs

示例15: _pushEventGetFeedFinished

		protected override void _pushEventGetFeedFinished (Provider provider, SocialPageData<String> feedPage, string payload) {
			if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
			List<JSONObject> feeds = new List<JSONObject>();
			foreach (var feed in feedPage.PageData) {
				feeds.Add(JSONObject.StringObject(feed));
			}
			JSONObject feedJson = new JSONObject(feeds.ToArray());

			AndroidJNI.PushLocalFrame(100);
			using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventGetFeedFinished", 
				                                 provider.ToString(), feedJson.ToString(), payload, feedPage.HasMore);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
开发者ID:trananh1992,项目名称:unity3d-profile,代码行数:15,代码来源:ProfileEventPusherAndroid.cs


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