Repository navigation
Expand file tree
/
Copy pathWriterConstants.cs
More file actions
120 lines (98 loc) · 3.56 KB
/
Copy pathWriterConstants.cs
File metadata and controls
120 lines (98 loc) · 3.56 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Copyright (c) The LEGO Group. All rights reserved.
namespace LEGO.AsyncAPI.Writers
{
internal static class WriterConstants
{
/// <summary>
/// JSON datetime format.
/// </summary>
internal const string ODataDateTimeFormat = @"\/Date({0})\/";
/// <summary>
/// JSON datetime offset format.
/// </summary>
internal const string ODataDateTimeOffsetFormat = @"\/Date({0}{1}{2:D4})\/";
/// <summary>
/// A plus sign for the date time offset format.
/// </summary>
internal const string ODataDateTimeOffsetPlusSign = "+";
/// <summary>
/// The true value literal.
/// </summary>
internal const string JsonTrueLiteral = "true";
/// <summary>
/// The false value literal.
/// </summary>
internal const string JsonFalseLiteral = "false";
/// <summary>
/// The null value literal.
/// </summary>
internal const string JsonNullLiteral = "null";
/// <summary>
/// Character which starts the object scope.
/// </summary>
internal const string StartObjectScope = "{";
/// <summary>
/// Character which ends the object scope.
/// </summary>
internal const string EndObjectScope = "}";
/// <summary>
/// Character which starts the array scope.
/// </summary>
internal const string StartArrayScope = "[";
/// <summary>
/// Character which ends the array scope.
/// </summary>
internal const string EndArrayScope = "]";
/// <summary>
/// "(" Json Padding Function scope open parens.
/// </summary>
internal const string StartPaddingFunctionScope = "(";
/// <summary>
/// ")" Json Padding Function scope close parens.
/// </summary>
internal const string EndPaddingFunctionScope = ")";
/// <summary>
/// The separator between object members.
/// </summary>
internal const string ObjectMemberSeparator = ",";
/// <summary>
/// The separator between array elements.
/// </summary>
internal const string ArrayElementSeparator = ",";
/// <summary>
/// The separator between the name and the value.
/// </summary>
internal const string NameValueSeparator = ":";
/// <summary>
/// The white space postfixing <see cref="NameValueSeparator"/>
/// when producing pretty content.
/// </summary>
internal const string NameValueSeparatorWhiteSpaceSuffix = " ";
/// <summary>
/// The white space for empty object.
/// </summary>
internal const string WhiteSpaceForEmptyObject = " ";
/// <summary>
/// The white space for empty array.
/// </summary>
internal const string WhiteSpaceForEmptyArray = " ";
/// <summary>
/// The prefix of array item.
/// </summary>
internal const string PrefixOfArrayItem = "- ";
/// <summary>
/// The white space for indent.
/// </summary>
internal const string WhiteSpaceForIndent = " ";
/// <summary>
/// Empty object.
/// </summary>
/// <remarks>To indicate empty object in YAML.</remarks>
internal const string EmptyObject = "{ }";
/// <summary>
/// Empty array.
/// </summary>
/// <remarks>To indicate empty array in YAML.</remarks>
internal const string EmptyArray = "[]";
}
}