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.
50 lines
992 B
50 lines
992 B
//*******************************
|
|
// Created By Rocher Kong
|
|
// Github https://github.com/RocherKong
|
|
// Date 2018.02.09
|
|
//*******************************
|
|
namespace IP2Region.Models
|
|
{
|
|
public class DataBlock
|
|
{
|
|
#region Private Properties
|
|
public int CityID
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public string Region
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public int DataPtr
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
#endregion
|
|
|
|
#region Constructor
|
|
public DataBlock(int city_id, string region, int dataPtr = 0)
|
|
{
|
|
CityID = city_id;
|
|
Region = region;
|
|
DataPtr = dataPtr;
|
|
}
|
|
|
|
public DataBlock(int city_id, string region):this(city_id,region,0)
|
|
{
|
|
}
|
|
#endregion
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{CityID}|{Region}|{DataPtr}";
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|