Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Show Compare Profile UI * #2718

Open
wants to merge 1 commit into
base: android-java-client
Choose a base branch
from

Conversation

redls
Copy link

@redls redls commented Sep 9, 2019

No description provided.

/// <summary>
/// Shows the Play Games Player Profile UI for a specific player.
/// </summary>
/// <param name="userId">User identifier. It cannot be null. </param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to specify "It cannot be null"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

/// <summary>
/// Shows the Player Profile UI for the given player Id
/// </summary>
/// <param name="userId">User Identifier. It cannot be null.</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to specify which param can or which can't be null

@@ -713,6 +713,28 @@ public void ReportProgress(string achievementID, double progress, Action<bool> c
});
}

/// <summary>
/// Shows the Player Profile UI for the given player Id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user identifier

/// Shows the Play Games Player Profile UI for a specific player.
/// </summary>
/// <param name="userId">User identifier. It cannot be null. </param>
/// <param name="callback">Callback.</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Callback.

Check how we describe 'callback' in other methods, please.

@redls redls force-pushed the android-java-client branch from 00e373b to ad22443 Compare September 9, 2019 16:47
});
AndroidTaskUtils.AddOnFailureListener(task, exception =>
{
InvokeCallbackOnGameThread(callback, UIStatus.NotAuthorized);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UIStatus.NotAuthorized probably there are more cases it could faild and most frequent one will be no internet connection.
We should get status code from ApiException and switch over possible status codes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants