forked from Geektoolkit/Dynaframe3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayListItem.cs
34 lines (27 loc) · 897 Bytes
/
PlayListItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Text;
namespace Dynaframe3
{
public enum PlayListItemType { Image, Video, AnimatedGif, Invalid}
public class PlayListItem : IEquatable<PlayListItem>
{
public string Path { get; set; }
public PlayListItemType ItemType { get; set; }
public string Title { get; set; }
public string Keywords { get; set; }
public string Software { get; set; }
public string Artist { get; set; }
public string Comment { get; set; }
/// <summary>
/// Returns true if the path and itemtime are equal
/// </summary>
/// <param name="other"></param>
/// <returns></returns>
public bool Equals(PlayListItem other)
{
return this.Path == other.Path &&
this.ItemType == other.ItemType;
}
}
}