tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Api
Models
RequestOptionsAttribute.cs
Go to the documentation of this file.
1
using
System;
2
3
namespace
Tgstation.Server.Api.Models
4
{
8
[AttributeUsage(AttributeTargets.Property, AllowMultiple =
true
, Inherited =
false
)]
9
public
sealed
class
RequestOptionsAttribute
:
Attribute
10
{
14
public
FieldPresence
Presence
{
get
; }
15
19
public
bool
PutOnly
{
get
;
set
; }
20
25
public
RequestOptionsAttribute
(
FieldPresence
presence)
26
{
27
Presence
= presence;
28
}
29
}
30
}
Attribute
Tgstation.Server.Api.Models.RequestOptionsAttribute
Indicates the FieldPresence for fields in models.
Definition
RequestOptionsAttribute.cs:10
Tgstation.Server.Api.Models.RequestOptionsAttribute.PutOnly
bool PutOnly
If this only applies to HTTP PUT requests with the model.
Definition
RequestOptionsAttribute.cs:19
Tgstation.Server.Api.Models.RequestOptionsAttribute.Presence
FieldPresence Presence
The FieldPresence.
Definition
RequestOptionsAttribute.cs:14
Tgstation.Server.Api.Models.RequestOptionsAttribute.RequestOptionsAttribute
RequestOptionsAttribute(FieldPresence presence)
Initializes a new instance of the RequestOptionsAttribute class.
Definition
RequestOptionsAttribute.cs:25
Tgstation.Server.Api.Models
Definition
ChatChannel.cs:6
Tgstation.Server.Api.Models.FieldPresence
FieldPresence
Indicates whether a request field is Required or Ignored.
Definition
FieldPresence.cs:7
Generated by
1.9.8