Skip to content

Instantly share code, notes, and snippets.

@SnoFox
Last active July 22, 2018 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SnoFox/1133fd9969074c17ed6361402c54b301 to your computer and use it in GitHub Desktop.
Save SnoFox/1133fd9969074c17ed6361402c54b301 to your computer and use it in GitHub Desktop.
public tv.v1x1.common.dto.core.User toCore(final DAOGlobalUser daoGlobalUser) {
return daoGlobalUser.getOrCreate(Platform.TWITCH,
String.valueOf(getId()),
getDisplayName()).toCore().getUser(Platform.TWITCH, String.valueOf(getId())).orElse(null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment