Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
610 changes: 610 additions & 0 deletions dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs

Large diffs are not rendered by default.

605 changes: 605 additions & 0 deletions dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs

Large diffs are not rendered by default.

510 changes: 510 additions & 0 deletions dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
// <auto-generated>
// Auto-generated by StoneAPI, do not modify.
// </auto-generated>

namespace Dropbox.Api.TeamLog
{
using sys = System;
using col = System.Collections.Generic;
using re = System.Text.RegularExpressions;

using enc = Dropbox.Api.Stone;

/// <summary>
/// <para>Created a Dropbox Protect custom data type.</para>
/// </summary>
public class ProtectCustomDataTypeCreatedDetails
{
#pragma warning disable 108

/// <summary>
/// <para>The encoder instance.</para>
/// </summary>
internal static enc.StructEncoder<ProtectCustomDataTypeCreatedDetails> Encoder = new ProtectCustomDataTypeCreatedDetailsEncoder();

/// <summary>
/// <para>The decoder instance.</para>
/// </summary>
internal static enc.StructDecoder<ProtectCustomDataTypeCreatedDetails> Decoder = new ProtectCustomDataTypeCreatedDetailsDecoder();

/// <summary>
/// <para>Initializes a new instance of the <see
/// cref="ProtectCustomDataTypeCreatedDetails" /> class.</para>
/// </summary>
/// <param name="customDataTypeId">ID.</param>
/// <param name="name">Name.</param>
public ProtectCustomDataTypeCreatedDetails(string customDataTypeId,
string name)
{
if (customDataTypeId == null)
{
throw new sys.ArgumentNullException("customDataTypeId");
}

if (name == null)
{
throw new sys.ArgumentNullException("name");
}

this.CustomDataTypeId = customDataTypeId;
this.Name = name;
}

/// <summary>
/// <para>Initializes a new instance of the <see
/// cref="ProtectCustomDataTypeCreatedDetails" /> class.</para>
/// </summary>
/// <remarks>This is to construct an instance of the object when
/// deserializing.</remarks>
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
public ProtectCustomDataTypeCreatedDetails()
{
}

/// <summary>
/// <para>ID.</para>
/// </summary>
public string CustomDataTypeId { get; protected set; }

/// <summary>
/// <para>Name.</para>
/// </summary>
public string Name { get; protected set; }

#region Encoder class

/// <summary>
/// <para>Encoder for <see cref="ProtectCustomDataTypeCreatedDetails" />.</para>
/// </summary>
private class ProtectCustomDataTypeCreatedDetailsEncoder : enc.StructEncoder<ProtectCustomDataTypeCreatedDetails>
{
/// <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(ProtectCustomDataTypeCreatedDetails value, enc.IJsonWriter writer)
{
WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance);
WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance);
}
}

#endregion


#region Decoder class

/// <summary>
/// <para>Decoder for <see cref="ProtectCustomDataTypeCreatedDetails" />.</para>
/// </summary>
private class ProtectCustomDataTypeCreatedDetailsDecoder : enc.StructDecoder<ProtectCustomDataTypeCreatedDetails>
{
/// <summary>
/// <para>Create a new instance of type <see
/// cref="ProtectCustomDataTypeCreatedDetails" />.</para>
/// </summary>
/// <returns>The struct instance.</returns>
protected override ProtectCustomDataTypeCreatedDetails Create()
{
return new ProtectCustomDataTypeCreatedDetails();
}

/// <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(ProtectCustomDataTypeCreatedDetails value, string fieldName, enc.IJsonReader reader)
{
switch (fieldName)
{
case "custom_data_type_id":
value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader);
break;
case "name":
value.Name = enc.StringDecoder.Instance.Decode(reader);
break;
default:
reader.Skip();
break;
}
}
}

#endregion
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// <auto-generated>
// Auto-generated by StoneAPI, do not modify.
// </auto-generated>

