Skip to content

Commit 292d5ca

Browse files
authored
Merge pull request #80 from appwrite/dev
feat: .NET SDK update for version 0.23.0
2 parents da5a57a + b23c03d commit 292d5ca

32 files changed

+670
-63
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

Appwrite/Appwrite.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
44
<PackageId>Appwrite</PackageId>
5-
<Version>0.22.0</Version>
5+
<Version>0.23.0</Version>
66
<Authors>Appwrite Team</Authors>
77
<Company>Appwrite Team</Company>
88
<Description>

Appwrite/Client.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public Client(
6969
_headers = new Dictionary<string, string>()
7070
{
7171
{ "content-type", "application/json" },
72-
{ "user-agent" , $"AppwriteDotNetSDK/0.22.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
72+
{ "user-agent" , $"AppwriteDotNetSDK/0.23.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
7373
{ "x-sdk-name", ".NET" },
7474
{ "x-sdk-platform", "server" },
7575
{ "x-sdk-language", "dotnet" },
76-
{ "x-sdk-version", "0.22.0"},
76+
{ "x-sdk-version", "0.23.0"},
7777
{ "X-Appwrite-Response-Format", "1.8.0" }
7878
};
7979

Appwrite/Enums/BuildRuntime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public BuildRuntime(string value)
4949
public static BuildRuntime Dart33 => new BuildRuntime("dart-3.3");
5050
public static BuildRuntime Dart35 => new BuildRuntime("dart-3.5");
5151
public static BuildRuntime Dart38 => new BuildRuntime("dart-3.8");
52+
public static BuildRuntime Dart39 => new BuildRuntime("dart-3.9");
5253
public static BuildRuntime Dotnet60 => new BuildRuntime("dotnet-6.0");
5354
public static BuildRuntime Dotnet70 => new BuildRuntime("dotnet-7.0");
5455
public static BuildRuntime Dotnet80 => new BuildRuntime("dotnet-8.0");
@@ -76,5 +77,6 @@ public BuildRuntime(string value)
7677
public static BuildRuntime Flutter327 => new BuildRuntime("flutter-3.27");
7778
public static BuildRuntime Flutter329 => new BuildRuntime("flutter-3.29");
7879
public static BuildRuntime Flutter332 => new BuildRuntime("flutter-3.32");
80+
public static BuildRuntime Flutter335 => new BuildRuntime("flutter-3.35");
7981
}
8082
}

Appwrite/Enums/Output.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class Output : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public Output(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static Output Jpg => new Output("jpg");
15+
public static Output Jpeg => new Output("jpeg");
16+
public static Output Png => new Output("png");
17+
public static Output Webp => new Output("webp");
18+
public static Output Heic => new Output("heic");
19+
public static Output Avif => new Output("avif");
20+
public static Output Gif => new Output("gif");
21+
}
22+
}

Appwrite/Enums/Runtime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public Runtime(string value)
4949
public static Runtime Dart33 => new Runtime("dart-3.3");
5050
public static Runtime Dart35 => new Runtime("dart-3.5");
5151
public static Runtime Dart38 => new Runtime("dart-3.8");
52+
public static Runtime Dart39 => new Runtime("dart-3.9");
5253
public static Runtime Dotnet60 => new Runtime("dotnet-6.0");
5354
public static Runtime Dotnet70 => new Runtime("dotnet-7.0");
5455
public static Runtime Dotnet80 => new Runtime("dotnet-8.0");
@@ -76,5 +77,6 @@ public Runtime(string value)
7677
public static Runtime Flutter327 => new Runtime("flutter-3.27");
7778
public static Runtime Flutter329 => new Runtime("flutter-3.29");
7879
public static Runtime Flutter332 => new Runtime("flutter-3.32");
80+
public static Runtime Flutter335 => new Runtime("flutter-3.35");
7981
}
8082
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class TemplateReferenceType : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public TemplateReferenceType(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static TemplateReferenceType Branch => new TemplateReferenceType("branch");
15+
public static TemplateReferenceType Commit => new TemplateReferenceType("commit");
16+
public static TemplateReferenceType Tag => new TemplateReferenceType("tag");
17+
}
18+
}

Appwrite/Enums/Theme.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class Theme : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public Theme(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static Theme Light => new Theme("light");
15+
public static Theme Dark => new Theme("dark");
16+
}
17+
}

0 commit comments

Comments
 (0)