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


C# FBResult.Dispose方法代码示例

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


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

示例1: GetBasicUserProfileCallback

 public void GetBasicUserProfileCallback(FBResult result)
 {
     if (!string.IsNullOrEmpty(result.Error))
     {
         Debug.Log(string.Format("Failed to get basic user profile: {0}", result.Error));
         if (actionGetBasicUserProfileCallback != null) actionGetBasicUserProfileCallback(false);
     }
     else
     {
         Dictionary<string, object> resultAPIData = Json.Deserialize(result.Text) as Dictionary<string, object>;
         userProfileID = resultAPIData["id"] as string;
         userProfileName = resultAPIData["name"] as string;
         Debug.Log(string.Format("id: {0}|name: {1}", userProfileID, userProfileName));
         if (actionGetBasicUserProfileCallback != null) actionGetBasicUserProfileCallback(true);
     }
     result.Dispose();
 }
开发者ID:LuviKunG,项目名称:LuviTools,代码行数:17,代码来源:LuviFacebookAPI.cs

示例2: LoginCallBack

 private void LoginCallBack(FBResult result)
 {
     if (!string.IsNullOrEmpty(result.Error))
     {
         Debug.Log(string.Format("Login Error Response: {0}", result.Error));
         if (actionLoginCallback != null) actionLoginCallback(false);
     }
     else if (!FB.IsLoggedIn)
     {
         Debug.Log(string.Format("Login was cancelled by user: {0}", result.Text));
         if (actionLoginCallback != null) actionLoginCallback(false);
     }
     else
     {
         Debug.Log(string.Format("Login was successful: {0}", result.Text));
         if (actionLoginCallback != null) actionLoginCallback(true);
     }
     result.Dispose();
 }
开发者ID:LuviKunG,项目名称:LuviTools,代码行数:19,代码来源:LuviFacebookAPI.cs

示例3: OpenFeedCallback

 private void OpenFeedCallback(FBResult result)
 {
     if (!string.IsNullOrEmpty(result.Error))
     {
         Debug.Log("Failed to feed: " + result.Error);
         if (actionFeedDialogCallback != null) actionFeedDialogCallback(false);
     }
     else
     {
         Debug.Log("Feed success");
         if (actionFeedDialogCallback != null) actionFeedDialogCallback(true);
     }
     result.Dispose();
 }
开发者ID:LuviKunG,项目名称:LuviTools,代码行数:14,代码来源:LuviFacebookAPI.cs

示例4: GetPictureProfileCallback

 public void GetPictureProfileCallback(FBResult result)
 {
     if (!string.IsNullOrEmpty(result.Error))
     {
         Debug.Log(string.Format("Failed to get picture profile: {0}", result.Error));
         if (actionGetBasicUserProfileCallback != null) actionGetBasicUserProfileCallback(false);
     }
     else
     {
         Dictionary<string, object> resultAPIData = Json.Deserialize(result.Text) as Dictionary<string, object>;
         resultAPIData = resultAPIData["data"] as Dictionary<string, object>;
         string pictureURL = resultAPIData["url"] as string;
         StartCoroutine(GetPictureProfileFromURL(pictureURL, actionGetPictureProfileCallback));
         Debug.Log(string.Format("url: {0}", pictureURL));
     }
     result.Dispose();
 }
开发者ID:LuviKunG,项目名称:LuviTools,代码行数:17,代码来源:LuviFacebookAPI.cs


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