namespace Dropbox.Api.TeamLog
{
using sys = System;
using col = System.Collections.Generic;
using re = System.Text.RegularExpressions;

using enc = Dropbox.Api.Stone;

/// <summary>
/// <para>The protect custom data type created type object</para>
/// </summary>
public class ProtectCustomDataTypeCreatedType
{
#pragma warning disable 108

/// <summary>
/// <para>The encoder instance.</para>
/// </summary>
internal static enc.StructEncoder<ProtectCustomDataTypeCreatedType> Encoder = new ProtectCustomDataTypeCreatedTypeEncoder();

/// <summary>
/// <para>The decoder instance.</para>
/// </summary>
internal static enc.StructDecoder<ProtectCustomDataTypeCreatedType> Decoder = new ProtectCustomDataTypeCreatedTypeDecoder();

/// <summary>
/// <para>Initializes a new instance of the <see
/// cref="ProtectCustomDataTypeCreatedType" /> class.</para>
/// </summary>
/// <param name="description">The description</param>
public ProtectCustomDataTypeCreatedType(string description)
{
if (description == null)
{
throw new sys.ArgumentNullException("description");
}

this.Description = description;
}

/// <summary>
/// <para>Initializes a new instance of the <see
/// cref="ProtectCustomDataTypeCreatedType" /> class.</para>
/// </summary>
/// <remarks>This is to construct an instance of the object when
/// deserializing.</remarks>
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
public ProtectCustomDataTypeCreatedType()
{
}

/// <summary>
/// <para>Gets the description of the protect custom data type created type</para>
/// </summary>
public string Description { get; protected set; }

#region Encoder class

/// <summary>
/// <para>Encoder for <see cref="ProtectCustomDataTypeCreatedType" />.</para>
/// </summary>
private class ProtectCustomDataTypeCreatedTypeEncoder : enc.StructEncoder<ProtectCustomDataTypeCreatedType>
{
/// <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(ProtectCustomDataTypeCreatedType value, enc.IJsonWriter writer)
{
WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance);
}
}

#endregion


#region Decoder class

/// <summary>
/// <para>Decoder for <see cref="ProtectCustomDataTypeCreatedType" />.</para>
/// </summary>
private class ProtectCustomDataTypeCreatedTypeDecoder : enc.StructDecoder<ProtectCustomDataTypeCreatedType>
{
/// <summary>
/// <para>Create a new instance of type <see
/// cref="ProtectCustomDataTypeCreatedType" />.</para>
/// </summary>
/// <returns>The struct instance.</returns>
protected override ProtectCustomDataTypeCreatedType Create()
{
return new ProtectCustomDataTypeCreatedType();
}

/// <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(ProtectCustomDataTypeCreatedType value, string fieldName, enc.IJsonReader reader)
{
switch (fieldName)
{
case "description":
value.Description = enc.StringDecoder.Instance.Decode(reader);
break;
default:
reader.Skip();
break;
}
}
}

#endregion
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
// <auto-generated>
// Auto-generated by StoneAPI, do not modify.
// </auto-generated>

namespace Dropbox.Api.TeamLog
{
using sys = System;
using col = System.Collections.Generic;
using re = System.Text.RegularExpressions;

using enc = Dropbox.Api.Stone;

/// <summary>
/// <para>Deleted a Dropbox Protect custom data type.</para>
/// </summary>
public class ProtectCustomDataTypeDeletedDetails
{
#pragma warning disable 108

/// <summary>
/// <para>The encoder instance.</para>
/// </summary>
internal static enc.StructEncoder<ProtectCustomDataTypeDeletedDetails> Encoder = new ProtectCustomDataTypeDeletedDetailsEncoder();

/// <summary>
/// <para>The decoder instance.</para>
/// </summary>
internal static enc.StructDecoder<ProtectCustomDataTypeDeletedDetails> Decoder = new ProtectCustomDataTypeDeletedDetailsDecoder();

/// <summary>
/// <para>Initializes a new instance of the <see
/// cref="ProtectCustomDataTypeDeletedDetails" /> class.</para>
/// </summary>
/// <param name="customDataTypeId">ID.</param>
/// <param name="name">Name.</param>
public ProtectCustomDataTypeDeletedDetails(string customDataTypeId,
string name)
{
if (customDataTypeId == null)
{
throw new sys.ArgumentNullException("customDataTypeId");
}

if (name == null)
{
throw new sys.ArgumentNullException("name");
}

this.CustomDataTypeId = customDataTypeId;
this.Name = name;
}

/// <summary>
/// <para>Initializes a new instance of the <see
/// cref="ProtectCustomDataTypeDeletedDetails" /> class.</para>
/// </summary>
/// <remarks>This is to construct an instance of the object when
/// deserializing.</remarks>
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
public ProtectCustomDataTypeDeletedDetails()
{
}

/// <summary>
/// <para>ID.</para>
/// </summary>
public string CustomDataTypeId { get; protected set; }

/// <summary>
/// <para>Name.</para>
/// </summary>
public string Name { get; protected set; }

#region Encoder class

/// <summary>
/// <para>Encoder for <see cref="ProtectCustomDataTypeDeletedDetails" />.</para>
/// </summary>
private class ProtectCustomDataTypeDeletedDetailsEncoder : enc.StructEncoder<ProtectCustomDataTypeDeletedDetails>
{
/// <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(ProtectCustomDataTypeDeletedDetails value, enc.IJsonWriter writer)
{
WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance);
WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance);
}
}

#endregion


#region Decoder class

/// <summary>
/// <para>Decoder for <see cref="ProtectCustomDataTypeDeletedDetails" />.</para>
/// </summary>
private class ProtectCustomDataTypeDeletedDetailsDecoder : enc.StructDecoder<ProtectCustomDataTypeDeletedDetails>
{
/// <summary>
/// <para>Create a new instance of type <see
/// cref="ProtectCustomDataTypeDeletedDetails" />.</para>
/// </summary>
/// <returns>The struct instance.</returns>
protected override ProtectCustomDataTypeDeletedDetails Create()
{
return new ProtectCustomDataTypeDeletedDetails();
}

/// <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(ProtectCustomDataTypeDeletedDetails value, string fieldName, enc.IJsonReader reader)
{
switch (fieldName)
{
case "custom_data_type_id":
value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader);
break;
case "name":
value.Name = enc.StringDecoder.Instance.Decode(reader);
break;
default:
reader.Skip();
break;
}
}
}

#endregion
}
}
Loading
Loading