33 lines
859 B
C#
33 lines
859 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace QuestShare.Common.API
|
|
{
|
|
public class Authorize : IAPIEndpoint<Authorize.Request, Authorize.Response>
|
|
{
|
|
public class Request : IRequest
|
|
{
|
|
public Request() { }
|
|
public string Version { get; set; } = null!;
|
|
public string Token { get; set; } = null!;
|
|
public ulong CharacterId { get; set; } = 0;
|
|
}
|
|
|
|
public class Response : IResponse
|
|
{
|
|
public Response() { }
|
|
public Error Error { get; set; } = Error.None;
|
|
public bool Success { get; set; }
|
|
public string Token { get; set; } = null!;
|
|
}
|
|
|
|
public class AuthBroadcast
|
|
{
|
|
public AuthBroadcast() { }
|
|
}
|
|
}
|
|
}
|