本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}