Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinematics committed May 31, 2015
1 parent 04c1cc9 commit 52ed419
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion TallyCore/Quest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,22 @@ protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
#endregion

#region IQuest Properties
/// <summary>
/// Gets the expected forum adapter for this quest, with option to cancel.
/// </summary>
/// <param name="token">Cancellation token.</param>
/// <returns>Returns an IForumAdapter to read the quest thread.</returns>
public async Task<IForumAdapter> GetForumAdapter(CancellationToken token)
{
if (forumAdapter == null)
forumAdapter = await ForumAdapterFactory.GetAdapter(this, token);
return forumAdapter;
}

/// <summary>
/// Gets the expected forum adapter for this quest.
/// </summary>
/// <returns>Returns an IForumAdapter to read the quest thread.</returns>
public IForumAdapter GetForumAdapter()
{
if (forumAdapter == null)
Expand All @@ -69,7 +78,9 @@ private void UpdateForumAdapter()
forumAdapter = ForumAdapterFactory.GetAdapter(this);
}


/// <summary>
/// Gets the full thread URL for the quest.
/// </summary>
public string ThreadName
{
get
Expand All @@ -92,6 +103,9 @@ public string ThreadName
}
}

/// <summary>
/// Gets the name to display in the combo box dropdown, for selecting a quest.
/// </summary>
public string DisplayName
{
get
Expand All @@ -115,6 +129,9 @@ public string DisplayName
}
}

/// <summary>
/// Gets the web site name from the thread URL.
/// </summary>
public string SiteName
{
get
Expand Down

0 comments on commit 52ed419

Please sign in to comment.