Update Video
Added Update() method to model.
This commit is contained in:
parent
77c95a9525
commit
21af6f4300
1 changed files with 12 additions and 0 deletions
|
|
@ -16,4 +16,16 @@ public class Video
|
|||
public long timeAdded { get; set; }
|
||||
[Key] public string playlistItemId { get; set; } = string.Empty;
|
||||
public string type { get; set; } = string.Empty;
|
||||
|
||||
public void Update(Video other)
|
||||
{
|
||||
videoId = other.videoId;
|
||||
title = other.title;
|
||||
author = other.author;
|
||||
authorId = other.authorId;
|
||||
lengthSeconds = other.lengthSeconds;
|
||||
pubished = other.pubished;
|
||||
timeAdded = other.timeAdded;
|
||||
type = other.type;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue