-
Notifications
You must be signed in to change notification settings - Fork 450
/
TeamFolderListError.cs
120 lines (103 loc) · 4.03 KB
/
TeamFolderListError.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
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
// <auto-generated>
// Auto-generated by StoneAPI, do not modify.
// </auto-generated>
namespace Dropbox.Api.Team
{
using sys = System;
using col = System.Collections.Generic;
using re = System.Text.RegularExpressions;
using enc = Dropbox.Api.Stone;
/// <summary>
/// <para>The team folder list error object</para>
/// </summary>
public class TeamFolderListError
{
#pragma warning disable 108
/// <summary>
/// <para>The encoder instance.</para>
/// </summary>
internal static enc.StructEncoder<TeamFolderListError> Encoder = new TeamFolderListErrorEncoder();
/// <summary>
/// <para>The decoder instance.</para>
/// </summary>
internal static enc.StructDecoder<TeamFolderListError> Decoder = new TeamFolderListErrorDecoder();
/// <summary>
/// <para>Initializes a new instance of the <see cref="TeamFolderListError" />
/// class.</para>
/// </summary>
/// <param name="accessError">The access error</param>
public TeamFolderListError(TeamFolderAccessError accessError)
{
if (accessError == null)
{
throw new sys.ArgumentNullException("accessError");
}
this.AccessError = accessError;
}
/// <summary>
/// <para>Initializes a new instance of the <see cref="TeamFolderListError" />
/// class.</para>
/// </summary>
/// <remarks>This is to construct an instance of the object when
/// deserializing.</remarks>
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
public TeamFolderListError()
{
}
/// <summary>
/// <para>Gets the access error of the team folder list error</para>
/// </summary>
public TeamFolderAccessError AccessError { get; protected set; }
#region Encoder class
/// <summary>
/// <para>Encoder for <see cref="TeamFolderListError" />.</para>
/// </summary>
private class TeamFolderListErrorEncoder : enc.StructEncoder<TeamFolderListError>
{
/// <summary>
/// <para>Encode fields of given value.</para>
/// </summary>
/// <param name="value">The value.</param>
/// <param name="writer">The writer.</param>
public override void EncodeFields(TeamFolderListError value, enc.IJsonWriter writer)
{
WriteProperty("access_error", value.AccessError, writer, global::Dropbox.Api.Team.TeamFolderAccessError.Encoder);
}
}
#endregion
#region Decoder class
/// <summary>
/// <para>Decoder for <see cref="TeamFolderListError" />.</para>
/// </summary>
private class TeamFolderListErrorDecoder : enc.StructDecoder<TeamFolderListError>
{
/// <summary>
/// <para>Create a new instance of type <see cref="TeamFolderListError" />.</para>
/// </summary>
/// <returns>The struct instance.</returns>
protected override TeamFolderListError Create()
{
return new TeamFolderListError();
}
/// <summary>
/// <para>Set given field.</para>
/// </summary>
/// <param name="value">The field value.</param>
/// <param name="fieldName">The field name.</param>
/// <param name="reader">The json reader.</param>
protected override void SetField(TeamFolderListError value, string fieldName, enc.IJsonReader reader)
{
switch (fieldName)
{
case "access_error":
value.AccessError = global::Dropbox.Api.Team.TeamFolderAccessError.Decoder.Decode(reader);
break;
default:
reader.Skip();
break;
}
}
}
#endregion
}
}