Метка в списке друзей
예제 #1
0
파일: FriendList.cs 프로젝트: G-IT-ED/vk
        internal static FriendList FromJson(VkResponse response)
        {
            var list = new FriendList();

            list.Id = response["lid"];
            list.Name = response["name"];

            return list;
        }
예제 #2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        internal static FriendList FromJson(VkResponse response)
        {
            var list = new FriendList
            {
                Id = response["list_id"] ?? response["lid"],
                Name = response["name"]
            };

            return list;
        }