public ServerInfo(SimpleJson.JsonObject obj) { id = Convert.ToInt32(obj ["id"]); name = Convert.ToString(obj ["name"]); address = Convert.ToString(obj ["address"]); port = Convert.ToInt32(obj ["port"]); if (obj.ContainsKey("status")) { status = Convert.ToInt32(obj ["status"]); } if (obj.ContainsKey("content")) { recommond = Convert.ToString(obj ["content"]); } }