diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/LabelType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/LabelType.cs index 0093de55d3..e78344dde4 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/LabelType.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/LabelType.cs @@ -56,6 +56,28 @@ public PersonalInformation AsPersonalInformation } } + /// + /// Gets a value indicating whether this instance is UserDefinedTag + /// + public bool IsUserDefinedTag + { + get + { + return this is UserDefinedTag; + } + } + + /// + /// Gets this instance as a UserDefinedTag, or null. + /// + public UserDefinedTag AsUserDefinedTag + { + get + { + return this as UserDefinedTag; + } + } + /// /// Gets a value indicating whether this instance is Other /// @@ -98,6 +120,12 @@ public override void EncodeFields(LabelType value, enc.IJsonWriter writer) PersonalInformation.Encoder.EncodeFields((PersonalInformation)value, writer); return; } + if (value is UserDefinedTag) + { + WriteProperty(".tag", "user_defined_tag", writer, enc.StringEncoder.Instance); + UserDefinedTag.Encoder.EncodeFields((UserDefinedTag)value, writer); + return; + } if (value is Other) { WriteProperty(".tag", "other", writer, enc.StringEncoder.Instance); @@ -138,6 +166,8 @@ protected override LabelType Decode(string tag, enc.IJsonReader reader) { case "personal_information": return PersonalInformation.Decoder.DecodeFields(reader); + case "user_defined_tag": + return UserDefinedTag.Decoder.DecodeFields(reader); default: return Other.Decoder.DecodeFields(reader); } @@ -217,6 +247,76 @@ protected override PersonalInformation Create() #endregion } + /// + /// The user defined tag object + /// + public sealed class UserDefinedTag : LabelType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new UserDefinedTagEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new UserDefinedTagDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + private UserDefinedTag() + { + } + + /// + /// A singleton instance of UserDefinedTag + /// + public static readonly UserDefinedTag Instance = new UserDefinedTag(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class UserDefinedTagEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(UserDefinedTag value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class UserDefinedTagDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override UserDefinedTag Create() + { + return UserDefinedTag.Instance; + } + + } + + #endregion + } + /// /// The other object /// diff --git a/spec b/spec index 85f2eff045..4d5bb48ac8 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 85f2eff045cf6df883f269ed6ecd9b39457077ed +Subproject commit 4d5bb48ac801df6410ddc9c2cad0d9f5bb0a2365