46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class LicenceData
|
||
|
|
{
|
||
|
|
public string project_id;
|
||
|
|
public string user_name;
|
||
|
|
public string license_code;
|
||
|
|
public string host_id;
|
||
|
|
public string duration; //使用时长
|
||
|
|
public string sign;
|
||
|
|
}
|
||
|
|
public class Datas
|
||
|
|
{
|
||
|
|
public static string Project_id = "7";
|
||
|
|
public static string secretKey = "pZNwkYoMRp7MG_O7aGtmA";
|
||
|
|
public static string UserName;
|
||
|
|
public static string Licensecode;
|
||
|
|
public static string Hostid;
|
||
|
|
public static int Duration;//持续时间
|
||
|
|
}
|
||
|
|
[Serializable]
|
||
|
|
public class License
|
||
|
|
{
|
||
|
|
public int id;
|
||
|
|
public string user_name;
|
||
|
|
public string license_code;
|
||
|
|
public int is_authorized;
|
||
|
|
public string host_id;
|
||
|
|
public string authorization_at;
|
||
|
|
public string authorization_end_at;
|
||
|
|
public string created_at;
|
||
|
|
public int login_count;
|
||
|
|
public int duration;
|
||
|
|
public string last_login;
|
||
|
|
}
|
||
|
|
|
||
|
|
[Serializable]
|
||
|
|
public class LicenseValidationResponse
|
||
|
|
{
|
||
|
|
public string status;
|
||
|
|
public string message;
|
||
|
|
public License license;
|
||
|
|
}
|