/
IMeta.cs
53 lines (43 loc) · 1009 Bytes
/
IMeta.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#nullable enable
// Copyright (c) ServiceStack, Inc. All Rights Reserved.
// License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
using System;
using System.Collections.Generic;
namespace ServiceStack;
public interface IMeta
{
Dictionary<string, string>? Meta { get; set; }
}
public interface IHasQueryParams
{
Dictionary<string, string>? QueryParams { get; set; }
}
public interface IHasSessionId
{
string? SessionId { get; set; }
}
public interface IHasBearerToken
{
string? BearerToken { get; set; }
}
public interface IHasRefreshToken
{
string? RefreshToken { get; set; }
}
public interface IHasRefreshTokenExpiry : IHasRefreshToken
{
DateTime? RefreshTokenExpiry { get; set; }
}
public interface IHasAuthSecret
{
string? AuthSecret { get; set; }
}
public interface IHasVersion
{
int Version { get; set; }
}
public interface IRequireRefreshToken
{
string? RefreshToken { get; set; }
DateTime? RefreshTokenExpiry { get; set; }
}