您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

44 行
1.1 KiB

using System;
using Newtonsoft.Json;
using UnityEngine.Scripting;
namespace Unity.Services.Authentication.Editor.Models
{
[Serializable]
class UpdateIdProviderRequest
{
[Preserve]
public UpdateIdProviderRequest() {}
[Preserve]
public UpdateIdProviderRequest(IdProviderResponse body)
{
ClientId = body.ClientId;
ClientSecret = body.ClientSecret;
Type = body.Type;
}
[JsonProperty("clientId")]
public string ClientId;
[JsonProperty("clientSecret")]
public string ClientSecret;
[JsonProperty("type")]
public string Type;
public override bool Equals(Object obj)
{
// Check for null and compare run-time types.
if ((obj == null) || !GetType().Equals(obj.GetType()))
{
return false;
}
UpdateIdProviderRequest c = (UpdateIdProviderRequest)obj;
return (ClientId == c.ClientId) &&
(ClientSecret == c.ClientSecret) &&
(Type == c.Type);
}
}
}