-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
SteamKit2/SteamKit2/Steam/Authentication/AccessTokenGenerateResult.cs
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,31 @@ | ||
/* | ||
* This file is subject to the terms and conditions defined in | ||
* file 'license.txt', which is part of this source code package. | ||
*/ | ||
|
||
using SteamKit2.Internal; | ||
|
||
namespace SteamKit2.Authentication | ||
{ | ||
/// <summary> | ||
/// Represents access token generation result. | ||
/// </summary> | ||
public sealed class AccessTokenGenerateResult | ||
{ | ||
/// <summary> | ||
/// New refresh token. | ||
/// This can be provided to <see cref="SteamUser.LogOnDetails.AccessToken"/>. | ||
/// </summary> | ||
public string RefreshToken { get; } | ||
/// <summary> | ||
/// New token subordinate to <see cref="RefreshToken"/>. | ||
/// </summary> | ||
public string AccessToken { get; } | ||
|
||
internal AccessTokenGenerateResult( CAuthentication_AccessToken_GenerateForApp_Response response ) | ||
{ | ||
AccessToken = response.access_token; | ||
RefreshToken = response.refresh_token; | ||
} | ||
} | ||
} |
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