Skip to content

Commit 968a193

Browse files
committed
Update public specs.
1 parent ecfabac commit 968a193

File tree

369 files changed

+6546
-855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+6546
-855
lines changed

Dropbox.Api.sln

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2013
3-
VisualStudioVersion = 12.0.31101.0
3+
VisualStudioVersion = 12.0.40629.0
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleBlogDemo", "Examples\SimpleBlogDemo\SimpleBlogDemo.csproj", "{8772EB1E-3019-4FB3-9059-67681693E873}"
66
EndProject
@@ -14,7 +14,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalDemo.WindowsPhone"
1414
EndProject
1515
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Api.Portable", "Dropbox.Api\Dropbox.Api.Portable.csproj", "{786C830F-07A1-408B-BD7F-6EE04809D6DB}"
1616
EndProject
17-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Api.Portable40", "Dropbox.Api\Dropbox.Api.Portable40.csproj", "{15223E85-0C1F-4244-A8E6-3F350A40D09F}"
17+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Api.Portable40", "Dropbox.Api\Dropbox.Api.Portable40.csproj", "{D7B167CE-3AF8-478E-82F2-684D38F1DF98}"
1818
EndProject
1919
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dropbox.Api", "Dropbox.Api\Dropbox.Api.csproj", "{68180B54-4724-4CD1-BAA6-EE7BC309797C}"
2020
EndProject
@@ -111,16 +111,16 @@ Global
111111
{786C830F-07A1-408B-BD7F-6EE04809D6DB}.Release|ARM.ActiveCfg = Release|Any CPU
112112
{786C830F-07A1-408B-BD7F-6EE04809D6DB}.Release|x64.ActiveCfg = Release|Any CPU
113113
{786C830F-07A1-408B-BD7F-6EE04809D6DB}.Release|x86.ActiveCfg = Release|Any CPU
114-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
115-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Debug|Any CPU.Build.0 = Debug|Any CPU
116-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Debug|ARM.ActiveCfg = Debug|Any CPU
117-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Debug|x64.ActiveCfg = Debug|Any CPU
118-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Debug|x86.ActiveCfg = Debug|Any CPU
119-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Release|Any CPU.ActiveCfg = Release|Any CPU
120-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Release|Any CPU.Build.0 = Release|Any CPU
121-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Release|ARM.ActiveCfg = Release|Any CPU
122-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Release|x64.ActiveCfg = Release|Any CPU
123-
{15223E85-0C1F-4244-A8E6-3F350A40D09F}.Release|x86.ActiveCfg = Release|Any CPU
114+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
115+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Debug|Any CPU.Build.0 = Debug|Any CPU
116+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Debug|ARM.ActiveCfg = Debug|Any CPU
117+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Debug|x64.ActiveCfg = Debug|Any CPU
118+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Debug|x86.ActiveCfg = Debug|Any CPU
119+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Release|Any CPU.ActiveCfg = Release|Any CPU
120+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Release|Any CPU.Build.0 = Release|Any CPU
121+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Release|ARM.ActiveCfg = Release|Any CPU
122+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Release|x64.ActiveCfg = Release|Any CPU
123+
{D7B167CE-3AF8-478E-82F2-684D38F1DF98}.Release|x86.ActiveCfg = Release|Any CPU
124124
{68180B54-4724-4CD1-BAA6-EE7BC309797C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
125125
{68180B54-4724-4CD1-BAA6-EE7BC309797C}.Debug|Any CPU.Build.0 = Debug|Any CPU
126126
{68180B54-4724-4CD1-BAA6-EE7BC309797C}.Debug|ARM.ActiveCfg = Debug|Any CPU

Dropbox.Api/ApiException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Dropbox.Api
88
{
99
using System;
1010

11-
using Dropbox.Api.Babel;
11+
using Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// The exception type that will be raised by an <see cref="ITransport" />

Dropbox.Api/Async/LaunchEmptyResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Async
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Async
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Result returned by methods that may either launch an asynchronous job or complete

Dropbox.Api/Async/LaunchResultBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Async
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Async
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Result returned by methods that launch an asynchronous job.</para>

Dropbox.Api/Async/PollArg.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Async
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Async
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Arguments for methods that poll the status of an asynchronous job.</para>

Dropbox.Api/Async/PollEmptyResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Async
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Async
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Result returned by methods that poll for the status of an asynchronous job. Upon

Dropbox.Api/Async/PollError.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Async
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Async
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Error returned by methods for polling the status of asynchronous job.</para>

Dropbox.Api/Async/PollResultBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Async
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Async
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Result returned by methods that poll for the status of an asynchronous job.

Dropbox.Api/Auth/AuthError.cs

Lines changed: 113 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Auth
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Auth
88
using col = System.Collections.Generic;
99
using re = System.Text.RegularExpressions;
1010

11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>Errors occurred during authentication.</para>
@@ -78,6 +78,28 @@ public InvalidSelectUser AsInvalidSelectUser
7878
}
7979
}
8080

