Example #1
0
        internal static StandInLife FromJson(VkResponse response)
        {
            var standInLife = new StandInLife();

            standInLife.Political  = response["political"];
            standInLife.Languages  = response["langs"];
            standInLife.Religion   = response["religion"];
            standInLife.InspiredBy = response["inspired_by"];
            standInLife.PeopleMain = response["people_main"];
            standInLife.LifeMain   = response["life_main"];
            standInLife.Smoking    = response["smoking"];
            standInLife.Alcohol    = response["alcohol"];

            return(standInLife);
        }
Example #2
0
        internal static StandInLife FromJson(VkResponse response)
        {
            var standInLife = new StandInLife();

            standInLife.Political = response["political"];
            standInLife.Languages = response["langs"];
            standInLife.Religion = response["religion"];
            standInLife.InspiredBy = response["inspired_by"];
            standInLife.PeopleMain = response["people_main"];
            standInLife.LifeMain = response["life_main"];
            standInLife.Smoking = response["smoking"];
            standInLife.Alcohol = response["alcohol"];

            return standInLife;
        }
Example #3
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static StandInLife FromJson(VkResponse response)
        {
            var standInLife = new StandInLife
            {
                Political  = response["political"],
                Languages  = response["langs"].ToReadOnlyCollectionOf <string>(x => x),
                Religion   = response["religion"],
                InspiredBy = response["inspired_by"],
                PeopleMain = response["people_main"],
                LifeMain   = response["life_main"],
                Smoking    = response["smoking"],
                Alcohol    = response["alcohol"]
            };

            return(standInLife);
        }
Example #4
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static StandInLife FromJson(VkResponse response)
        {
            var standInLife = new StandInLife
            {
                Political = response["political"],
                Languages = response["langs"],
                Religion = response["religion"],
                InspiredBy = response["inspired_by"],
                PeopleMain = response["people_main"],
                LifeMain = response["life_main"],
                Smoking = response["smoking"],
                Alcohol = response["alcohol"]
            };

            return standInLife;
        }