forked from LEGO/AsyncAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAsyncApiWriter.cs
More file actions
72 lines (59 loc) · 1.61 KB
/
Copy pathIAsyncApiWriter.cs
File metadata and controls
72 lines (59 loc) · 1.61 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
// Copyright (c) The LEGO Group. All rights reserved.
namespace LEGO.AsyncAPI.Writers
{
public interface IAsyncApiWriter
{
/// <summary>
/// Write the start object.
/// </summary>
void WriteStartObject();
/// <summary>
/// Write the end object.
/// </summary>
void WriteEndObject();
/// <summary>
/// Write the start array.
/// </summary>
void WriteStartArray();
/// <summary>
/// Write the end array.
/// </summary>
void WriteEndArray();
/// <summary>
/// Write the property name.
/// </summary>
void WritePropertyName(string name);
/// <summary>
/// Write the string value.
/// </summary>
void WriteValue(string value);
/// <summary>
/// Write the decimal value.
/// </summary>
void WriteValue(decimal value);
/// <summary>
/// Write the int value.
/// </summary>
void WriteValue(int value);
/// <summary>
/// Write the boolean value.
/// </summary>
void WriteValue(bool value);
/// <summary>
/// Write the null value.
/// </summary>
void WriteNull();
/// <summary>
/// Write the raw content value.
/// </summary>
void WriteRaw(string value);
/// <summary>
/// Write the object value.
/// </summary>
void WriteValue(object value);
/// <summary>
/// Flush the writer.
/// </summary>
void Flush();
}
}