Exemplo n.º 1
0
        internal static Connections FromJson(VkResponse response)
        {
            var connections = new Connections();

            connections.Skype = response["skype"];
            connections.FacebookId = Utilities.GetNullableLongId(response["facebook"]);
            connections.FacebookName = response["facebook_name"];
            connections.Twitter = response["twitter"];
            connections.Instagram = response["instagram"];

            return connections;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static Connections FromJson(VkResponse response)
        {
            var connections = new Connections
            {
                Skype = response["skype"],
                FacebookId = Utilities.GetNullableLongId(response["facebook"]),
                FacebookName = response["facebook_name"],
                Twitter = response["twitter"],
                Instagram = response["instagram"]
            };

            return connections;
        }