81+
/// <summary>
82+
/// <para>Gets a value indicating whether this instance is InvalidSelectAdmin</para>
83+
/// </summary>
84+
public bool IsInvalidSelectAdmin
85+
{
86+
get
87+
{
88+
return this is InvalidSelectAdmin;
89+
}
90+
}
91+
92+
/// <summary>
93+
/// <para>Gets this instance as a InvalidSelectAdmin, or <c>null</c>.</para>
94+
/// </summary>
95+
public InvalidSelectAdmin AsInvalidSelectAdmin
96+
{
97+
get
98+
{
99+
return this as InvalidSelectAdmin;
100+
}
101+
}
102+
81103
/// <summary>
82104
/// <para>Gets a value indicating whether this instance is Other</para>
83105
/// </summary>
@@ -126,6 +148,12 @@ public override void EncodeFields(AuthError value, enc.IJsonWriter writer)
126148
InvalidSelectUser.Encoder.EncodeFields((InvalidSelectUser)value, writer);
127149
return;
128150
}
151+
if (value is InvalidSelectAdmin)
152+
{
153+
WriteProperty(".tag", "invalid_select_admin", writer, enc.StringEncoder.Instance);
154+
InvalidSelectAdmin.Encoder.EncodeFields((InvalidSelectAdmin)value, writer);
155+
return;
156+
}
129157
if (value is Other)
130158
{
131159
WriteProperty(".tag", "other", writer, enc.StringEncoder.Instance);
@@ -168,6 +196,8 @@ protected override AuthError Decode(string tag, enc.IJsonReader reader)
168196
return InvalidAccessToken.Decoder.DecodeFields(reader);
169197
case "invalid_select_user":
170198
return InvalidSelectUser.Decoder.DecodeFields(reader);
199+
case "invalid_select_admin":
200+
return InvalidSelectAdmin.Decoder.DecodeFields(reader);
171201
default:
172202
return Other.Decoder.DecodeFields(reader);
173203
}
@@ -337,6 +367,87 @@ public override InvalidSelectUser DecodeFields(enc.IJsonReader reader)
337367
#endregion
338368
}
339369

370+
/// <summary>
371+
/// <para>The user specified in 'Dropbox-API-Select-Admin' is not a Dropbox Business
372+
/// team admin.</para>
373+
/// </summary>
374+
public sealed class InvalidSelectAdmin : AuthError
375+
{
376+
#pragma warning disable 108
377+
378+
/// <summary>
379+
/// <para>The encoder instance.</para>
380+
/// </summary>
381+
internal static enc.StructEncoder<InvalidSelectAdmin> Encoder = new InvalidSelectAdminEncoder();
382+
383+
/// <summary>
384+
/// <para>The decoder instance.</para>
385+
/// </summary>
386+
internal static enc.StructDecoder<InvalidSelectAdmin> Decoder = new InvalidSelectAdminDecoder();
387+
388+
/// <summary>
389+
/// <para>Initializes a new instance of the <see cref="InvalidSelectAdmin" />
390+
/// class.</para>
391+
/// </summary>
392+
private InvalidSelectAdmin()
393+
{
394+
}
395+
396+
/// <summary>
397+
/// <para>A singleton instance of InvalidSelectAdmin</para>
398+
/// </summary>
399+
public static readonly InvalidSelectAdmin Instance = new InvalidSelectAdmin();
400+
401+
#region Encoder class
402+
403+
/// <summary>
404+
/// <para>Encoder for <see cref="InvalidSelectAdmin" />.</para>
405+
/// </summary>
406+
private class InvalidSelectAdminEncoder : enc.StructEncoder<InvalidSelectAdmin>
407+
{
408+
/// <summary>
409+
/// <para>Encode fields of given value.</para>
410+
/// </summary>
411+
/// <param name="value">The value.</param>
412+
/// <param name="writer">The writer.</param>
413+
public override void EncodeFields(InvalidSelectAdmin value, enc.IJsonWriter writer)
414+
{
415+
}
416+
}
417+
418+
#endregion
419+
420+
#region Decoder class
421+
422+
/// <summary>
423+
/// <para>Decoder for <see cref="InvalidSelectAdmin" />.</para>
424+
/// </summary>
425+
private class InvalidSelectAdminDecoder : enc.StructDecoder<InvalidSelectAdmin>
426+
{
427+
/// <summary>
428+
/// <para>Create a new instance of type <see cref="InvalidSelectAdmin"
429+
/// />.</para>
430+
/// </summary>
431+
/// <returns>The struct instance.</returns>
432+
protected override InvalidSelectAdmin Create()
433+
{
434+
return new InvalidSelectAdmin();
435+
}
436+
437+
/// <summary>
438+
/// <para>Decode fields without ensuring start and end object.</para>
439+
/// </summary>
440+
/// <param name="reader">The json reader.</param>
441+
/// <returns>The decoded object.</returns>
442+
public override InvalidSelectAdmin DecodeFields(enc.IJsonReader reader)
443+
{
444+
return InvalidSelectAdmin.Instance;
445+
}
446+
}
447+
448+
#endregion
449+
}
450+
340451
/// <summary>
341452
/// <para>An unspecified error.</para>
342453
/// </summary>

Dropbox.Api/Auth/AuthRoutes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// <auto-generated>
2-
// Auto-generated by BabelAPI, do not modify.
2+
// Auto-generated by StoneAPI, do not modify.
33
// </auto-generated>
44

55
namespace Dropbox.Api.Auth.Routes
@@ -8,7 +8,7 @@ namespace Dropbox.Api.Auth.Routes
88
using io = System.IO;
99
using col = System.Collections.Generic;
1010
using t = System.Threading.Tasks;
11-
using enc = Dropbox.Api.Babel;
11+
using enc = Dropbox.Api.Stone;
1212

1313
/// <summary>
1414
/// <para>The routes for the <see cref="N:Dropbox.Api.Auth"/> namespace</para>

0 commit comments

Comments
 (0)