Skip to content

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

}

/// <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