Archived
Initial commit
This commit is contained in:
commit
c866bd7b5e
60 files changed
+21902
No files matched your search
@@ -0,0 +1,61 @@
|
||||
namespace MobileApp1.Services
|
||||
{
|
||||
public class CorporationMockService : ICorporationService
|
||||
{
|
||||
public CorporationMockService()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public string DisplayName { get; set; } = "";
|
||||
|
||||
public bool IsLoggedIn { get; set; } = false;
|
||||
|
||||
public string AuthToken { get; set; } = "";
|
||||
|
||||
|
||||
public ServiceResult Login(string username, string password)
|
||||
{
|
||||
System.Threading.Thread.Sleep(6000);
|
||||
|
||||
this.DisplayName = username;
|
||||
this.IsLoggedIn = true;
|
||||
|
||||
return new ServiceResult()
|
||||
{
|
||||
IsSuccess = true,
|
||||
Message = "Logged In"
|
||||
};
|
||||
}
|
||||
|
||||
public ServiceResult Logout()
|
||||
{
|
||||
System.Threading.Thread.Sleep(6000);
|
||||
|
||||
this.DisplayName = string.Empty;
|
||||
this.IsLoggedIn = false;
|
||||
|
||||
return new ServiceResult()
|
||||
{
|
||||
IsSuccess = true,
|
||||
Message = "Logged Out"
|
||||
};
|
||||
}
|
||||
|
||||
public ServiceResult RequestPasswordReset(string username)
|
||||
{
|
||||
System.Threading.Thread.Sleep(6000);
|
||||
|
||||
this.DisplayName = string.Empty;
|
||||
this.IsLoggedIn = false;
|
||||
|
||||
return new ServiceResult()
|
||||
{
|
||||
IsSuccess = true,
|
||||
Message = "Password Reset Requested"
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
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 new ServiceResult()
|
||||
{
|
||||
IsSuccess = true,
|
||||
Message = "Logged In"
|
||||
};
|
||||
}
|
||||
|
||||
public ServiceResult Logout()
|
||||
{
|
||||
this.DisplayName = string.Empty;
|
||||
this.IsLoggedIn = false;
|
||||
|
||||
return new ServiceResult()
|
||||
{
|
||||
IsSuccess = true,
|
||||
Message = "Logged Out"
|
||||
};
|
||||
}
|
||||
|
||||
public ServiceResult RequestPasswordReset(string username)
|
||||
{
|
||||
this.DisplayName = string.Empty;
|
||||
this.IsLoggedIn = false;
|
||||
|
||||
return new ServiceResult()
|
||||
{
|
||||
IsSuccess = true,
|
||||
Message = "Password Reset Requested"
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
namespace MobileApp1.Services
|
||||
{
|
||||
public interface ICorporationService
|
||||
{
|
||||
string DisplayName { get; set; }
|
||||
|
||||
bool IsLoggedIn { get; set; }
|
||||
|
||||
string AuthToken { get; set; }
|
||||
|
||||
|
||||
ServiceResult Login(string username, string password);
|
||||
|
||||
ServiceResult Logout();
|
||||
|
||||
ServiceResult RequestPasswordReset(string username);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user