-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added LoginData class for better handling of data returned from the l…
…ogin.
- Loading branch information
1 parent
7a56596
commit f4de3ec
Showing
2 changed files
with
44 additions
and
4 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
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,35 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace DuolingoNET | ||
{ | ||
/// <summary> | ||
/// The login class. | ||
/// Contains the login data returned from the website for the logged in user. | ||
/// </summary> | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <term></term> | ||
/// <description></description> | ||
/// </list> | ||
/// </summary> | ||
/// <remarks> | ||
/// <para></para> | ||
/// </remarks> | ||
public class LoginData | ||
{ | ||
/// <summary> | ||
/// A string representing the username of the account. | ||
/// </summary> | ||
[JsonProperty("username")] | ||
public string Username { get; set; } | ||
|
||
/// <summary> | ||
/// A string representing the Id of the account. | ||
/// </summary> | ||
[JsonProperty("user_id")] | ||
public string UserId { get; set; } | ||
} | ||
} |