-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert AuthenticateUserTicket to strong typing (#111)
- Loading branch information
Showing
6 changed files
with
40 additions
and
3 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,8 @@ | ||
namespace Steam.Models.SteamUserAuth | ||
{ | ||
public class SteamAuthError | ||
{ | ||
public string ErrorCode { get; set; } | ||
public string ErrorDesc { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Steam.Models.SteamUserAuth | ||
{ | ||
public class SteamAuthResponseParams | ||
{ | ||
public string Result { get; set; } | ||
public string SteamId { get; set; } | ||
public string OwnerSteamId { get; set; } | ||
public bool VacBanned { get; set; } | ||
public bool PublisherBanned { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Steam.Models.SteamUserAuth | ||
{ | ||
public class SteamUserAuthResponse | ||
{ | ||
public SteamAuthResponseParams Params { get; set; } | ||
public SteamAuthError Error { get; set; } | ||
public bool Success => Error == null && Params != null; | ||
} | ||
} |
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,7 @@ | ||
namespace Steam.Models.SteamUserAuth | ||
{ | ||
public class SteamUserAuthResponseModel | ||
{ | ||
public SteamUserAuthResponse Response { 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
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