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
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion Appwrite/Appwrite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
<PackageId>Appwrite</PackageId>
<Version>0.22.0</Version>
<Version>0.23.0</Version>
<Authors>Appwrite Team</Authors>
<Company>Appwrite Team</Company>
<Description>
Expand Down
4 changes: 2 additions & 2 deletions Appwrite/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public Client(
_headers = new Dictionary<string, string>()
{
{ "content-type", "application/json" },
{ "user-agent" , $"AppwriteDotNetSDK/0.22.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
{ "user-agent" , $"AppwriteDotNetSDK/0.23.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
{ "x-sdk-name", ".NET" },
{ "x-sdk-platform", "server" },
{ "x-sdk-language", "dotnet" },
{ "x-sdk-version", "0.22.0"},
{ "x-sdk-version", "0.23.0"},
{ "X-Appwrite-Response-Format", "1.8.0" }
};

Expand Down
2 changes: 2 additions & 0 deletions Appwrite/Enums/BuildRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public BuildRuntime(string value)
public static BuildRuntime Dart33 => new BuildRuntime("dart-3.3");
public static BuildRuntime Dart35 => new BuildRuntime("dart-3.5");
public static BuildRuntime Dart38 => new BuildRuntime("dart-3.8");
public static BuildRuntime Dart39 => new BuildRuntime("dart-3.9");
public static BuildRuntime Dotnet60 => new BuildRuntime("dotnet-6.0");
public static BuildRuntime Dotnet70 => new BuildRuntime("dotnet-7.0");
public static BuildRuntime Dotnet80 => new BuildRuntime("dotnet-8.0");
Expand Down Expand Up @@ -76,5 +77,6 @@ public BuildRuntime(string value)
public static BuildRuntime Flutter327 => new BuildRuntime("flutter-3.27");
public static BuildRuntime Flutter329 => new BuildRuntime("flutter-3.29");
public static BuildRuntime Flutter332 => new BuildRuntime("flutter-3.32");
public static BuildRuntime Flutter335 => new BuildRuntime("flutter-3.35");
}
}
22 changes: 22 additions & 0 deletions Appwrite/Enums/Output.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;

namespace Appwrite.Enums
{
public class Output : IEnum
{
public string Value { get; private set; }

public Output(string value)
{
Value = value;
}

public static Output Jpg => new Output("jpg");
public static Output Jpeg => new Output("jpeg");
public static Output Png => new Output("png");
public static Output Webp => new Output("webp");
public static Output Heic => new Output("heic");
public static Output Avif => new Output("avif");
public static Output Gif => new Output("gif");
}
}
2 changes: 2 additions & 0 deletions Appwrite/Enums/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public Runtime(string value)
public static Runtime Dart33 => new Runtime("dart-3.3");
public static Runtime Dart35 => new Runtime("dart-3.5");
public static Runtime Dart38 => new Runtime("dart-3.8");
public static Runtime Dart39 => new Runtime("dart-3.9");
public static Runtime Dotnet60 => new Runtime("dotnet-6.0");
public static Runtime Dotnet70 => new Runtime("dotnet-7.0");
public static Runtime Dotnet80 => new Runtime("dotnet-8.0");
Expand Down Expand Up @@ -76,5 +77,6 @@ public Runtime(string value)
public static Runtime Flutter327 => new Runtime("flutter-3.27");
public static Runtime Flutter329 => new Runtime("flutter-3.29");
public static Runtime Flutter332 => new Runtime("flutter-3.32");
public static Runtime Flutter335 => new Runtime("flutter-3.35");
}
}
18 changes: 18 additions & 0 deletions Appwrite/Enums/TemplateReferenceType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;

namespace Appwrite.Enums
{
public class TemplateReferenceType : IEnum
{
public string Value { get; private set; }

public TemplateReferenceType(string value)
{
Value = value;
}

public static TemplateReferenceType Branch => new TemplateReferenceType("branch");
public static TemplateReferenceType Commit => new TemplateReferenceType("commit");
public static TemplateReferenceType Tag => new TemplateReferenceType("tag");
}
}
17 changes: 17 additions & 0 deletions Appwrite/Enums/Theme.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;

namespace Appwrite.Enums
{
public class Theme : IEnum
{
public string Value { get; private set; }

public Theme(string value)
{
Value = value;
}

public static Theme Light => new Theme("light");
public static Theme Dark => new Theme("dark");
}
}
Loading