Ported .Net Core commits:
hondacrx: - Initial commit: Switch to .Net Core 2.0 - Fix build and removed not needed files Fabi: - Updated solution platforms. - Changed folder structure. - Change library target framework to netstandard2.0. - Updated solution platforms again... - Removed windows specific kernel32 function usage (Ctrl-C handler).
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2017 CypherCore <http://github.com/CypherCore>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Framework.Rest
|
||||
{
|
||||
[DataContract]
|
||||
public class LogonData
|
||||
{
|
||||
public string this[string inputId] => Inputs.SingleOrDefault(i => i.Id == inputId)?.Value;
|
||||
|
||||
[DataMember(Name = "version")]
|
||||
public string Version { get; set; }
|
||||
|
||||
[DataMember(Name = "program_id")]
|
||||
public string Program { get; set; }
|
||||
|
||||
[DataMember(Name = "platform_id")]
|
||||
public string Platform { get; set; }
|
||||
|
||||
[DataMember(Name = "inputs")]
|
||||
public List<FormInputValue> Inputs { get; set; } = new List<FormInputValue>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2017 CypherCore <http://github.com/CypherCore>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Framework.Rest
|
||||
{
|
||||
[DataContract]
|
||||
public class LogonResult
|
||||
{
|
||||
[DataMember(Name = "authentication_state")]
|
||||
public string AuthenticationState { get; set; }
|
||||
|
||||
[DataMember(Name = "login_ticket")]
|
||||
public string LoginTicket { get; set; }
|
||||
|
||||
[DataMember(Name = "error_code")]
|
||||
public string ErrorCode { get; set; }
|
||||
|
||||
[DataMember(Name = "error_message")]
|
||||
public string ErrorMessage { get; set; }
|
||||
|
||||
[DataMember(Name = "support_error_code")]
|
||||
public string SupportErrorCode { get; set; }
|
||||
|
||||
[DataMember(Name = "authenticator_form")]
|
||||
public FormInputs AuthenticatorForm { get; set; } = new FormInputs();
|
||||
}
|
||||
|
||||
public enum AuthenticationState
|
||||
{
|
||||
NONE = 0,
|
||||
LOGIN = 1,
|
||||
LEGAL = 2,
|
||||
AUTHENTICATOR = 3,
|
||||
DONE = 4,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user