You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB
C#

using Newtonsoft.Json;
namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime
{
public class LWAAccessTokenRequestMeta
{
[JsonProperty(PropertyName = "grant_type")]
public string GrantType { get; set; }
[JsonProperty(PropertyName = "refresh_token")]
public string RefreshToken { get; set; }
[JsonProperty(PropertyName = "client_id")]
public string ClientId { get; set; }
[JsonProperty(PropertyName = "client_secret")]
public string ClientSecret { get; set; }
[JsonProperty(PropertyName = "scope")] public string Scope { get; set; }
public override bool Equals(object obj)
{
var other = obj as LWAAccessTokenRequestMeta;
return other != null &&
GrantType == other.GrantType &&
RefreshToken == other.RefreshToken &&
ClientId == other.ClientId &&
ClientSecret == other.ClientSecret &&
Scope == other.Scope;
}
public override int GetHashCode()
{
var hashCode = base.GetHashCode();
return hashCode;
}
}
}