Skip to content

Commit

Permalink
Change DTOs to not have any fields strictly required
Browse files Browse the repository at this point in the history
  • Loading branch information
sierpinskid committed Apr 29, 2024
1 parent 5f6eedb commit 9e4fa4a
Show file tree
Hide file tree
Showing 165 changed files with 521 additions and 521 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ internal partial class BlockedUserEventInternalDTO
[Newtonsoft.Json.JsonProperty("blocked_by_user", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public UserResponseInternalDTO BlockedByUser { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.blocked_user" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.blocked_user";

/// <summary>
/// The user that was blocked
/// </summary>
[Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Default)]
public UserResponseInternalDTO User { get; set; } = new UserResponseInternalDTO();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallAcceptedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Default)]
public CallResponseInternalDTO Call { get; set; } = new CallResponseInternalDTO();

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.accepted" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.accepted";

/// <summary>
/// The user who accepted the call
/// </summary>
[Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Default)]
public UserResponseInternalDTO User { get; set; } = new UserResponseInternalDTO();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallBroadcastingStartedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("hls_playlist_url", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("hls_playlist_url", Required = Newtonsoft.Json.Required.Default)]
public string HlsPlaylistUrl { get; set; } = default!;

/// <summary>
/// The type of event: "call.broadcasting_started" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.broadcasting_started";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallBroadcastingStoppedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.broadcasting_stopped" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.broadcasting_stopped";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ internal partial class CallCreatedEventInternalDTO
/// <summary>
/// Call object
/// </summary>
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Default)]
public CallResponseInternalDTO Call { get; set; } = new CallResponseInternalDTO();

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// the members added to this call
/// </summary>
[Newtonsoft.Json.JsonProperty("members", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("members", Required = Newtonsoft.Json.Required.Default)]
public System.Collections.Generic.List<MemberResponseInternalDTO> Members { get; set; } = new System.Collections.Generic.List<MemberResponseInternalDTO>();

/// <summary>
/// The type of event: "call.created" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.created";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ internal partial class CallDeletedEventInternalDTO
/// <summary>
/// Call object
/// </summary>
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Default)]
public CallResponseInternalDTO Call { get; set; } = new CallResponseInternalDTO();

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.deleted" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.deleted";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallEndedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Default)]
public CallResponseInternalDTO Call { get; set; } = new CallResponseInternalDTO();

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.ended" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.ended";

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default)]
public string Description { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("end_timestamp", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("end_timestamp", Required = Newtonsoft.Json.Required.Default)]
public long EndTimestamp { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("severity", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("severity", Required = Newtonsoft.Json.Required.Default)]
public int Severity { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Default)]
public int Timestamp { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = default!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallHLSBroadcastingFailedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.hls_broadcasting_failed" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.hls_broadcasting_failed";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallHLSBroadcastingStartedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("hls_playlist_url", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("hls_playlist_url", Required = Newtonsoft.Json.Required.Default)]
public string HlsPlaylistUrl { get; set; } = default!;

/// <summary>
/// The type of event: "call.hls_broadcasting_started" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.hls_broadcasting_started";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ namespace StreamVideo.Core.InternalDTO.Events
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))")]
internal partial class CallHLSBroadcastingStoppedEventInternalDTO
{
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.hls_broadcasting_stopped" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.hls_broadcasting_stopped";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ internal partial class CallLiveStartedEventInternalDTO
/// <summary>
/// Call object
/// </summary>
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Default)]
public CallResponseInternalDTO Call { get; set; } = new CallResponseInternalDTO();

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// The type of event: "call.live_started" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.live_started";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ internal partial class CallMemberAddedEventInternalDTO
/// <summary>
/// Call object
/// </summary>
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call", Required = Newtonsoft.Json.Required.Default)]
public CallResponseInternalDTO Call { get; set; } = new CallResponseInternalDTO();

[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("call_cid", Required = Newtonsoft.Json.Required.Default)]
public string CallCid { get; set; } = default!;

[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("created_at", Required = Newtonsoft.Json.Required.Default)]
public System.DateTimeOffset CreatedAt { get; set; } = default!;

/// <summary>
/// the members added to this call
/// </summary>
[Newtonsoft.Json.JsonProperty("members", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("members", Required = Newtonsoft.Json.Required.Default)]
public System.Collections.Generic.List<MemberResponseInternalDTO> Members { get; set; } = new System.Collections.Generic.List<MemberResponseInternalDTO>();

/// <summary>
/// The type of event: "call.member_added" in this case
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default)]
public string Type { get; set; } = "call.member_added";

}
Expand Down
Loading

0 comments on commit 9e4fa4a

Please sign in to comment.