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.
54 lines
1.2 KiB
54 lines
1.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GMEStatusSync.Common
|
|
{
|
|
public class DbResult
|
|
{
|
|
private string _errorCode = "";
|
|
private string _msg = "";
|
|
private string _id = "";
|
|
private string _extra = "";
|
|
private string _tpErrorCode = "";
|
|
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 Extra2 { get; set; }
|
|
public string TpErrorCode
|
|
{
|
|
get { return _tpErrorCode; }
|
|
set { _tpErrorCode = value; }
|
|
}
|
|
public void SetError(string errorCode, string msg, string id)
|
|
{
|
|
ErrorCode = errorCode;
|
|
Msg = msg;
|
|
Id = id;
|
|
}
|
|
}
|
|
}
|