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
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ partial void ProcessCreateRenderResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ partial void ProcessGetRenderResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
global::Creatomate.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ partial void ProcessGetTemplateResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
global::Creatomate.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ partial void ProcessListTemplatesResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
global::Creatomate.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed partial class CreatomateClient : global::Creatomate.ICreatomateCli
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Creatomate.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public partial interface ICreatomateClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateRenderRequestOutputFormatJsonConverter : global::Syste
{
return global::Creatomate.CreateRenderRequestOutputFormatExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateRenderRequestOutputFormatNullableJsonConverter : globa
{
return global::Creatomate.CreateRenderRequestOutputFormatExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RenderStatusJsonConverter : global::System.Text.Json.Seriali
{
return global::Creatomate.RenderStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RenderStatusNullableJsonConverter : global::System.Text.Json
{
return global::Creatomate.RenderStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}

return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Creatomate
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,108 +6,108 @@
namespace Creatomate
{
/// <summary>
///
///
/// </summary>
public sealed partial class JsonSerializerContextTypes
{
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, string>? StringStringDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, object>? StringObjectDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.JsonElement? JsonElement { get; set; }

/// <summary>
///
///
/// </summary>
public global::Creatomate.CreateRenderRequest? Type0 { get; set; }
/// <summary>
///
///
/// </summary>
public string? Type1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<string>? Type2 { get; set; }
/// <summary>
///
///
/// </summary>
public object? Type3 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.OneOf<string, double?>? Type4 { get; set; }
/// <summary>
///
///
/// </summary>
public double? Type5 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.CreateRenderRequestOutputFormat? Type6 { get; set; }
/// <summary>
///
///
/// </summary>
public int? Type7 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.Render? Type8 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Guid? Type9 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.RenderStatus? Type10 { get; set; }
/// <summary>
///
///
/// </summary>
public long? Type11 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.TemplateSummary? Type12 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.DateTime? Type13 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.Template? Type14 { get; set; }
/// <summary>
///
///
/// </summary>
public global::Creatomate.ErrorResponse? Type15 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Creatomate.Render>? Type16 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::Creatomate.TemplateSummary>? Type17 { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<string>? ListType0 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Creatomate.Render>? ListType1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::Creatomate.TemplateSummary>? ListType2 { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ namespace Creatomate
public enum CreateRenderRequestOutputFormat
{
/// <summary>
///
///
/// </summary>
Gif,
/// <summary>
///
///
/// </summary>
Jpg,
/// <summary>
///
///
/// </summary>
Mp4,
/// <summary>
///
///
/// </summary>
Png,
}
Expand Down
Loading