-
Notifications
You must be signed in to change notification settings - Fork 756
/
Copy pathLWAAccessTokenRequestMeta.cs
35 lines (28 loc) · 1.08 KB
/
LWAAccessTokenRequestMeta.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Amazon.SellingPartnerAPIAA
{
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)
{
LWAAccessTokenRequestMeta other = obj as LWAAccessTokenRequestMeta;
return other != null &&
this.GrantType == other.GrantType &&
this.RefreshToken == other.RefreshToken &&
this.ClientId == other.ClientId &&
this.ClientSecret == other.ClientSecret &&
this.Scope == other.Scope;
}
}
}