Ejemplo n.º 1
0
 public void LoadFrom(AssetForDataBase data)
 {
     typeOfbuyAbleObj = new Convertor().StringTobuyableType(data.typeOfbuyAbleObj);
     name             = data.name;
     Id    = data.Id;
     price = new Convertor().LongToProperty(data.price);
     MaxNumberInEachLevel = new Convertor().StringToShortArray(data.MaxNumberInEachLevel);
 }
Ejemplo n.º 2
0
        public AssetForDataBase ReturnDataBaseFormat()
        {
            AssetForDataBase dataBaseFormat = new AssetForDataBase();

            dataBaseFormat.key = keyInDadabase;
            dataBaseFormat.typeOfbuyAbleObj = typeOfbuyAbleObj.ToString();
            dataBaseFormat.Id = Id;
            dataBaseFormat.MaxNumberInEachLevel = new Convertor().ShortArrayToSrting(MaxNumberInEachLevel);
            dataBaseFormat.name  = name;
            dataBaseFormat.price = new Convertor().PropertyToLong(price);
            return(dataBaseFormat);
        }