您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
939 B
32 行
939 B
using Newtonsoft.Json;
|
|
|
|
namespace Unity.Services.Core.Editor
|
|
{
|
|
class DefaultCdnConfiguredEndpoint : CdnConfiguredEndpoint<DefaultCdnEndpointConfiguration> {}
|
|
|
|
class DefaultCdnEndpointConfiguration
|
|
{
|
|
[JsonProperty("core")]
|
|
public string Core { get; set; }
|
|
|
|
internal string BuildApiUrl()
|
|
{
|
|
return Core + "/api";
|
|
}
|
|
|
|
internal string BuildProjectsApiUrl(string organizationKey)
|
|
{
|
|
return string.Format(BuildApiUrl() + "/orgs/{0}/projects", organizationKey);
|
|
}
|
|
|
|
internal string BuildProjectApiUrl(string organizationKey, string projectId)
|
|
{
|
|
return string.Format(BuildProjectsApiUrl(organizationKey) + "/{0}", projectId);
|
|
}
|
|
|
|
internal string BuildUsersUrl(string organizationKey, string projectId)
|
|
{
|
|
return BuildProjectApiUrl(organizationKey, projectId) + "/users";
|
|
}
|
|
}
|
|
}
|