diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
| commit | 767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch) | |
| tree | 49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.Model/DTO/DTOUserItemData.cs | |
| parent | 845554722efaed872948a9e0f7202e3ef52f1b6e (diff) | |
Pushing missing changes
Diffstat (limited to 'MediaBrowser.Model/DTO/DTOUserItemData.cs')
| -rw-r--r-- | MediaBrowser.Model/DTO/DTOUserItemData.cs | 79 |
1 files changed, 56 insertions, 23 deletions
diff --git a/MediaBrowser.Model/DTO/DTOUserItemData.cs b/MediaBrowser.Model/DTO/DTOUserItemData.cs index ce258f16f..8d24316d0 100644 --- a/MediaBrowser.Model/DTO/DTOUserItemData.cs +++ b/MediaBrowser.Model/DTO/DTOUserItemData.cs @@ -1,23 +1,56 @@ -using ProtoBuf;
-
-namespace MediaBrowser.Model.DTO
-{
- [ProtoContract]
- public class DtoUserItemData
- {
- [ProtoMember(1)]
- public float? Rating { get; set; }
-
- [ProtoMember(2)]
- public long PlaybackPositionTicks { get; set; }
-
- [ProtoMember(3)]
- public int PlayCount { get; set; }
-
- [ProtoMember(4)]
- public bool IsFavorite { get; set; }
-
- [ProtoMember(5)]
- public bool? Likes { get; set; }
- }
-}
+using System.ComponentModel; +using ProtoBuf; + +namespace MediaBrowser.Model.DTO +{ + /// <summary> + /// Class DtoUserItemData + /// </summary> + [ProtoContract] + public class DtoUserItemData : INotifyPropertyChanged + { + /// <summary> + /// Gets or sets the rating. + /// </summary> + /// <value>The rating.</value> + [ProtoMember(1)] + public float? Rating { get; set; } + + /// <summary> + /// Gets or sets the playback position ticks. + /// </summary> + /// <value>The playback position ticks.</value> + [ProtoMember(2)] + public long PlaybackPositionTicks { get; set; } + + /// <summary> + /// Gets or sets the play count. + /// </summary> + /// <value>The play count.</value> + [ProtoMember(3)] + public int PlayCount { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether this instance is favorite. + /// </summary> + /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value> + [ProtoMember(4)] + public bool IsFavorite { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether this <see cref="DtoUserItemData" /> is likes. + /// </summary> + /// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value> + [ProtoMember(5)] + public bool? Likes { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether this <see cref="DtoUserItemData" /> is played. + /// </summary> + /// <value><c>true</c> if played; otherwise, <c>false</c>.</value> + [ProtoMember(6)] + public bool Played { get; set; } + + public event PropertyChangedEventHandler PropertyChanged; + } +} |
