Skip to content

Commit ed6415f

Browse files
committed
Updated inline documentation comments.
1 parent f6ab753 commit ed6415f

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

DuolingoNET/Duolingo.cs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ public Duolingo(string username, string password, HttpClient client)
9999
#region Methods
100100

101101
/// <summary>
102-
/// Gets the TTS uri for any given lexeme.
102+
/// Gets the TTS <see cref="Uri"/> for any given <see cref="Lexeme"/>.
103103
/// </summary>
104+
/// <param name="lexemeId">A string representing Id of the lexeme to be retrieved.</param>
105+
/// <returns>An awaitable <see cref="Task{Uri}"/> representing the Uri of the TTS.</returns>
104106
public async Task<Uri> GetTtsUrlAsync(string lexemeId)
105107
{
106108
var lexeme = await GetLexemeDataAsync(lexemeId).ConfigureAwait(false);
@@ -109,8 +111,9 @@ public async Task<Uri> GetTtsUrlAsync(string lexemeId)
109111
}
110112

111113
/// <summary>
112-
/// Gets a list of known words from every learned skill.
114+
/// Gets a list of known words from every learned <see cref="User.Skill"/>.
113115
/// </summary>
116+
/// <returns>A <see cref="List{T}"/> representing the words known by the user.</returns>
114117
public List<string> GetKnownWords()
115118
{
116119
var words = new List<string>();
@@ -127,8 +130,9 @@ public List<string> GetKnownWords()
127130
}
128131

129132
/// <summary>
130-
/// Gets a list of learned skills.
133+
/// Gets a list of learned <see cref="User.Skill"/>.
131134
/// </summary>
135+
/// <returns>A <see cref="List{T}"/> representing the <see cref="User.Skill"/> known by the user.</returns>
132136
public List<User.Skill> GetLearnedSkills()
133137
{
134138
var skills = new List<User.Skill>();
@@ -145,8 +149,10 @@ public List<string> GetKnownWords()
145149
}
146150

147151
/// <summary>
148-
/// Gets the lexeme data through <c>https://www.duolingo.com/api/1/dictionary_page</c>.
152+
/// Gets the <see cref="Lexeme"/> data through <c>https://www.duolingo.com/api/1/dictionary_page</c>.
149153
/// </summary>
154+
/// <param name="lexemeId">A string representing Id of the <see cref="Lexeme"/> to be retrieved.</param>
155+
/// <returns>An awaitable <see cref="Task{Uri}"/> representing the <see cref="Lexeme"/> data.</returns>
150156
public async Task<Lexeme.Root> GetLexemeDataAsync(string lexemeId)
151157
{
152158
// Creates the lexeme that will be returned back
@@ -166,6 +172,7 @@ public List<string> GetKnownWords()
166172
/// <summary>
167173
/// Gets the user vocabulary data through <c>https://www.duolingo.com/vocabulary/overview</c>.
168174
/// </summary>
175+
/// <returns>An awaitable <see cref="Task{Uri}"/> representing the vocabulary of the user.</returns>
169176
public async Task<Vocabulary.Root> GetVocabularyAsync()
170177
{
171178
var vocabulary = new Vocabulary.Root();
@@ -182,8 +189,9 @@ public List<string> GetKnownWords()
182189
}
183190

184191
/// <summary>
185-
/// Gets the user general info <see cref="DuolingoNET.UserInfo"/>.
192+
/// Gets the user general info.
186193
/// </summary>
194+
/// <returns>A <see cref="UserInfo"/> representing various general info on the user.</returns>
187195
public UserInfo GetUserInfo()
188196
{
189197
return new UserInfo
@@ -211,8 +219,10 @@ public UserInfo GetUserInfo()
211219
}
212220

213221
/// <summary>
214-
/// Gets the user raw data info <see cref="DuolingoNET.User.Root"/>.
222+
/// Gets the user raw data info <see cref="User.Root"/>.
215223
/// </summary>
224+
/// <returns>A <see cref="User.Root"/> representing the raw data on the user, as pulled from the API.
225+
/// Lacks data on ads and tracking.</returns>
216226
public User.Root GetUserDataRaw()
217227
{
218228
return userData;

0 commit comments

Comments
 (0)