We should extract out a few "global" methods to something like:
GetCurrentUserName(): Returns string of username, either alias or profile.name
GetCurrentUserSignedIn(): Boolean of signed in with Google or alias
GetCurrentUserAvatar(): Returns user's profile pic, or null if using alias
UsersEqual(user1, user2): Takes in profile names or ids, and returns whether or not users are the same, as to determine if user is owner of card, etc...
Mainly just want to extract out a lot of this functionality
We have several instances in code like this
We should extract out a few "global" methods to something like: GetCurrentUserName(): Returns string of username, either alias or profile.name GetCurrentUserSignedIn(): Boolean of signed in with Google or alias GetCurrentUserAvatar(): Returns user's profile pic, or null if using alias UsersEqual(user1, user2): Takes in profile names or ids, and returns whether or not users are the same, as to determine if user is owner of card, etc...
Mainly just want to extract out a lot of this functionality