tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Models
Transformers
UserGraphQLTransformer.cs
Go to the documentation of this file.
1
namespace
Tgstation.Server.Host.Models.Transformers
2
{
6
sealed
class
UserGraphQLTransformer
:
TransformerBase
<User, GraphQL.Types.User>
7
{
11
public
UserGraphQLTransformer
()
12
: base(model => new GraphQL.Types.
User
13
{
14
CreatedAt = model.
CreatedAt
!.Value,
15
CanonicalName = model.CanonicalName!,
16
CreatedById = model.CreatedById,
17
Enabled
= model.Enabled!.Value,
18
GroupId = model.GroupId,
19
Id = model.Id!.Value,
20
Name = model.Name!,
21
SystemIdentifier = model.SystemIdentifier,
22
})
23
{
24
}
25
}
26
}
Tgstation.Server.Api.Models.Internal.UserModelBase.CreatedAt
DateTimeOffset? CreatedAt
When the UserModelBase was created.
Definition
UserModelBase.cs:22
Tgstation.Server.Host.Models.Transformers.TransformerBase
Definition
TransformerBase{TInput,TOutput}.cs:8
Tgstation.Server.Host.Models.Transformers.UserGraphQLTransformer
ITransformer<TInput, TOutput> for GraphQL.Types.Users.
Definition
UserGraphQLTransformer.cs:7
Tgstation.Server.Host.Models.Transformers.UserGraphQLTransformer.UserGraphQLTransformer
UserGraphQLTransformer()
Initializes a new instance of the UserGraphQLTransformer class.
Definition
UserGraphQLTransformer.cs:11
Tgstation.Server.Host.Models.User
Definition
User.cs:17
Tgstation.Server.Host.Models.Transformers
Definition
PermissionSetGraphQLTransformer.cs:2
Tgstation.Server.Host.OAuthGatewayStatus.Enabled
@ Enabled
The OAuth Gateway is enabled.
Generated by
1.9.8