using Pilz.Networking.CloudProviders.Nextcloud.Client.LoginFlowV2.Ocs;
namespace Pilz.Networking.CloudProviders.Nextcloud;
public class NextcloudLogin
{
///
/// The server url the login credentials are for.
///
public string? Server { get; set; }
///
/// The login name (username or password) used for the login.
///
public string? LoginName { get; set; }
///
/// The app password that has been generated.
///
public string? AppPassword { get; set; }
public NextcloudLogin()
{
}
public NextcloudLogin(OcsResponseLoginFlowV2Credentials response)
{
Server = response.Server;
LoginName = response.LoginName;
AppPassword = response.AppPassword;
}
}