-
-
Save lgolubyev/218847f7701ddd613174ace9240bdeb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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