Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Last active September 7, 2022 11:12
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 lgolubyev/218847f7701ddd613174ace9240bdeb8 to your computer and use it in GitHub Desktop.
Save lgolubyev/218847f7701ddd613174ace9240bdeb8 to your computer and use it in GitHub Desktop.
class UserAuth
{
private User User;
public UserAuth(User user)
{
User = user;
}
public bool ConfirmSMS()
{
// ...
}
}
class UserSettings
{
private User User;
private UserAuth Auth;
public UserSettings(User user)
{
User = user;
Auth = new UserAuth(user);
}
public void UpdateSettings(Settings settings)
{
if (Auth.ConfirmSMS())
{
// ...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment