internal static VideoAlbum FromJson(VkResponse response) { var album = new VideoAlbum(); album.Id = Utilities.GetNullableLongId(response["id"]); album.OwnerId = response["owner_id"]; album.Title = response["title"]; album.Count = Utilities.GetNullableLongId(response["count"]); album.Photo160 = response["photo_160"]; album.Photo320 = response["photo_320"]; return album; }
internal static VideoAlbum FromJson(VkResponse response) { var album = new VideoAlbum(); album.Id = Utilities.GetNullableLongId(response["id"]); album.OwnerId = response["owner_id"]; album.Title = response["title"]; album.Count = Utilities.GetNullableLongId(response["count"]); album.Photo160 = response["photo_160"]; album.Photo320 = response["photo_320"]; return(album); }
/// <summary> /// Разобрать из json. /// </summary> /// <param name="response">Ответ сервера.</param> /// <returns></returns> public static VideoAlbum FromJson(VkResponse response) { var album = new VideoAlbum { Id = Utilities.GetNullableLongId(response["id"]), OwnerId = response["owner_id"], Title = response["title"], Count = Utilities.GetNullableLongId(response["count"]), Photo160 = response["photo_160"], Photo320 = response["photo_320"] }; return(album); }
/// <summary> /// Разобрать из json. /// </summary> /// <param name="response">Ответ сервера.</param> /// <returns></returns> public static VideoAlbum FromJson(VkResponse response) { var album = new VideoAlbum { Id = Utilities.GetNullableLongId(response["id"]), OwnerId = response["owner_id"], Title = response["title"], Count = Utilities.GetNullableLongId(response["count"]), Photo160 = response["photo_160"], Photo320 = response["photo_320"] }; return album; }