demo-xf-app-1a/MobileApp1/Services/CorporationService.cs
2022-09-30 18:06:31 +01:00

57 lines
1.3 KiB
C#

namespace MobileApp1.Services
{
public class CorporationService : ICorporationService
{
public CorporationService()
{
}
public string DisplayName { get; set; } = "";
public bool IsLoggedIn { get; set; } = false;
public string AuthToken { get; set; } = "";
public ServiceResult Login(string username, string password)
{
this.DisplayName = username;
this.IsLoggedIn = true;
return ServiceResult.Create(true, "Logged In");
}
public ServiceResult Logout()
{
this.DisplayName = string.Empty;
this.IsLoggedIn = false;
return ServiceResult.Create(true, "Logged Out");
}
public ServiceResult RequestPasswordReset(string username)
{
this.DisplayName = string.Empty;
this.IsLoggedIn = false;
return ServiceResult.Create(true, "Password Reset Requested");
}
public WelcomePackResult RetrieveWelcomePack()
{
System.Threading.Thread.Sleep(1000);
return new WelcomePackResult()
{
IsSuccess = true,
Message = "",
MessagesCount = 0,
NoticesCount = 0
};
}
}
}