-
Notifications
You must be signed in to change notification settings - Fork 36
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
[SDK-870] Feature/remove tuples #257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few small suggestions, to maybe clean up the deprecated methods, so less code duplication and more clearer, why it was deprecated in the future.
/// <returns>Avatar gameObject</returns> | ||
/// <param name="bodyType">Avatar body type</param> | ||
/// <returns>A tuple in the form of (GameObject, AvatarProperties)</returns> | ||
[Obsolete("This method is deprecated. Use CreateAvatarFromTemplateAsync instead.")] | ||
public async Task<(GameObject, AvatarProperties)> CreateAvatarFromTemplate(string id, BodyType bodyType) | ||
{ | ||
GameObject avatar = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GameObject avatar = null; | |
var data = await CreateAvatarFromTemplateAsync(id, bodyType); | |
return (data.AvatarObject, data.Properties); |
/// </summary> | ||
/// <param name="avatarProperties">Properties which describes avatar</param> | ||
/// <returns>A tuple in the form of (GameObject, AvatarProperties)</returns> | ||
[Obsolete("This method is deprecated. Use CreateAvatarAsync instead.")] | ||
public async Task<(GameObject avatarGameObject, AvatarProperties avatarProperties)> CreateAvatar(AvatarProperties avatarProperties) | ||
{ | ||
GameObject avatar = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GameObject avatar = null; | |
var createdAvatar = await CreateAvatarAsync(avatarProperties); | |
return (createdAvatar.AvatarObject, createdAvatar.Properties); |
SDK-870
Description
How to Test
Checklist