Beispiel #1
0
        public static void JSONIngredientDebug(Ingredient ing)
        {
            string serializedIng = SerializeIngredient(ing);

            Console.WriteLine(serializedIng);
            Ingredient jsonIngredient = JSONHelper.Deserialize <Ingredient>(serializedIng);

            Console.WriteLine(jsonIngredient.ToString());
        }
Beispiel #2
0
        public static Recipe DeSerializeRecipe(string rec)
        {
            Recipe deserializedRec = JSONHelper.Deserialize <Recipe>(rec);

            return(deserializedRec);
        }
Beispiel #3
0
        public static Comment DeSerializeComment(string com)
        {
            Comment deserializedCom = JSONHelper.Deserialize <Comment>(com);

            return(deserializedCom);
        }
Beispiel #4
0
        public static Ingredient DeSerializeIngredient(string ing)
        {
            Ingredient deserializedIng = JSONHelper.Deserialize <Ingredient>(ing);

            return(deserializedIng);
        }
Beispiel #5
0
        public static Offers DeSerializeOffers(string off)
        {
            Offers deserializedOffers = JSONHelper.Deserialize <Offers>(off);

            return(deserializedOffers);
        }
Beispiel #6
0
        public static Pictures DeSerializePictures(string pic)
        {
            Pictures deserializedPictures = JSONHelper.Deserialize <Pictures>(pic);

            return(deserializedPictures);
        }
Beispiel #7
0
        public static Account DeSerializeAccount(string acc)
        {
            Account deserializedAcc = JSONHelper.Deserialize <Account>(acc);

            return(deserializedAcc);
        }
Beispiel #8
0
        public static IngredientIn DeSerializeIngredientIn(string ing)
        {
            IngredientIn deserializedIngredientIn = JSONHelper.Deserialize <IngredientIn>(ing);

            return(deserializedIngredientIn);
        }
Beispiel #9
0
        public static HasEaten DeSerializeHasEaten(string has)
        {
            HasEaten deserializedHasEaten = JSONHelper.Deserialize <HasEaten>(has);

            return(deserializedHasEaten);
        }
Beispiel #10
0
        public static Favorises DeSerializeFavorises(string fav)
        {
            Favorises deserializedFav = JSONHelper.Deserialize <Favorises>(fav);

            return(deserializedFav);
        }
Beispiel #11
0
        public static Retailer DeSerializeRetailer(string ret)
        {
            Retailer deserializedRet = JSONHelper.Deserialize <Retailer>(ret);

            return(deserializedRet);
        }