Version 3.0.8.0

WebsiteAPI class

Namespace: Sirenix.OdinInspector.Editor.Licensing
Assembly: Sirenix.OdinInspector.Editor
public static class WebsiteAPI
Inheritance
  • System.Object
  • WebsiteAPI

Fields

API_ENDPOINT
public const string API_ENDPOINT = "https://saftevand.odininspector.com/"
RequiredUnityApiIsAvailable
public static readonly bool RequiredUnityApiIsAvailable

Properties

Reachability
public static WebsiteAPI.ReachableStatus Reachability { get; }
UnreachableReason
public static string UnreachableReason { get; }

Methods

ClaimOrgSeatAsync(Int32, String, String, Action<WebsiteAPI.SeatClaimResponse>)
public static AsyncOperation ClaimOrgSeatAsync(int orgId, string orgClaimToken, string machineName, Action<WebsiteAPI.SeatClaimResponse> onComplete)
Parameters
System.Int32 orgId

System.String orgClaimToken

System.String machineName

System.Action<WebsiteAPI.SeatClaimResponse> onComplete

Returns
UnityEngine.AsyncOperation

ClaimSeatViaLicenseKeyAsync(String, String, Action<WebsiteAPI.SeatClaimResponse>)
public static AsyncOperation ClaimSeatViaLicenseKeyAsync(string licenseKey, string machineName, Action<WebsiteAPI.SeatClaimResponse> onComplete)
Parameters
System.String licenseKey

System.String machineName

System.Action<WebsiteAPI.SeatClaimResponse> onComplete

Returns
UnityEngine.AsyncOperation

ClaimSeatViaLoginAsync(String, String, String, Action<WebsiteAPI.SeatClaimResponse>)
public static AsyncOperation ClaimSeatViaLoginAsync(string username, string password, string machineName, Action<WebsiteAPI.SeatClaimResponse> onComplete)
Parameters
System.String username

System.String password

System.String machineName

System.Action<WebsiteAPI.SeatClaimResponse> onComplete

Returns
UnityEngine.AsyncOperation

DoAPICall<TArgs, TResult>(TArgs, String, Action<TResult>)
public static AsyncOperation DoAPICall<TArgs, TResult>(TArgs args, string api, Action<TResult> onCompleted)
    where TArgs : WebsiteAPI.WebsiteArgs where TResult : WebsiteAPI.WebsiteResponse, new()
Parameters
TArgs args

System.String api

System.Action<TResult> onCompleted

Returns
UnityEngine.AsyncOperation

Type Parameters
TArgs

TResult

GetAvailableOrgSeatsAsync(Int32, String, Action<WebsiteAPI.AvailableOrgSeatsResponse>)
public static AsyncOperation GetAvailableOrgSeatsAsync(int orgID, string orgClaimToken, Action<WebsiteAPI.AvailableOrgSeatsResponse> onComplete)
Parameters
System.Int32 orgID

System.String orgClaimToken

System.Action<WebsiteAPI.AvailableOrgSeatsResponse> onComplete

Returns
UnityEngine.AsyncOperation

GetLicenseKeyStatusAsync(LicenseInfo, Action<WebsiteAPI.LicenseKeyStatusResponse>)
public static AsyncOperation GetLicenseKeyStatusAsync(LicenseInfo license, Action<WebsiteAPI.LicenseKeyStatusResponse> onComplete)
Parameters
LicenseInfo license

System.Action<WebsiteAPI.LicenseKeyStatusResponse> onComplete

Returns
UnityEngine.AsyncOperation

ReturnLicenseAsync(LicenseInfo, Action<WebsiteAPI.ReturnLicenseResponse>)
public static AsyncOperation ReturnLicenseAsync(LicenseInfo license, Action<WebsiteAPI.ReturnLicenseResponse> onComplete)
Parameters
LicenseInfo license

System.Action<WebsiteAPI.ReturnLicenseResponse> onComplete

Returns
UnityEngine.AsyncOperation

TryUpdateReachability()
public static bool TryUpdateReachability()
Returns
System.Boolean