您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
49 行
1.2 KiB
49 行
1.2 KiB
using System;
|
|
using Newtonsoft.Json;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace Unity.Services.Authentication.Editor.Models
|
|
{
|
|
[Serializable]
|
|
class CreateIdProviderRequest
|
|
{
|
|
[Preserve]
|
|
public CreateIdProviderRequest() {}
|
|
|
|
[Preserve]
|
|
public CreateIdProviderRequest(IdProviderResponse body)
|
|
{
|
|
ClientId = body.ClientId;
|
|
ClientSecret = body.ClientSecret;
|
|
Type = body.Type;
|
|
Disabled = body.Disabled;
|
|
}
|
|
|
|
[JsonProperty("clientId")]
|
|
public string ClientId;
|
|
|
|
[JsonProperty("clientSecret")]
|
|
public string ClientSecret;
|
|
|
|
[JsonProperty("type")]
|
|
public string Type;
|
|
|
|
[JsonProperty("disabled")]
|
|
public bool Disabled;
|
|
|
|
public override bool Equals(Object obj)
|
|
{
|
|
// Check for null and compare run-time types.
|
|
if ((obj == null) || !GetType().Equals(obj.GetType()))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
CreateIdProviderRequest c = (CreateIdProviderRequest)obj;
|
|
return (ClientId == c.ClientId) &&
|
|
(ClientSecret == c.ClientSecret) &&
|
|
(Disabled == c.Disabled) &&
|
|
(Type == c.Type);
|
|
}
|
|
}
|
|
}
|