| | 1 | | using System.Linq; |
| | 2 | | using DCL.Interface; |
| | 3 | |
|
| | 4 | | public class UserProfileWebInterfaceBridge : IUserProfileBridge |
| | 5 | | { |
| 0 | 6 | | public void SaveUnverifiedName(string name) => WebInterface.SendSaveUserUnverifiedName(name); |
| | 7 | |
|
| 0 | 8 | | public void SaveDescription(string description) => WebInterface.SendSaveUserDescription(description); |
| | 9 | |
|
| 0 | 10 | | public void RequestFullUserProfile(string userId) => WebInterface.SendRequestUserProfile(userId); |
| | 11 | |
|
| 1003 | 12 | | public UserProfile GetOwn() => UserProfile.GetOwnUserProfile(); |
| | 13 | |
|
| | 14 | | public void AddUserProfileToCatalog(UserProfileModel userProfileModel) |
| | 15 | | { |
| 0 | 16 | | UserProfileController.i.AddUserProfileToCatalog(userProfileModel); |
| 0 | 17 | | } |
| | 18 | |
|
| | 19 | | public UserProfile Get(string userId) |
| | 20 | | { |
| 0 | 21 | | return UserProfileController.userProfilesCatalog.Get(userId); |
| | 22 | | } |
| | 23 | |
|
| | 24 | | public UserProfile GetByName(string userNameOrId) |
| | 25 | | { |
| 0 | 26 | | return UserProfileController.userProfilesCatalog.GetValues().FirstOrDefault(p => p.userName == userNameOrId); |
| | 27 | | } |
| | 28 | |
|
| 0 | 29 | | public void SignUp() => WebInterface.RedirectToSignUp(); |
| | 30 | | } |