/// <summary> /// ��������� �� json. /// </summary> /// <param name="response"> ����� �������. </param> /// <returns> </returns> public static VideoCatalogItem FromJson(VkResponse response) { var item = new VideoCatalogItem { Id = response[key : "id"] , OwnerId = response[key : "owner_id"] , Title = response[key : "title"] , Type = response[key : "type"] , Duration = response[key : "duration"] , Description = response[key : "description"] , Date = response[key : "date"] , Views = response[key : "views"] , Comments = response[key : "comments"] , Photo130 = response[key : "photo_130"] , Photo320 = response[key : "photo_320"] , Photo640 = response[key : "photo_640"] , CanAdd = response[key : "can_add"] , CanEdit = response[key : "can_edit"] , Count = response[key : "count"] , Photo160 = response[key : "photo_160"] , UpdatedTime = response[key : "updated_time"] , IsPrivate = response[key : "is_private"] , AddingDate = response[key : "adding_date"] , Photo800 = response[key : "photo_800"] }; return(item); }
/// <summary> /// –азобрать из json. /// </summary> /// <param name="response">ќтвет сервера.</param> /// <returns></returns> internal static VideoCatalogItem FromJson(VkResponse response) { var item = new VideoCatalogItem { Id = response["id"], OwnerId = response["owner_id"], Title = response["title"], Type = response["type"], Duration = response["duration"], Description = response["description"], Date = response["date"], Views = response["views"], Comments = response["comments"], Photo130 = response["photo_130"], Photo320 = response["photo_320"], Photo640 = response["photo_640"], CanAdd = response["can_add"], CanEdit = response["can_edit"], Count = response["count"], Photo160 = response["photo_160"], UpdatedTime = response["updated_time"], }; return(item); }
/// <summary> /// –азобрать из json. /// </summary> /// <param name="response">ќтвет сервера.</param> /// <returns></returns> public static VideoCatalogItem FromJson(VkResponse response) { var item = new VideoCatalogItem { Id = response["id"], OwnerId = response["owner_id"], Title = response["title"], Type = response["type"], Duration = response["duration"], Description = response["description"], Date = response["date"], Views = response["views"], Comments = response["comments"], Photo130 = response["photo_130"], Photo320 = response["photo_320"], Photo640 = response["photo_640"], CanAdd = response["can_add"], CanEdit = response["can_edit"], Count = response["count"], Photo160 = response["photo_160"], UpdatedTime = response["updated_time"], }; return item; }