Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Last active Sep 7, 2022
Embed
What would you like to do?
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