示例#1
0
文件: Connections.cs 项目: G-IT-ED/vk
        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;
        }
示例#2
0
文件: Connections.cs 项目: vknet/vk
        /// <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;
        }