-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Resolves GH-35
- Loading branch information
Showing
5 changed files
with
268 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
namespace TraktNet.Objects.Post | ||
{ | ||
using Basic; | ||
using System; | ||
|
||
/// <summary>Contains an episode number, optional metadata about the episode and an optional datetime.</summary> | ||
public sealed class PostEpisode | ||
{ | ||
/// <summary>Initializes a new instance of the <see cref="PostEpisode" /> class.</summary> | ||
public PostEpisode() : this(-1) { } | ||
|
||
/// <summary>Initializes a new instance of the <see cref="PostEpisode" /> class.</summary> | ||
/// <param name="number">The number of this episode.</param> | ||
public PostEpisode(int number) : this(number, null) { } | ||
|
||
/// <summary>Initializes a new instance of the <see cref="PostEpisode" /> class.</summary> | ||
/// <param name="number">The number of this episode.</param> | ||
/// <param name="metadata">Metadata about the episode.</param> | ||
public PostEpisode(int number, ITraktMetadata metadata) : this(number, metadata, null) { } | ||
|
||
/// <summary>Initializes a new instance of the <see cref="PostEpisode" /> class.</summary> | ||
/// <param name="number">The number of this episode.</param> | ||
/// <param name="metadata">Metadata about the episode.</param> | ||
/// <param name="at">An UTC datetime.</param> | ||
public PostEpisode(int number, ITraktMetadata metadata, DateTime? at) | ||
{ | ||
Number = number; | ||
Metadata = metadata; | ||
At = at; | ||
} | ||
|
||
/// <summary>Gets or sets the number of this episode.</summary> | ||
public int Number { get; set; } | ||
|
||
/// <summary>Gets or sets the metadata of this episode.</summary> | ||
public ITraktMetadata Metadata { get; set; } | ||
|
||
/// <summary>Gets or sets a UTC datetime of this episode.</summary> | ||
public DateTime? At { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.