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.
 
 
 

45 lines
998 B

namespace Common.Model
{
/// <summary>
/// Class for getting response from database
/// </summary>
public class DbResult
{
private string _responseCode = "1";
private string _msg = "Error";
private string _id = "";
public DbResult()
{
}
public string ResponseCode
{
set { _responseCode = value; }
get { return _responseCode; }
}
public string Msg
{
set { _msg = value; }
get { return _msg; }
}
public string Id
{
set { _id = value; }
get { return _id; }
}
public string Extra { get; set; }
public string Extra2 { get; set; }
public string Extra3 { get; set; }
public void SetError(string responseCode, string msg, string id)
{
ResponseCode = responseCode;
Msg = msg;
Id = id;
}
}
}