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
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.17.0</Version>
<Version>0.18.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.17.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
{ "user-agent" , $"AppwriteDotNetSDK/0.18.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
{ "x-sdk-name", ".NET" },
{ "x-sdk-platform", "server" },
{ "x-sdk-language", "dotnet" },
{ "x-sdk-version", "0.17.0"},
{ "x-sdk-version", "0.18.0"},
{ "X-Appwrite-Response-Format", "1.8.0" }
};

Expand Down
14 changes: 7 additions & 7 deletions Appwrite/Models/Deployment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ public class Deployment
[JsonPropertyName("providerRepositoryUrl")]
public string ProviderRepositoryUrl { get; private set; }

[JsonPropertyName("providerBranch")]
public string ProviderBranch { get; private set; }

[JsonPropertyName("providerCommitHash")]
public string ProviderCommitHash { get; private set; }

Expand All @@ -87,6 +84,9 @@ public class Deployment
[JsonPropertyName("providerCommitUrl")]
public string ProviderCommitUrl { get; private set; }

[JsonPropertyName("providerBranch")]
public string ProviderBranch { get; private set; }

[JsonPropertyName("providerBranchUrl")]
public string ProviderBranchUrl { get; private set; }

Expand All @@ -111,12 +111,12 @@ public Deployment(
string providerRepositoryName,
string providerRepositoryOwner,
string providerRepositoryUrl,
string providerBranch,
string providerCommitHash,
string providerCommitAuthorUrl,
string providerCommitAuthor,
string providerCommitMessage,
string providerCommitUrl,
string providerBranch,
string providerBranchUrl
) {
Id = id;
Expand All @@ -139,12 +139,12 @@ string providerBranchUrl
ProviderRepositoryName = providerRepositoryName;
ProviderRepositoryOwner = providerRepositoryOwner;
ProviderRepositoryUrl = providerRepositoryUrl;
ProviderBranch = providerBranch;
ProviderCommitHash = providerCommitHash;
ProviderCommitAuthorUrl = providerCommitAuthorUrl;
ProviderCommitAuthor = providerCommitAuthor;
ProviderCommitMessage = providerCommitMessage;
ProviderCommitUrl = providerCommitUrl;
ProviderBranch = providerBranch;
ProviderBranchUrl = providerBranchUrl;
}

Expand All @@ -169,12 +169,12 @@ string providerBranchUrl
providerRepositoryName: map["providerRepositoryName"].ToString(),
providerRepositoryOwner: map["providerRepositoryOwner"].ToString(),
providerRepositoryUrl: map["providerRepositoryUrl"].ToString(),
providerBranch: map["providerBranch"].ToString(),
providerCommitHash: map["providerCommitHash"].ToString(),
providerCommitAuthorUrl: map["providerCommitAuthorUrl"].ToString(),
providerCommitAuthor: map["providerCommitAuthor"].ToString(),
providerCommitMessage: map["providerCommitMessage"].ToString(),
providerCommitUrl: map["providerCommitUrl"].ToString(),
providerBranch: map["providerBranch"].ToString(),
providerBranchUrl: map["providerBranchUrl"].ToString()
);

Expand All @@ -200,12 +200,12 @@ string providerBranchUrl
{ "providerRepositoryName", ProviderRepositoryName },
{ "providerRepositoryOwner", ProviderRepositoryOwner },
{ "providerRepositoryUrl", ProviderRepositoryUrl },
{ "providerBranch", ProviderBranch },
{ "providerCommitHash", ProviderCommitHash },
{ "providerCommitAuthorUrl", ProviderCommitAuthorUrl },
{ "providerCommitAuthor", ProviderCommitAuthor },
{ "providerCommitMessage", ProviderCommitMessage },
{ "providerCommitUrl", ProviderCommitUrl },
{ "providerBranch", ProviderBranch },
{ "providerBranchUrl", ProviderBranchUrl }
};
}
Expand Down
4 changes: 4 additions & 0 deletions Appwrite/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ public static string OrderDesc(string attribute) {
return new Query("orderDesc", attribute, null).ToString();
}

public static string OrderRandom() {
return new Query("orderRandom", null, null).ToString();
}

public static string Limit(int limit) {
return new Query("limit", null, limit).ToString();
}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ Appwrite is an open-source backend as a service server that abstract and simplif
Add this reference to your project's `.csproj` file:

```xml
<PackageReference Include="Appwrite" Version="0.17.0" />
<PackageReference Include="Appwrite" Version="0.18.0" />
```

You can install packages from the command line:

```powershell
# Package Manager
Install-Package Appwrite -Version 0.17.0
Install-Package Appwrite -Version 0.18.0

# or .NET CLI
dotnet add package Appwrite --version 0.17.0
dotnet add package Appwrite --version 0.18.0
```


Expand Down
2 changes: 1 addition & 1 deletion docs/examples/databases/create-line-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ AttributeLine result = await databases.CreateLineAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]] // optional
default: [[1, 2], [3, 4], [5, 6]] // optional
);
2 changes: 1 addition & 1 deletion docs/examples/databases/create-point-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ AttributePoint result = await databases.CreatePointAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]] // optional
default: [1, 2] // optional
);
2 changes: 1 addition & 1 deletion docs/examples/databases/create-polygon-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ AttributePolygon result = await databases.CreatePolygonAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]] // optional
default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional
);
2 changes: 1 addition & 1 deletion docs/examples/databases/update-line-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ AttributeLine result = await databases.UpdateLineAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]], // optional
default: [[1, 2], [3, 4], [5, 6]], // optional
newKey: "" // optional
);
2 changes: 1 addition & 1 deletion docs/examples/databases/update-point-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ AttributePoint result = await databases.UpdatePointAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]], // optional
default: [1, 2], // optional
newKey: "" // optional
);
2 changes: 1 addition & 1 deletion docs/examples/databases/update-polygon-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ AttributePolygon result = await databases.UpdatePolygonAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]], // optional
default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional
newKey: "" // optional
);
2 changes: 1 addition & 1 deletion docs/examples/tablesdb/create-line-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ColumnLine result = await tablesDB.CreateLineColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]] // optional
default: [[1, 2], [3, 4], [5, 6]] // optional
);
2 changes: 1 addition & 1 deletion docs/examples/tablesdb/create-point-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ColumnPoint result = await tablesDB.CreatePointColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]] // optional
default: [1, 2] // optional
);
2 changes: 1 addition & 1 deletion docs/examples/tablesdb/create-polygon-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ColumnPolygon result = await tablesDB.CreatePolygonColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]] // optional
default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional
);
2 changes: 1 addition & 1 deletion docs/examples/tablesdb/update-line-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ColumnLine result = await tablesDB.UpdateLineColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]], // optional
default: [[1, 2], [3, 4], [5, 6]], // optional
newKey: "" // optional
);
2 changes: 1 addition & 1 deletion docs/examples/tablesdb/update-point-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ColumnPoint result = await tablesDB.UpdatePointColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]], // optional
default: [1, 2], // optional
newKey: "" // optional
);
2 changes: 1 addition & 1 deletion docs/examples/tablesdb/update-polygon-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ColumnPolygon result = await tablesDB.UpdatePolygonColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: [[1,2], [3, 4]], // optional
default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional
newKey: "" // optional
);