You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.2 KiB
90 lines
2.2 KiB
namespace Swift.DAL.SwiftDAL
|
|
{
|
|
public class DbResult
|
|
{
|
|
private string _errorCode = "";
|
|
private string _msg = "";
|
|
private string _id = "";
|
|
private string _extra = "";
|
|
private string _extra1 = "";
|
|
private string _extra2 = "";
|
|
private string _extra3 = "";
|
|
private string _tpErrorCode = "";
|
|
private object _data = "";
|
|
public DbResult() { }
|
|
|
|
public string ErrorCode
|
|
{
|
|
set { _errorCode = value; }
|
|
get { return _errorCode; }
|
|
}
|
|
|
|
public string Msg
|
|
{
|
|
set { _msg = value; }
|
|
get { return _msg; }
|
|
}
|
|
|
|
public string Id
|
|
{
|
|
set { _id = value; }
|
|
get { return _id; }
|
|
}
|
|
|
|
public string Extra
|
|
{
|
|
set { _extra = value; }
|
|
get { return _extra; }
|
|
}
|
|
public string Extra1
|
|
{
|
|
set { _extra1 = value; }
|
|
get { return _extra1; }
|
|
}
|
|
public string Extra2
|
|
{
|
|
set { _extra2 = value; }
|
|
get { return _extra2; }
|
|
}
|
|
public string Extra3
|
|
{
|
|
set { _extra3 = value; }
|
|
get { return _extra3; }
|
|
}
|
|
public object Data
|
|
{
|
|
set { _data = value; }
|
|
get { return _data; }
|
|
}
|
|
//public string Extra2 { get; set; }
|
|
//public string Extra3 { get; set; }
|
|
public string TpErrorCode
|
|
{
|
|
get { return _tpErrorCode; }
|
|
set { _tpErrorCode = value; }
|
|
}
|
|
public void SetError(string errorCode, string msg, string id, object data = null)
|
|
{
|
|
ErrorCode = errorCode;
|
|
Msg = msg;
|
|
Id = id;
|
|
Data = data;
|
|
}
|
|
}
|
|
|
|
|
|
public class UserApiKeysModel
|
|
{
|
|
public string responseCode { get; set; }
|
|
public string responseMessage { get; set; }
|
|
public string AppId { get; set; }
|
|
public string APISecretKey { get; set; }
|
|
public string UserId { get; set; }
|
|
}
|
|
|
|
public class ApiSecretKeys
|
|
{
|
|
public string ApiKey { get; set; }
|
|
public string AppId { get; set; }
|
|
}
|
|
}
|