Skip to content

Commit

Permalink
use file scope namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud committed Oct 7, 2024
1 parent 02da7dc commit ed9b1b9
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 427 deletions.
53 changes: 26 additions & 27 deletions dotnet/src/AutoGen.Mistral/DTOs/Error.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,36 @@

using System.Text.Json.Serialization;

namespace AutoGen.Mistral
namespace AutoGen.Mistral;

public class Error
{
public class Error
public Error(string type, string message, string? param = default(string), string? code = default(string))
{
public Error(string type, string message, string? param = default(string), string? code = default(string))
{
Type = type;
Message = message;
Param = param;
Code = code;
}
Type = type;
Message = message;
Param = param;
Code = code;
}

[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }

/// <summary>
/// Gets or Sets Message
/// </summary>
[JsonPropertyName("message")]
public string Message { get; set; }
/// <summary>
/// Gets or Sets Message
/// </summary>
[JsonPropertyName("message")]
public string Message { get; set; }

/// <summary>
/// Gets or Sets Param
/// </summary>
[JsonPropertyName("param")]
public string? Param { get; set; }
/// <summary>
/// Gets or Sets Param
/// </summary>
[JsonPropertyName("param")]
public string? Param { get; set; }

/// <summary>
/// Gets or Sets Code
/// </summary>
[JsonPropertyName("code")]
public string? Code { get; set; }
}
/// <summary>
/// Gets or Sets Code
/// </summary>
[JsonPropertyName("code")]
public string? Code { get; set; }
}
Loading

0 comments on commit ed9b1b9

Please sign in to comment.