當前位置: 首頁>>代碼示例>>C#>>正文


C# Profile.Provider類代碼示例

本文整理匯總了C#中Soomla.Profile.Provider的典型用法代碼示例。如果您正苦於以下問題:C# Provider類的具體用法?C# Provider怎麽用?C# Provider使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Provider類屬於Soomla.Profile命名空間,在下文中一共展示了Provider類的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: UserProfile

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="provider">The provider this <c>UserProfile</c> belongs to.</param>
		/// <param name="profileId">A unique ID that identifies the current user with the provider.</param>
		/// <param name="username">The username of the current user in the provider.</param>
		/// <param name="extra">Additional info provided by SN.</param>
		protected UserProfile(Provider provider, string profileId, string username, Dictionary<String, JSONObject> extra)
		{
			this.Provider = provider;
			this.ProfileId = profileId;
			this.Username = username;
			this.Extra = extra;
		}
開發者ID:trananh1992,項目名稱:unity3d-profile,代碼行數:14,代碼來源:UserProfile.cs

示例3: SocialUploadGate

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="id"><c>Gate</c> ID.</param>
		/// <param name="provider">Social provider.</param>
		/// <param name="fileName">Name of file to upload.</param>
		/// <param name="message">Message.</param>
		/// <param name="texture">Texture.</param>
		public SocialUploadGate(string id, Provider provider, string fileName, string message, Texture2D texture)
			: base(id, provider)
		{
			FileName = fileName;
			Message = message;
			ImgTexture = texture;
		}
開發者ID:Ratel13,項目名稱:unity3d-levelup,代碼行數:15,代碼來源:SocialUploadGate.cs

示例4: SocialActionFailedEvent

		public SocialActionFailedEvent(Provider provider, SocialActionType socialType, String errorDescription, String payload) : base(provider)
		{
			this.provider = provider;
			this.SocialType = socialType;
			this.payload = payload;
			this.ErrorDescription = errorDescription;
		}
開發者ID:Faisalimrann,項目名稱:Shop,代碼行數:7,代碼來源:SocialActionFailedEvent.cs

示例5: _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

示例6: GetScoresFailedEvent

		public GetScoresFailedEvent(Provider provider, Leaderboard from, bool fromStart, string errorDescription, string payload)
			: base(provider, payload)
		{
			this.From = from;
			this.FromStart = fromStart;
			this.ErrorDescription = errorDescription;
		}
開發者ID:Faisalimrann,項目名稱:Shop,代碼行數:7,代碼來源:GetScoresFailedEvent.cs

示例7: _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

示例8: _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

示例9: _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

示例10: _pushEventSocialActionStarted

		protected override void _pushEventSocialActionStarted(Provider provider, SocialActionType actionType, string payload) { 
			if (SoomlaProfile.IsProviderNativelyImplemented(provider)) return;
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventSocialActionStarted",
				                                 provider.ToString(), actionType.ToString(), payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
開發者ID:trananh1992,項目名稱:unity3d-profile,代碼行數:9,代碼來源:ProfileEventPusherAndroid.cs

示例11: SocialStoryGate

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="id"><c>Gate</c> ID.</param>
		/// <param name="provider">Social provider.</param>
		/// <param name="message">Message for the story.</param>
		/// <param name="name">Story name.</param>
		/// <param name="caption">Caption for the story image.</param>
		/// <param name="link">Link for the story.</param>
		/// <param name="imgUrl">Image URL for the story.</param>
		public SocialStoryGate(string id, Provider provider, string message, string storyName, string caption, string link, string imgUrl)
			: base(id, provider)
		{
			Message = message;
			StoreName = storyName;
			Caption = caption;
			Link = link;
			ImgUrl = imgUrl;
		}
開發者ID:Ratel13,項目名稱:unity3d-levelup,代碼行數:19,代碼來源:SocialStoryGate.cs

示例12: _updateStory

		protected override void _updateStory(Provider provider, string message, string name,
		                                     string caption, string description, string link,
		                                     string pictureUrl, string payload){
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "updateStory", provider.ToString(), message, name,
				                                 caption, description, link, pictureUrl, payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
開發者ID:drapermovies,項目名稱:MansionGamingGitHub,代碼行數:10,代碼來源:SoomlaProfileAndroid.cs

示例13: _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

示例14: _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

示例15: _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:jhorikawa,項目名稱:unity3d-profile,代碼行數:13,代碼來源:SoomlaProfileIOS.cs


注:本文中的Soomla.Profile.Provider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。