From 7ee4214f9bdcb3fe453644028e269b6440709f80 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Sep 2025 09:09:09 +0000 Subject: [PATCH 1/6] chore: regenerate sdks --- Appwrite/Appwrite.csproj | 2 +- Appwrite/Client.cs | 4 +- Appwrite/Enums/AttributeStatus.cs | 20 +++++++++ Appwrite/Enums/DeploymentStatus.cs | 20 +++++++++ Appwrite/Enums/ExecutionStatus.cs | 19 +++++++++ Appwrite/Enums/ExecutionTrigger.cs | 18 ++++++++ Appwrite/Enums/HealthAntivirusStatus.cs | 18 ++++++++ Appwrite/Enums/HealthCheckStatus.cs | 17 ++++++++ Appwrite/Enums/IndexStatus.cs | 20 +++++++++ Appwrite/Enums/MessageStatus.cs | 20 +++++++++ Appwrite/Models/AlgoArgon2.cs | 2 +- Appwrite/Models/AlgoBcrypt.cs | 2 +- Appwrite/Models/AlgoMd5.cs | 2 +- Appwrite/Models/AlgoPhpass.cs | 2 +- Appwrite/Models/AlgoScrypt.cs | 2 +- Appwrite/Models/AlgoScryptModified.cs | 2 +- Appwrite/Models/AlgoSha.cs | 2 +- Appwrite/Models/AttributeBoolean.cs | 28 ++++++------- Appwrite/Models/AttributeDatetime.cs | 28 ++++++------- Appwrite/Models/AttributeEmail.cs | 28 ++++++------- Appwrite/Models/AttributeEnum.cs | 32 +++++++-------- Appwrite/Models/AttributeFloat.cs | 28 ++++++------- Appwrite/Models/AttributeInteger.cs | 28 ++++++------- Appwrite/Models/AttributeIp.cs | 28 ++++++------- Appwrite/Models/AttributeLine.cs | 30 +++++++------- Appwrite/Models/AttributeList.cs | 6 +-- Appwrite/Models/AttributePoint.cs | 30 +++++++------- Appwrite/Models/AttributePolygon.cs | 30 +++++++------- Appwrite/Models/AttributeRelationship.cs | 22 +++++----- Appwrite/Models/AttributeString.cs | 28 ++++++------- Appwrite/Models/AttributeUrl.cs | 28 ++++++------- Appwrite/Models/Bucket.cs | 32 +++++++-------- Appwrite/Models/BucketList.cs | 6 +-- Appwrite/Models/Collection.cs | 36 ++++++++-------- Appwrite/Models/CollectionList.cs | 6 +-- Appwrite/Models/ColumnBoolean.cs | 20 ++++----- Appwrite/Models/ColumnDatetime.cs | 20 ++++----- Appwrite/Models/ColumnEmail.cs | 20 ++++----- Appwrite/Models/ColumnEnum.cs | 24 +++++------ Appwrite/Models/ColumnFloat.cs | 20 ++++----- Appwrite/Models/ColumnIndex.cs | 32 +++++++-------- Appwrite/Models/ColumnIndexList.cs | 6 +-- Appwrite/Models/ColumnInteger.cs | 20 ++++----- Appwrite/Models/ColumnIp.cs | 20 ++++----- Appwrite/Models/ColumnLine.cs | 22 +++++----- Appwrite/Models/ColumnList.cs | 6 +-- Appwrite/Models/ColumnPoint.cs | 22 +++++----- Appwrite/Models/ColumnPolygon.cs | 22 +++++----- Appwrite/Models/ColumnRelationship.cs | 14 +++---- Appwrite/Models/ColumnString.cs | 20 ++++----- Appwrite/Models/ColumnUrl.cs | 20 ++++----- Appwrite/Models/Continent.cs | 2 +- Appwrite/Models/ContinentList.cs | 6 +-- Appwrite/Models/Country.cs | 2 +- Appwrite/Models/CountryList.cs | 6 +-- Appwrite/Models/Currency.cs | 2 +- Appwrite/Models/CurrencyList.cs | 6 +-- Appwrite/Models/Database.cs | 20 ++++----- Appwrite/Models/DatabaseList.cs | 6 +-- Appwrite/Models/Deployment.cs | 28 ++++++------- Appwrite/Models/DeploymentList.cs | 6 +-- Appwrite/Models/Document.cs | 46 ++++++++++----------- Appwrite/Models/DocumentList.cs | 6 +-- Appwrite/Models/Execution.cs | 52 ++++++++++++------------ Appwrite/Models/ExecutionList.cs | 6 +-- Appwrite/Models/File.cs | 28 ++++++------- Appwrite/Models/FileList.cs | 6 +-- Appwrite/Models/Framework.cs | 10 ++--- Appwrite/Models/FrameworkAdapter.cs | 2 +- Appwrite/Models/FrameworkList.cs | 6 +-- Appwrite/Models/Function.cs | 36 ++++++++-------- Appwrite/Models/FunctionList.cs | 6 +-- Appwrite/Models/Headers.cs | 8 ++-- Appwrite/Models/HealthAntivirus.cs | 10 ++--- Appwrite/Models/HealthCertificate.cs | 2 +- Appwrite/Models/HealthQueue.cs | 2 +- Appwrite/Models/HealthStatus.cs | 10 ++--- Appwrite/Models/HealthTime.cs | 2 +- Appwrite/Models/Identity.cs | 20 ++++----- Appwrite/Models/IdentityList.cs | 6 +-- Appwrite/Models/Index.cs | 40 +++++++++--------- Appwrite/Models/IndexList.cs | 6 +-- Appwrite/Models/JWT.cs | 2 +- Appwrite/Models/Language.cs | 2 +- Appwrite/Models/LanguageList.cs | 6 +-- Appwrite/Models/Locale.cs | 2 +- Appwrite/Models/LocaleCode.cs | 2 +- Appwrite/Models/LocaleCodeList.cs | 6 +-- Appwrite/Models/Log.cs | 8 ++-- Appwrite/Models/LogList.cs | 6 +-- Appwrite/Models/Membership.cs | 24 +++++------ Appwrite/Models/MembershipList.cs | 6 +-- Appwrite/Models/Message.cs | 44 ++++++++++---------- Appwrite/Models/MessageList.cs | 6 +-- Appwrite/Models/MfaChallenge.cs | 14 +++---- Appwrite/Models/MfaFactors.cs | 2 +- Appwrite/Models/MfaRecoveryCodes.cs | 6 +-- Appwrite/Models/MfaType.cs | 2 +- Appwrite/Models/Phone.cs | 2 +- Appwrite/Models/PhoneList.cs | 6 +-- Appwrite/Models/Preferences.cs | 2 +- Appwrite/Models/Provider.cs | 20 ++++----- Appwrite/Models/ProviderList.cs | 6 +-- Appwrite/Models/ResourceToken.cs | 14 +++---- Appwrite/Models/ResourceTokenList.cs | 6 +-- Appwrite/Models/Row.cs | 46 ++++++++++----------- Appwrite/Models/RowList.cs | 6 +-- Appwrite/Models/Runtime.cs | 18 ++++---- Appwrite/Models/RuntimeList.cs | 6 +-- Appwrite/Models/Session.cs | 24 +++++------ Appwrite/Models/SessionList.cs | 6 +-- Appwrite/Models/Site.cs | 24 +++++------ Appwrite/Models/SiteList.cs | 6 +-- Appwrite/Models/Specification.cs | 2 +- Appwrite/Models/SpecificationList.cs | 6 +-- Appwrite/Models/Subscriber.cs | 20 ++++----- Appwrite/Models/SubscriberList.cs | 6 +-- Appwrite/Models/Table.cs | 36 ++++++++-------- Appwrite/Models/TableList.cs | 6 +-- Appwrite/Models/Target.cs | 20 ++++----- Appwrite/Models/TargetList.cs | 6 +-- Appwrite/Models/Team.cs | 20 ++++----- Appwrite/Models/TeamList.cs | 6 +-- Appwrite/Models/Token.cs | 14 +++---- Appwrite/Models/Topic.cs | 24 +++++------ Appwrite/Models/TopicList.cs | 6 +-- Appwrite/Models/User.cs | 28 ++++++------- Appwrite/Models/UserList.cs | 6 +-- Appwrite/Models/Variable.cs | 26 ++++++------ Appwrite/Models/VariableList.cs | 6 +-- Appwrite/Query.cs | 4 -- README.md | 6 +-- 132 files changed, 1027 insertions(+), 879 deletions(-) create mode 100644 Appwrite/Enums/AttributeStatus.cs create mode 100644 Appwrite/Enums/DeploymentStatus.cs create mode 100644 Appwrite/Enums/ExecutionStatus.cs create mode 100644 Appwrite/Enums/ExecutionTrigger.cs create mode 100644 Appwrite/Enums/HealthAntivirusStatus.cs create mode 100644 Appwrite/Enums/HealthCheckStatus.cs create mode 100644 Appwrite/Enums/IndexStatus.cs create mode 100644 Appwrite/Enums/MessageStatus.cs diff --git a/Appwrite/Appwrite.csproj b/Appwrite/Appwrite.csproj index 92ed7e5..b388d2e 100644 --- a/Appwrite/Appwrite.csproj +++ b/Appwrite/Appwrite.csproj @@ -2,7 +2,7 @@ netstandard2.0;net462 Appwrite - 0.18.0 + 0.19.0 Appwrite Team Appwrite Team diff --git a/Appwrite/Client.cs b/Appwrite/Client.cs index 983108d..a01f247 100644 --- a/Appwrite/Client.cs +++ b/Appwrite/Client.cs @@ -69,11 +69,11 @@ public Client( _headers = new Dictionary() { { "content-type", "application/json" }, - { "user-agent" , $"AppwriteDotNetSDK/0.18.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"}, + { "user-agent" , $"AppwriteDotNetSDK/0.19.0 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"}, { "x-sdk-name", ".NET" }, { "x-sdk-platform", "server" }, { "x-sdk-language", "dotnet" }, - { "x-sdk-version", "0.18.0"}, + { "x-sdk-version", "0.19.0"}, { "X-Appwrite-Response-Format", "1.8.0" } }; diff --git a/Appwrite/Enums/AttributeStatus.cs b/Appwrite/Enums/AttributeStatus.cs new file mode 100644 index 0000000..3ba7e0f --- /dev/null +++ b/Appwrite/Enums/AttributeStatus.cs @@ -0,0 +1,20 @@ +using System; + +namespace Appwrite.Enums +{ + public class AttributeStatus : IEnum + { + public string Value { get; private set; } + + public AttributeStatus(string value) + { + Value = value; + } + + public static AttributeStatus Available => new AttributeStatus("available"); + public static AttributeStatus Processing => new AttributeStatus("processing"); + public static AttributeStatus Deleting => new AttributeStatus("deleting"); + public static AttributeStatus Stuck => new AttributeStatus("stuck"); + public static AttributeStatus Failed => new AttributeStatus("failed"); + } +} diff --git a/Appwrite/Enums/DeploymentStatus.cs b/Appwrite/Enums/DeploymentStatus.cs new file mode 100644 index 0000000..70584f7 --- /dev/null +++ b/Appwrite/Enums/DeploymentStatus.cs @@ -0,0 +1,20 @@ +using System; + +namespace Appwrite.Enums +{ + public class DeploymentStatus : IEnum + { + public string Value { get; private set; } + + public DeploymentStatus(string value) + { + Value = value; + } + + public static DeploymentStatus Waiting => new DeploymentStatus("waiting"); + public static DeploymentStatus Processing => new DeploymentStatus("processing"); + public static DeploymentStatus Building => new DeploymentStatus("building"); + public static DeploymentStatus Ready => new DeploymentStatus("ready"); + public static DeploymentStatus Failed => new DeploymentStatus("failed"); + } +} diff --git a/Appwrite/Enums/ExecutionStatus.cs b/Appwrite/Enums/ExecutionStatus.cs new file mode 100644 index 0000000..c8e0b2a --- /dev/null +++ b/Appwrite/Enums/ExecutionStatus.cs @@ -0,0 +1,19 @@ +using System; + +namespace Appwrite.Enums +{ + public class ExecutionStatus : IEnum + { + public string Value { get; private set; } + + public ExecutionStatus(string value) + { + Value = value; + } + + public static ExecutionStatus Waiting => new ExecutionStatus("waiting"); + public static ExecutionStatus Processing => new ExecutionStatus("processing"); + public static ExecutionStatus Completed => new ExecutionStatus("completed"); + public static ExecutionStatus Failed => new ExecutionStatus("failed"); + } +} diff --git a/Appwrite/Enums/ExecutionTrigger.cs b/Appwrite/Enums/ExecutionTrigger.cs new file mode 100644 index 0000000..6d10269 --- /dev/null +++ b/Appwrite/Enums/ExecutionTrigger.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class ExecutionTrigger : IEnum + { + public string Value { get; private set; } + + public ExecutionTrigger(string value) + { + Value = value; + } + + public static ExecutionTrigger Http => new ExecutionTrigger("http"); + public static ExecutionTrigger Schedule => new ExecutionTrigger("schedule"); + public static ExecutionTrigger Event => new ExecutionTrigger("event"); + } +} diff --git a/Appwrite/Enums/HealthAntivirusStatus.cs b/Appwrite/Enums/HealthAntivirusStatus.cs new file mode 100644 index 0000000..19b947f --- /dev/null +++ b/Appwrite/Enums/HealthAntivirusStatus.cs @@ -0,0 +1,18 @@ +using System; + +namespace Appwrite.Enums +{ + public class HealthAntivirusStatus : IEnum + { + public string Value { get; private set; } + + public HealthAntivirusStatus(string value) + { + Value = value; + } + + public static HealthAntivirusStatus Disabled => new HealthAntivirusStatus("disabled"); + public static HealthAntivirusStatus Offline => new HealthAntivirusStatus("offline"); + public static HealthAntivirusStatus Online => new HealthAntivirusStatus("online"); + } +} diff --git a/Appwrite/Enums/HealthCheckStatus.cs b/Appwrite/Enums/HealthCheckStatus.cs new file mode 100644 index 0000000..881245e --- /dev/null +++ b/Appwrite/Enums/HealthCheckStatus.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class HealthCheckStatus : IEnum + { + public string Value { get; private set; } + + public HealthCheckStatus(string value) + { + Value = value; + } + + public static HealthCheckStatus Pass => new HealthCheckStatus("pass"); + public static HealthCheckStatus Fail => new HealthCheckStatus("fail"); + } +} diff --git a/Appwrite/Enums/IndexStatus.cs b/Appwrite/Enums/IndexStatus.cs new file mode 100644 index 0000000..71b2ddc --- /dev/null +++ b/Appwrite/Enums/IndexStatus.cs @@ -0,0 +1,20 @@ +using System; + +namespace Appwrite.Enums +{ + public class IndexStatus : IEnum + { + public string Value { get; private set; } + + public IndexStatus(string value) + { + Value = value; + } + + public static IndexStatus Available => new IndexStatus("available"); + public static IndexStatus Processing => new IndexStatus("processing"); + public static IndexStatus Deleting => new IndexStatus("deleting"); + public static IndexStatus Stuck => new IndexStatus("stuck"); + public static IndexStatus Failed => new IndexStatus("failed"); + } +} diff --git a/Appwrite/Enums/MessageStatus.cs b/Appwrite/Enums/MessageStatus.cs new file mode 100644 index 0000000..1c6c087 --- /dev/null +++ b/Appwrite/Enums/MessageStatus.cs @@ -0,0 +1,20 @@ +using System; + +namespace Appwrite.Enums +{ + public class MessageStatus : IEnum + { + public string Value { get; private set; } + + public MessageStatus(string value) + { + Value = value; + } + + public static MessageStatus Draft => new MessageStatus("draft"); + public static MessageStatus Processing => new MessageStatus("processing"); + public static MessageStatus Scheduled => new MessageStatus("scheduled"); + public static MessageStatus Sent => new MessageStatus("sent"); + public static MessageStatus Failed => new MessageStatus("failed"); + } +} diff --git a/Appwrite/Models/AlgoArgon2.cs b/Appwrite/Models/AlgoArgon2.cs index 11d7279..85c664d 100644 --- a/Appwrite/Models/AlgoArgon2.cs +++ b/Appwrite/Models/AlgoArgon2.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AlgoBcrypt.cs b/Appwrite/Models/AlgoBcrypt.cs index e70f8a7..7fb9684 100644 --- a/Appwrite/Models/AlgoBcrypt.cs +++ b/Appwrite/Models/AlgoBcrypt.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AlgoMd5.cs b/Appwrite/Models/AlgoMd5.cs index a4787d0..a6ed243 100644 --- a/Appwrite/Models/AlgoMd5.cs +++ b/Appwrite/Models/AlgoMd5.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AlgoPhpass.cs b/Appwrite/Models/AlgoPhpass.cs index 6fe4fc2..7fe4a67 100644 --- a/Appwrite/Models/AlgoPhpass.cs +++ b/Appwrite/Models/AlgoPhpass.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AlgoScrypt.cs b/Appwrite/Models/AlgoScrypt.cs index 1cfb0da..b6079ac 100644 --- a/Appwrite/Models/AlgoScrypt.cs +++ b/Appwrite/Models/AlgoScrypt.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AlgoScryptModified.cs b/Appwrite/Models/AlgoScryptModified.cs index dd69a6b..6b3d1c5 100644 --- a/Appwrite/Models/AlgoScryptModified.cs +++ b/Appwrite/Models/AlgoScryptModified.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AlgoSha.cs b/Appwrite/Models/AlgoSha.cs index 76f7a37..fa5b50d 100644 --- a/Appwrite/Models/AlgoSha.cs +++ b/Appwrite/Models/AlgoSha.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/AttributeBoolean.cs b/Appwrite/Models/AttributeBoolean.cs index 66b4b20..db31589 100644 --- a/Appwrite/Models/AttributeBoolean.cs +++ b/Appwrite/Models/AttributeBoolean.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeBoolean public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,18 +28,18 @@ public class AttributeBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public bool? Default { get; private set; } + public bool? @Default { get; private set; } public AttributeBoolean( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -53,15 +53,15 @@ public AttributeBoolean( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributeBoolean From(Dictionary map) => new AttributeBoolean( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -74,13 +74,13 @@ public AttributeBoolean( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeDatetime.cs b/Appwrite/Models/AttributeDatetime.cs index e68b33f..9b5471d 100644 --- a/Appwrite/Models/AttributeDatetime.cs +++ b/Appwrite/Models/AttributeDatetime.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeDatetime public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,21 +28,21 @@ public class AttributeDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeDatetime( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -57,16 +57,16 @@ public AttributeDatetime( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeDatetime From(Dictionary map) => new AttributeDatetime( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -80,14 +80,14 @@ public AttributeDatetime( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeEmail.cs b/Appwrite/Models/AttributeEmail.cs index af8190e..cc90716 100644 --- a/Appwrite/Models/AttributeEmail.cs +++ b/Appwrite/Models/AttributeEmail.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeEmail public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,21 +28,21 @@ public class AttributeEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeEmail( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -57,16 +57,16 @@ public AttributeEmail( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeEmail From(Dictionary map) => new AttributeEmail( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -80,14 +80,14 @@ public AttributeEmail( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeEnum.cs b/Appwrite/Models/AttributeEnum.cs index e07fa43..142271a 100644 --- a/Appwrite/Models/AttributeEnum.cs +++ b/Appwrite/Models/AttributeEnum.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeEnum public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,30 +28,30 @@ public class AttributeEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("elements")] - public List Elements { get; private set; } + public List<string> Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeEnum( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List elements, + List<string> elements, string format, string? xdefault ) { @@ -61,17 +61,17 @@ public AttributeEnum( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Elements = elements; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeEnum From(Dictionary map) => new AttributeEnum( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -86,15 +86,15 @@ public AttributeEnum( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "elements", Elements }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeFloat.cs b/Appwrite/Models/AttributeFloat.cs index ff183a3..01dc335 100644 --- a/Appwrite/Models/AttributeFloat.cs +++ b/Appwrite/Models/AttributeFloat.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeFloat public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,10 +28,10 @@ public class AttributeFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -40,12 +40,12 @@ public class AttributeFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? Default { get; private set; } + public double? @Default { get; private set; } public AttributeFloat( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -61,17 +61,17 @@ public AttributeFloat( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static AttributeFloat From(Dictionary map) => new AttributeFloat( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -86,15 +86,15 @@ public AttributeFloat( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeInteger.cs b/Appwrite/Models/AttributeInteger.cs index 4803990..15364d5 100644 --- a/Appwrite/Models/AttributeInteger.cs +++ b/Appwrite/Models/AttributeInteger.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeInteger public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,10 +28,10 @@ public class AttributeInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -40,12 +40,12 @@ public class AttributeInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? Default { get; private set; } + public long? @Default { get; private set; } public AttributeInteger( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -61,17 +61,17 @@ public AttributeInteger( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static AttributeInteger From(Dictionary map) => new AttributeInteger( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -86,15 +86,15 @@ public AttributeInteger( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeIp.cs b/Appwrite/Models/AttributeIp.cs index cfe4727..45a1f2e 100644 --- a/Appwrite/Models/AttributeIp.cs +++ b/Appwrite/Models/AttributeIp.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeIp public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,21 +28,21 @@ public class AttributeIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeIp( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -57,16 +57,16 @@ public AttributeIp( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeIp From(Dictionary map) => new AttributeIp( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -80,14 +80,14 @@ public AttributeIp( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeLine.cs b/Appwrite/Models/AttributeLine.cs index 32a9c2c..55f7ba3 100644 --- a/Appwrite/Models/AttributeLine.cs +++ b/Appwrite/Models/AttributeLine.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeLine public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,24 +28,24 @@ public class AttributeLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public AttributeLine( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -53,15 +53,15 @@ public AttributeLine( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributeLine From(Dictionary map) => new AttributeLine( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -74,13 +74,13 @@ public AttributeLine( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeList.cs b/Appwrite/Models/AttributeList.cs index 1fa17b7..472cd01 100644 --- a/Appwrite/Models/AttributeList.cs +++ b/Appwrite/Models/AttributeList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class AttributeList public long Total { get; private set; } [JsonPropertyName("attributes")] - public List Attributes { get; private set; } + public List<object> Attributes { get; private set; } public AttributeList( long total, - List attributes + List<object> attributes ) { Total = total; Attributes = attributes; diff --git a/Appwrite/Models/AttributePoint.cs b/Appwrite/Models/AttributePoint.cs index 799d2e7..fd2146d 100644 --- a/Appwrite/Models/AttributePoint.cs +++ b/Appwrite/Models/AttributePoint.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributePoint public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,24 +28,24 @@ public class AttributePoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public AttributePoint( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -53,15 +53,15 @@ public AttributePoint( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributePoint From(Dictionary map) => new AttributePoint( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -74,13 +74,13 @@ public AttributePoint( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributePolygon.cs b/Appwrite/Models/AttributePolygon.cs index 8558933..fbb4020 100644 --- a/Appwrite/Models/AttributePolygon.cs +++ b/Appwrite/Models/AttributePolygon.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributePolygon public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,24 +28,24 @@ public class AttributePolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public AttributePolygon( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -53,15 +53,15 @@ public AttributePolygon( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributePolygon From(Dictionary map) => new AttributePolygon( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -74,13 +74,13 @@ public AttributePolygon( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeRelationship.cs b/Appwrite/Models/AttributeRelationship.cs index f0a1ba1..2be8db2 100644 --- a/Appwrite/Models/AttributeRelationship.cs +++ b/Appwrite/Models/AttributeRelationship.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeRelationship public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,10 +28,10 @@ public class AttributeRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("relatedCollection")] public string RelatedCollection { get; private set; } @@ -54,7 +54,7 @@ public class AttributeRelationship public AttributeRelationship( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -73,8 +73,8 @@ string side Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; RelatedCollection = relatedCollection; RelationType = relationType; TwoWay = twoWay; @@ -86,7 +86,7 @@ string side public static AttributeRelationship From(Dictionary map) => new AttributeRelationship( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -104,12 +104,12 @@ string side { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "relatedCollection", RelatedCollection }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/AttributeString.cs b/Appwrite/Models/AttributeString.cs index 7aeb237..c5d7383 100644 --- a/Appwrite/Models/AttributeString.cs +++ b/Appwrite/Models/AttributeString.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeString public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,16 +28,16 @@ public class AttributeString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -45,7 +45,7 @@ public class AttributeString public AttributeString( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -61,17 +61,17 @@ public AttributeString( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Size = size; - Default = xdefault; + @Default = xdefault; Encrypt = encrypt; } public static AttributeString From(Dictionary map) => new AttributeString( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -86,14 +86,14 @@ public AttributeString( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "size", Size }, - { "default", Default }, + { "default", @Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/AttributeUrl.cs b/Appwrite/Models/AttributeUrl.cs index f2a7af9..5c5b805 100644 --- a/Appwrite/Models/AttributeUrl.cs +++ b/Appwrite/Models/AttributeUrl.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,7 +16,7 @@ public class AttributeUrl public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public AttributeStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -28,21 +28,21 @@ public class AttributeUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeUrl( string key, string type, - string status, + AttributeStatus status, string error, bool required, bool? array, @@ -57,16 +57,16 @@ public AttributeUrl( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeUrl From(Dictionary map) => new AttributeUrl( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new AttributeStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -80,14 +80,14 @@ public AttributeUrl( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/Bucket.cs b/Appwrite/Models/Bucket.cs index 6308fdf..54abfff 100644 --- a/Appwrite/Models/Bucket.cs +++ b/Appwrite/Models/Bucket.cs @@ -1,25 +1,25 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Bucket { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("fileSecurity")] public bool FileSecurity { get; private set; } @@ -34,7 +34,7 @@ public class Bucket public long MaximumFileSize { get; private set; } [JsonPropertyName("allowedFileExtensions")] - public List AllowedFileExtensions { get; private set; } + public List<string> AllowedFileExtensions { get; private set; } [JsonPropertyName("compression")] public string Compression { get; private set; } @@ -49,20 +49,20 @@ public Bucket( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, bool fileSecurity, string name, bool enabled, long maximumFileSize, - List allowedFileExtensions, + List<string> allowedFileExtensions, string compression, bool encryption, bool antivirus ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; FileSecurity = fileSecurity; Name = name; Enabled = enabled; @@ -90,10 +90,10 @@ bool antivirus public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "fileSecurity", FileSecurity }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/BucketList.cs b/Appwrite/Models/BucketList.cs index 3435f29..664c98f 100644 --- a/Appwrite/Models/BucketList.cs +++ b/Appwrite/Models/BucketList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class BucketList public long Total { get; private set; } [JsonPropertyName("buckets")] - public List Buckets { get; private set; } + public List<Bucket> Buckets { get; private set; } public BucketList( long total, - List buckets + List<Bucket> buckets ) { Total = total; Buckets = buckets; diff --git a/Appwrite/Models/Collection.cs b/Appwrite/Models/Collection.cs index 2629bae..f1ce8be 100644 --- a/Appwrite/Models/Collection.cs +++ b/Appwrite/Models/Collection.cs @@ -1,25 +1,25 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Collection { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -34,27 +34,27 @@ public class Collection public bool DocumentSecurity { get; private set; } [JsonPropertyName("attributes")] - public List Attributes { get; private set; } + public List<object> Attributes { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<Index> Indexes { get; private set; } public Collection( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string databaseId, string name, bool enabled, bool documentSecurity, - List attributes, - List indexes + List<object> attributes, + List<Index> indexes ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -78,10 +78,10 @@ List indexes public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/CollectionList.cs b/Appwrite/Models/CollectionList.cs index cab53db..bd62a6f 100644 --- a/Appwrite/Models/CollectionList.cs +++ b/Appwrite/Models/CollectionList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class CollectionList public long Total { get; private set; } [JsonPropertyName("collections")] - public List Collections { get; private set; } + public List<Collection> Collections { get; private set; } public CollectionList( long total, - List collections + List<Collection> collections ) { Total = total; Collections = collections; diff --git a/Appwrite/Models/ColumnBoolean.cs b/Appwrite/Models/ColumnBoolean.cs index 485e4a2..1992714 100644 --- a/Appwrite/Models/ColumnBoolean.cs +++ b/Appwrite/Models/ColumnBoolean.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,13 +28,13 @@ public class ColumnBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public bool? Default { get; private set; } + public bool? @Default { get; private set; } public ColumnBoolean( string key, @@ -53,9 +53,9 @@ public ColumnBoolean( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnBoolean From(Dictionary map) => new ColumnBoolean( @@ -78,9 +78,9 @@ public ColumnBoolean( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnDatetime.cs b/Appwrite/Models/ColumnDatetime.cs index 5116f1f..5b2944a 100644 --- a/Appwrite/Models/ColumnDatetime.cs +++ b/Appwrite/Models/ColumnDatetime.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,16 +28,16 @@ public class ColumnDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnDatetime( string key, @@ -57,10 +57,10 @@ public ColumnDatetime( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnDatetime From(Dictionary map) => new ColumnDatetime( @@ -84,10 +84,10 @@ public ColumnDatetime( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnEmail.cs b/Appwrite/Models/ColumnEmail.cs index 1bb4145..58334db 100644 --- a/Appwrite/Models/ColumnEmail.cs +++ b/Appwrite/Models/ColumnEmail.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,16 +28,16 @@ public class ColumnEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnEmail( string key, @@ -57,10 +57,10 @@ public ColumnEmail( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnEmail From(Dictionary map) => new ColumnEmail( @@ -84,10 +84,10 @@ public ColumnEmail( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnEnum.cs b/Appwrite/Models/ColumnEnum.cs index beb6ac8..96ff106 100644 --- a/Appwrite/Models/ColumnEnum.cs +++ b/Appwrite/Models/ColumnEnum.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,19 +28,19 @@ public class ColumnEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("elements")] - public List Elements { get; private set; } + public List<string> Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnEnum( string key, @@ -51,7 +51,7 @@ public ColumnEnum( bool? array, string createdAt, string updatedAt, - List elements, + List<string> elements, string format, string? xdefault ) { @@ -61,11 +61,11 @@ public ColumnEnum( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Elements = elements; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnEnum From(Dictionary map) => new ColumnEnum( @@ -90,11 +90,11 @@ public ColumnEnum( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "elements", Elements }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnFloat.cs b/Appwrite/Models/ColumnFloat.cs index 595134c..ecc1433 100644 --- a/Appwrite/Models/ColumnFloat.cs +++ b/Appwrite/Models/ColumnFloat.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,10 +28,10 @@ public class ColumnFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -40,7 +40,7 @@ public class ColumnFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? Default { get; private set; } + public double? @Default { get; private set; } public ColumnFloat( string key, @@ -61,11 +61,11 @@ public ColumnFloat( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static ColumnFloat From(Dictionary map) => new ColumnFloat( @@ -90,11 +90,11 @@ public ColumnFloat( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnIndex.cs b/Appwrite/Models/ColumnIndex.cs index ac2e683..f5dc63e 100644 --- a/Appwrite/Models/ColumnIndex.cs +++ b/Appwrite/Models/ColumnIndex.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class ColumnIndex { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -31,13 +31,13 @@ public class ColumnIndex public string Error { get; private set; } [JsonPropertyName("columns")] - public List Columns { get; private set; } + public List<string> Columns { get; private set; } [JsonPropertyName("lengths")] - public List Lengths { get; private set; } + public List<long> Lengths { get; private set; } [JsonPropertyName("orders")] - public List? Orders { get; private set; } + public List<string>? Orders { get; private set; } public ColumnIndex( string id, @@ -47,13 +47,13 @@ public ColumnIndex( string type, string status, string error, - List columns, - List lengths, - List? orders + List<string> columns, + List<long> lengths, + List<string>? orders ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -78,9 +78,9 @@ public ColumnIndex( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "key", Key }, { "type", Type }, { "status", Status }, diff --git a/Appwrite/Models/ColumnIndexList.cs b/Appwrite/Models/ColumnIndexList.cs index d1de758..49b13da 100644 --- a/Appwrite/Models/ColumnIndexList.cs +++ b/Appwrite/Models/ColumnIndexList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class ColumnIndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<ColumnIndex> Indexes { get; private set; } public ColumnIndexList( long total, - List indexes + List<ColumnIndex> indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/ColumnInteger.cs b/Appwrite/Models/ColumnInteger.cs index 1637e11..fcf796b 100644 --- a/Appwrite/Models/ColumnInteger.cs +++ b/Appwrite/Models/ColumnInteger.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,10 +28,10 @@ public class ColumnInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -40,7 +40,7 @@ public class ColumnInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? Default { get; private set; } + public long? @Default { get; private set; } public ColumnInteger( string key, @@ -61,11 +61,11 @@ public ColumnInteger( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static ColumnInteger From(Dictionary map) => new ColumnInteger( @@ -90,11 +90,11 @@ public ColumnInteger( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnIp.cs b/Appwrite/Models/ColumnIp.cs index 31ae334..f92c721 100644 --- a/Appwrite/Models/ColumnIp.cs +++ b/Appwrite/Models/ColumnIp.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,16 +28,16 @@ public class ColumnIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnIp( string key, @@ -57,10 +57,10 @@ public ColumnIp( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnIp From(Dictionary map) => new ColumnIp( @@ -84,10 +84,10 @@ public ColumnIp( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnLine.cs b/Appwrite/Models/ColumnLine.cs index c00c8c6..1dad33f 100644 --- a/Appwrite/Models/ColumnLine.cs +++ b/Appwrite/Models/ColumnLine.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,13 +28,13 @@ public class ColumnLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public ColumnLine( string key, @@ -45,7 +45,7 @@ public ColumnLine( bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -53,9 +53,9 @@ public ColumnLine( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnLine From(Dictionary map) => new ColumnLine( @@ -78,9 +78,9 @@ public ColumnLine( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnList.cs b/Appwrite/Models/ColumnList.cs index f98fcd0..a871335 100644 --- a/Appwrite/Models/ColumnList.cs +++ b/Appwrite/Models/ColumnList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class ColumnList public long Total { get; private set; } [JsonPropertyName("columns")] - public List Columns { get; private set; } + public List<object> Columns { get; private set; } public ColumnList( long total, - List columns + List<object> columns ) { Total = total; Columns = columns; diff --git a/Appwrite/Models/ColumnPoint.cs b/Appwrite/Models/ColumnPoint.cs index 38b70c4..78c8fa0 100644 --- a/Appwrite/Models/ColumnPoint.cs +++ b/Appwrite/Models/ColumnPoint.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,13 +28,13 @@ public class ColumnPoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public ColumnPoint( string key, @@ -45,7 +45,7 @@ public ColumnPoint( bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -53,9 +53,9 @@ public ColumnPoint( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnPoint From(Dictionary map) => new ColumnPoint( @@ -78,9 +78,9 @@ public ColumnPoint( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnPolygon.cs b/Appwrite/Models/ColumnPolygon.cs index 7262f65..73c4d13 100644 --- a/Appwrite/Models/ColumnPolygon.cs +++ b/Appwrite/Models/ColumnPolygon.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,13 +28,13 @@ public class ColumnPolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public ColumnPolygon( string key, @@ -45,7 +45,7 @@ public ColumnPolygon( bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -53,9 +53,9 @@ public ColumnPolygon( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnPolygon From(Dictionary map) => new ColumnPolygon( @@ -78,9 +78,9 @@ public ColumnPolygon( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnRelationship.cs b/Appwrite/Models/ColumnRelationship.cs index 7748dea..a50d9ce 100644 --- a/Appwrite/Models/ColumnRelationship.cs +++ b/Appwrite/Models/ColumnRelationship.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,10 +28,10 @@ public class ColumnRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("relatedTable")] public string RelatedTable { get; private set; } @@ -73,8 +73,8 @@ string side Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; RelatedTable = relatedTable; RelationType = relationType; TwoWay = twoWay; @@ -108,8 +108,8 @@ string side { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "relatedTable", RelatedTable }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/ColumnString.cs b/Appwrite/Models/ColumnString.cs index cc6dfbe..ac1560a 100644 --- a/Appwrite/Models/ColumnString.cs +++ b/Appwrite/Models/ColumnString.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,16 +28,16 @@ public class ColumnString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -61,10 +61,10 @@ public ColumnString( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Size = size; - Default = xdefault; + @Default = xdefault; Encrypt = encrypt; } @@ -90,10 +90,10 @@ public ColumnString( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "size", Size }, - { "default", Default }, + { "default", @Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/ColumnUrl.cs b/Appwrite/Models/ColumnUrl.cs index 14d1aab..989d47c 100644 --- a/Appwrite/Models/ColumnUrl.cs +++ b/Appwrite/Models/ColumnUrl.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -28,16 +28,16 @@ public class ColumnUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnUrl( string key, @@ -57,10 +57,10 @@ public ColumnUrl( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnUrl From(Dictionary map) => new ColumnUrl( @@ -84,10 +84,10 @@ public ColumnUrl( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/Continent.cs b/Appwrite/Models/Continent.cs index 7b4361d..da86ab9 100644 --- a/Appwrite/Models/Continent.cs +++ b/Appwrite/Models/Continent.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/ContinentList.cs b/Appwrite/Models/ContinentList.cs index 84f16d4..e7c2b56 100644 --- a/Appwrite/Models/ContinentList.cs +++ b/Appwrite/Models/ContinentList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class ContinentList public long Total { get; private set; } [JsonPropertyName("continents")] - public List Continents { get; private set; } + public List<Continent> Continents { get; private set; } public ContinentList( long total, - List continents + List<Continent> continents ) { Total = total; Continents = continents; diff --git a/Appwrite/Models/Country.cs b/Appwrite/Models/Country.cs index 3d1a325..dafdcd1 100644 --- a/Appwrite/Models/Country.cs +++ b/Appwrite/Models/Country.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/CountryList.cs b/Appwrite/Models/CountryList.cs index d4c8c6c..0c02fef 100644 --- a/Appwrite/Models/CountryList.cs +++ b/Appwrite/Models/CountryList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class CountryList public long Total { get; private set; } [JsonPropertyName("countries")] - public List Countries { get; private set; } + public List<Country> Countries { get; private set; } public CountryList( long total, - List countries + List<Country> countries ) { Total = total; Countries = countries; diff --git a/Appwrite/Models/Currency.cs b/Appwrite/Models/Currency.cs index df4a312..4bca5ba 100644 --- a/Appwrite/Models/Currency.cs +++ b/Appwrite/Models/Currency.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/CurrencyList.cs b/Appwrite/Models/CurrencyList.cs index ee8ed8d..10e06f4 100644 --- a/Appwrite/Models/CurrencyList.cs +++ b/Appwrite/Models/CurrencyList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class CurrencyList public long Total { get; private set; } [JsonPropertyName("currencies")] - public List Currencies { get; private set; } + public List<Currency> Currencies { get; private set; } public CurrencyList( long total, - List currencies + List<Currency> currencies ) { Total = total; Currencies = currencies; diff --git a/Appwrite/Models/Database.cs b/Appwrite/Models/Database.cs index d2f23f2..2a68f8d 100644 --- a/Appwrite/Models/Database.cs +++ b/Appwrite/Models/Database.cs @@ -1,25 +1,25 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Database { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("enabled")] public bool Enabled { get; private set; } @@ -35,10 +35,10 @@ public Database( bool enabled, string type ) { - Id = id; + id = id; Name = name; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Enabled = enabled; Type = type; } @@ -54,10 +54,10 @@ string type public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, + { "$id", id }, { "name", Name }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "enabled", Enabled }, { "type", Type } }; diff --git a/Appwrite/Models/DatabaseList.cs b/Appwrite/Models/DatabaseList.cs index 652c68b..dc6aef2 100644 --- a/Appwrite/Models/DatabaseList.cs +++ b/Appwrite/Models/DatabaseList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class DatabaseList public long Total { get; private set; } [JsonPropertyName("databases")] - public List Databases { get; private set; } + public List<Database> Databases { get; private set; } public DatabaseList( long total, - List databases + List<Database> databases ) { Total = total; Databases = databases; diff --git a/Appwrite/Models/Deployment.cs b/Appwrite/Models/Deployment.cs index 05e8981..411fea2 100644 --- a/Appwrite/Models/Deployment.cs +++ b/Appwrite/Models/Deployment.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Deployment { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("type")] public string Type { get; private set; } @@ -52,7 +52,7 @@ public class Deployment public string ScreenshotDark { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public DeploymentStatus Status { get; private set; } [JsonPropertyName("buildLogs")] public string BuildLogs { get; private set; } @@ -105,7 +105,7 @@ public Deployment( bool activate, string screenshotLight, string screenshotDark, - string status, + DeploymentStatus status, string buildLogs, long buildDuration, string providerRepositoryName, @@ -119,9 +119,9 @@ public Deployment( string providerBranch, string providerBranchUrl ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Type = type; ResourceId = resourceId; ResourceType = resourceType; @@ -163,7 +163,7 @@ string providerBranchUrl activate: (bool)map["activate"], screenshotLight: map["screenshotLight"].ToString(), screenshotDark: map["screenshotDark"].ToString(), - status: map["status"].ToString(), + status: new DeploymentStatus(map["status"].ToString()!), buildLogs: map["buildLogs"].ToString(), buildDuration: Convert.ToInt64(map["buildDuration"]), providerRepositoryName: map["providerRepositoryName"].ToString(), @@ -180,9 +180,9 @@ string providerBranchUrl public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "type", Type }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, @@ -194,7 +194,7 @@ string providerBranchUrl { "activate", Activate }, { "screenshotLight", ScreenshotLight }, { "screenshotDark", ScreenshotDark }, - { "status", Status }, + { "status", Status.Value }, { "buildLogs", BuildLogs }, { "buildDuration", BuildDuration }, { "providerRepositoryName", ProviderRepositoryName }, diff --git a/Appwrite/Models/DeploymentList.cs b/Appwrite/Models/DeploymentList.cs index bec66fe..163c4b5 100644 --- a/Appwrite/Models/DeploymentList.cs +++ b/Appwrite/Models/DeploymentList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class DeploymentList public long Total { get; private set; } [JsonPropertyName("deployments")] - public List Deployments { get; private set; } + public List<Deployment> Deployments { get; private set; } public DeploymentList( long total, - List deployments + List<Deployment> deployments ) { Total = total; Deployments = deployments; diff --git a/Appwrite/Models/Document.cs b/Appwrite/Models/Document.cs index cfd1b52..118be7b 100644 --- a/Appwrite/Models/Document.cs +++ b/Appwrite/Models/Document.cs @@ -1,34 +1,34 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Document { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$sequence")] - public long Sequence { get; private set; } + public long sequence { get; private set; } [JsonPropertyName("$collectionId")] - public string CollectionId { get; private set; } + public string collectionId { get; private set; } [JsonPropertyName("$databaseId")] - public string DatabaseId { get; private set; } + public string databaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } public Dictionary Data { get; private set; } @@ -39,16 +39,16 @@ public Document( string databaseId, string createdAt, string updatedAt, - List permissions, + List<string> permissions, Dictionary data ) { - Id = id; - Sequence = sequence; - CollectionId = collectionId; - DatabaseId = databaseId; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + sequence = sequence; + collectionId = collectionId; + databaseId = databaseId; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; Data = data; } @@ -65,13 +65,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$sequence", Sequence }, - { "$collectionId", CollectionId }, - { "$databaseId", DatabaseId }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$sequence", sequence }, + { "$collectionId", collectionId }, + { "$databaseId", databaseId }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "data", Data } }; diff --git a/Appwrite/Models/DocumentList.cs b/Appwrite/Models/DocumentList.cs index dd4041d..6d11012 100644 --- a/Appwrite/Models/DocumentList.cs +++ b/Appwrite/Models/DocumentList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class DocumentList public long Total { get; private set; } [JsonPropertyName("documents")] - public List Documents { get; private set; } + public List<Document> Documents { get; private set; } public DocumentList( long total, - List documents + List<Document> documents ) { Total = total; Documents = documents; diff --git a/Appwrite/Models/Execution.cs b/Appwrite/Models/Execution.cs index 9382435..af038e9 100644 --- a/Appwrite/Models/Execution.cs +++ b/Appwrite/Models/Execution.cs @@ -1,25 +1,25 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Execution { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("functionId")] public string FunctionId { get; private set; } @@ -28,10 +28,10 @@ public class Execution public string DeploymentId { get; private set; } [JsonPropertyName("trigger")] - public string Trigger { get; private set; } + public ExecutionTrigger Trigger { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ExecutionStatus Status { get; private set; } [JsonPropertyName("requestMethod")] public string RequestMethod { get; private set; } @@ -40,7 +40,7 @@ public class Execution public string RequestPath { get; private set; } [JsonPropertyName("requestHeaders")] - public List RequestHeaders { get; private set; } + public List<Headers> RequestHeaders { get; private set; } [JsonPropertyName("responseStatusCode")] public long ResponseStatusCode { get; private set; } @@ -49,7 +49,7 @@ public class Execution public string ResponseBody { get; private set; } [JsonPropertyName("responseHeaders")] - public List ResponseHeaders { get; private set; } + public List<Headers> ResponseHeaders { get; private set; } [JsonPropertyName("logs")] public string Logs { get; private set; } @@ -67,26 +67,26 @@ public Execution( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string functionId, string deploymentId, - string trigger, - string status, + ExecutionTrigger trigger, + ExecutionStatus status, string requestMethod, string requestPath, - List requestHeaders, + List<Headers> requestHeaders, long responseStatusCode, string responseBody, - List responseHeaders, + List<Headers> responseHeaders, string logs, string errors, double duration, string? scheduledAt ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; FunctionId = functionId; DeploymentId = deploymentId; Trigger = trigger; @@ -110,8 +110,8 @@ public Execution( permissions: map["$permissions"] is JsonElement jsonArrayProp4 ? jsonArrayProp4.Deserialize>()! : (List)map["$permissions"], functionId: map["functionId"].ToString(), deploymentId: map["deploymentId"].ToString(), - trigger: map["trigger"].ToString(), - status: map["status"].ToString(), + trigger: new ExecutionTrigger(map["trigger"].ToString()!), + status: new ExecutionStatus(map["status"].ToString()!), requestMethod: map["requestMethod"].ToString(), requestPath: map["requestPath"].ToString(), requestHeaders: map["requestHeaders"] is JsonElement jsonArray11 ? jsonArray11.Deserialize>>()!.Select(it => Headers.From(map: it)).ToList() : ((IEnumerable>)map["requestHeaders"]).Select(it => Headers.From(map: it)).ToList(), @@ -126,14 +126,14 @@ public Execution( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "functionId", FunctionId }, { "deploymentId", DeploymentId }, - { "trigger", Trigger }, - { "status", Status }, + { "trigger", Trigger.Value }, + { "status", Status.Value }, { "requestMethod", RequestMethod }, { "requestPath", RequestPath }, { "requestHeaders", RequestHeaders.Select(it => it.ToMap()) }, diff --git a/Appwrite/Models/ExecutionList.cs b/Appwrite/Models/ExecutionList.cs index f255d9e..f2808bc 100644 --- a/Appwrite/Models/ExecutionList.cs +++ b/Appwrite/Models/ExecutionList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class ExecutionList public long Total { get; private set; } [JsonPropertyName("executions")] - public List Executions { get; private set; } + public List<Execution> Executions { get; private set; } public ExecutionList( long total, - List executions + List<Execution> executions ) { Total = total; Executions = executions; diff --git a/Appwrite/Models/File.cs b/Appwrite/Models/File.cs index e8ad048..77acb10 100644 --- a/Appwrite/Models/File.cs +++ b/Appwrite/Models/File.cs @@ -1,28 +1,28 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class File { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("bucketId")] public string BucketId { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,7 +47,7 @@ public File( string bucketId, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string name, string signature, string mimeType, @@ -55,11 +55,11 @@ public File( long chunksTotal, long chunksUploaded ) { - Id = id; + id = id; BucketId = bucketId; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; Name = name; Signature = signature; MimeType = mimeType; @@ -84,11 +84,11 @@ long chunksUploaded public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, + { "$id", id }, { "bucketId", BucketId }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "name", Name }, { "signature", Signature }, { "mimeType", MimeType }, diff --git a/Appwrite/Models/FileList.cs b/Appwrite/Models/FileList.cs index d262afa..1f3cda3 100644 --- a/Appwrite/Models/FileList.cs +++ b/Appwrite/Models/FileList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class FileList public long Total { get; private set; } [JsonPropertyName("files")] - public List Files { get; private set; } + public List<File> Files { get; private set; } public FileList( long total, - List files + List<File> files ) { Total = total; Files = files; diff --git a/Appwrite/Models/Framework.cs b/Appwrite/Models/Framework.cs index 2ddd78e..9930bc6 100644 --- a/Appwrite/Models/Framework.cs +++ b/Appwrite/Models/Framework.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -19,17 +19,17 @@ public class Framework public string BuildRuntime { get; private set; } [JsonPropertyName("runtimes")] - public List Runtimes { get; private set; } + public List<string> Runtimes { get; private set; } [JsonPropertyName("adapters")] - public List Adapters { get; private set; } + public List<FrameworkAdapter> Adapters { get; private set; } public Framework( string key, string name, string buildRuntime, - List runtimes, - List adapters + List<string> runtimes, + List<FrameworkAdapter> adapters ) { Key = key; Name = name; diff --git a/Appwrite/Models/FrameworkAdapter.cs b/Appwrite/Models/FrameworkAdapter.cs index 72ead86..851c61f 100644 --- a/Appwrite/Models/FrameworkAdapter.cs +++ b/Appwrite/Models/FrameworkAdapter.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/FrameworkList.cs b/Appwrite/Models/FrameworkList.cs index 664d7f8..31a216e 100644 --- a/Appwrite/Models/FrameworkList.cs +++ b/Appwrite/Models/FrameworkList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class FrameworkList public long Total { get; private set; } [JsonPropertyName("frameworks")] - public List Frameworks { get; private set; } + public List<Framework> Frameworks { get; private set; } public FrameworkList( long total, - List frameworks + List<Framework> frameworks ) { Total = total; Frameworks = frameworks; diff --git a/Appwrite/Models/Function.cs b/Appwrite/Models/Function.cs index ae19780..50171a8 100644 --- a/Appwrite/Models/Function.cs +++ b/Appwrite/Models/Function.cs @@ -1,25 +1,25 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Function { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("execute")] - public List Execute { get; private set; } + public List<string> Execute { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -52,13 +52,13 @@ public class Function public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("scopes")] - public List Scopes { get; private set; } + public List<string> Scopes { get; private set; } [JsonPropertyName("vars")] - public List Vars { get; private set; } + public List<Variable> Vars { get; private set; } [JsonPropertyName("events")] - public List Events { get; private set; } + public List<string> Events { get; private set; } [JsonPropertyName("schedule")] public string Schedule { get; private set; } @@ -97,7 +97,7 @@ public Function( string id, string createdAt, string updatedAt, - List execute, + List<string> execute, string name, bool enabled, bool live, @@ -108,9 +108,9 @@ public Function( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List scopes, - List vars, - List events, + List<string> scopes, + List<Variable> vars, + List<string> events, string schedule, long timeout, string entrypoint, @@ -123,9 +123,9 @@ public Function( bool providerSilentMode, string specification ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Execute = execute; Name = name; Enabled = enabled; @@ -186,9 +186,9 @@ string specification public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "execute", Execute }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/FunctionList.cs b/Appwrite/Models/FunctionList.cs index dbfbd19..47408cd 100644 --- a/Appwrite/Models/FunctionList.cs +++ b/Appwrite/Models/FunctionList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class FunctionList public long Total { get; private set; } [JsonPropertyName("functions")] - public List Functions { get; private set; } + public List<Function> Functions { get; private set; } public FunctionList( long total, - List functions + List<Function> functions ) { Total = total; Functions = functions; diff --git a/Appwrite/Models/Headers.cs b/Appwrite/Models/Headers.cs index 7e7e23d..fef3167 100644 --- a/Appwrite/Models/Headers.cs +++ b/Appwrite/Models/Headers.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,14 +13,14 @@ public class Headers public string Name { get; private set; } [JsonPropertyName("value")] - public string Value { get; private set; } + public string @Value { get; private set; } public Headers( string name, string xvalue ) { Name = name; - Value = xvalue; + @Value = xvalue; } public static Headers From(Dictionary map) => new Headers( @@ -31,7 +31,7 @@ string xvalue public Dictionary ToMap() => new Dictionary() { { "name", Name }, - { "value", Value } + { "value", @Value } }; } } diff --git a/Appwrite/Models/HealthAntivirus.cs b/Appwrite/Models/HealthAntivirus.cs index a599691..bf6a2e6 100644 --- a/Appwrite/Models/HealthAntivirus.cs +++ b/Appwrite/Models/HealthAntivirus.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class HealthAntivirus public string Version { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public HealthAntivirusStatus Status { get; private set; } public HealthAntivirus( string version, - string status + HealthAntivirusStatus status ) { Version = version; Status = status; @@ -25,13 +25,13 @@ string status public static HealthAntivirus From(Dictionary map) => new HealthAntivirus( version: map["version"].ToString(), - status: map["status"].ToString() + status: new HealthAntivirusStatus(map["status"].ToString()!) ); public Dictionary ToMap() => new Dictionary() { { "version", Version }, - { "status", Status } + { "status", Status.Value } }; } } diff --git a/Appwrite/Models/HealthCertificate.cs b/Appwrite/Models/HealthCertificate.cs index 10ae837..593c71f 100644 --- a/Appwrite/Models/HealthCertificate.cs +++ b/Appwrite/Models/HealthCertificate.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/HealthQueue.cs b/Appwrite/Models/HealthQueue.cs index 756f029..846c566 100644 --- a/Appwrite/Models/HealthQueue.cs +++ b/Appwrite/Models/HealthQueue.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/HealthStatus.cs b/Appwrite/Models/HealthStatus.cs index 0f0c021..357ca3e 100644 --- a/Appwrite/Models/HealthStatus.cs +++ b/Appwrite/Models/HealthStatus.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -16,12 +16,12 @@ public class HealthStatus public long Ping { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public HealthCheckStatus Status { get; private set; } public HealthStatus( string name, long ping, - string status + HealthCheckStatus status ) { Name = name; Ping = ping; @@ -31,14 +31,14 @@ string status public static HealthStatus From(Dictionary map) => new HealthStatus( name: map["name"].ToString(), ping: Convert.ToInt64(map["ping"]), - status: map["status"].ToString() + status: new HealthCheckStatus(map["status"].ToString()!) ); public Dictionary ToMap() => new Dictionary() { { "name", Name }, { "ping", Ping }, - { "status", Status } + { "status", Status.Value } }; } } diff --git a/Appwrite/Models/HealthTime.cs b/Appwrite/Models/HealthTime.cs index e7501af..c4136dd 100644 --- a/Appwrite/Models/HealthTime.cs +++ b/Appwrite/Models/HealthTime.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/Identity.cs b/Appwrite/Models/Identity.cs index c9d2280..a9ec2bb 100644 --- a/Appwrite/Models/Identity.cs +++ b/Appwrite/Models/Identity.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Identity { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -51,9 +51,9 @@ public Identity( string providerAccessTokenExpiry, string providerRefreshToken ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; UserId = userId; Provider = provider; ProviderUid = providerUid; @@ -78,9 +78,9 @@ string providerRefreshToken public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "userId", UserId }, { "provider", Provider }, { "providerUid", ProviderUid }, diff --git a/Appwrite/Models/IdentityList.cs b/Appwrite/Models/IdentityList.cs index be5ebce..e2a6452 100644 --- a/Appwrite/Models/IdentityList.cs +++ b/Appwrite/Models/IdentityList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class IdentityList public long Total { get; private set; } [JsonPropertyName("identities")] - public List Identities { get; private set; } + public List<Identity> Identities { get; private set; } public IdentityList( long total, - List identities + List<Identity> identities ) { Total = total; Identities = identities; diff --git a/Appwrite/Models/Index.cs b/Appwrite/Models/Index.cs index e481210..fd920ed 100644 --- a/Appwrite/Models/Index.cs +++ b/Appwrite/Models/Index.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Index { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -25,19 +25,19 @@ public class Index public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public IndexStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } [JsonPropertyName("attributes")] - public List Attributes { get; private set; } + public List<string> Attributes { get; private set; } [JsonPropertyName("lengths")] - public List Lengths { get; private set; } + public List<long> Lengths { get; private set; } [JsonPropertyName("orders")] - public List? Orders { get; private set; } + public List<string>? Orders { get; private set; } public Index( string id, @@ -45,15 +45,15 @@ public Index( string updatedAt, string key, string type, - string status, + IndexStatus status, string error, - List attributes, - List lengths, - List? orders + List<string> attributes, + List<long> lengths, + List<string>? orders ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -69,7 +69,7 @@ public Index( updatedAt: map["$updatedAt"].ToString(), key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new IndexStatus(map["status"].ToString()!), error: map["error"].ToString(), attributes: map["attributes"] is JsonElement jsonArrayProp8 ? jsonArrayProp8.Deserialize>()! : (List)map["attributes"], lengths: map["lengths"] is JsonElement jsonArrayProp9 ? jsonArrayProp9.Deserialize>()! : (List)map["lengths"], @@ -78,12 +78,12 @@ public Index( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "attributes", Attributes }, { "lengths", Lengths }, diff --git a/Appwrite/Models/IndexList.cs b/Appwrite/Models/IndexList.cs index 8456007..a603cbd 100644 --- a/Appwrite/Models/IndexList.cs +++ b/Appwrite/Models/IndexList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class IndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<Index> Indexes { get; private set; } public IndexList( long total, - List indexes + List<Index> indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/JWT.cs b/Appwrite/Models/JWT.cs index 35d8f59..f2e8fc9 100644 --- a/Appwrite/Models/JWT.cs +++ b/Appwrite/Models/JWT.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/Language.cs b/Appwrite/Models/Language.cs index 2e63ea4..a28b170 100644 --- a/Appwrite/Models/Language.cs +++ b/Appwrite/Models/Language.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/LanguageList.cs b/Appwrite/Models/LanguageList.cs index 3bdc2be..e554fd9 100644 --- a/Appwrite/Models/LanguageList.cs +++ b/Appwrite/Models/LanguageList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class LanguageList public long Total { get; private set; } [JsonPropertyName("languages")] - public List Languages { get; private set; } + public List<Language> Languages { get; private set; } public LanguageList( long total, - List languages + List<Language> languages ) { Total = total; Languages = languages; diff --git a/Appwrite/Models/Locale.cs b/Appwrite/Models/Locale.cs index 91f76a2..fd3213e 100644 --- a/Appwrite/Models/Locale.cs +++ b/Appwrite/Models/Locale.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/LocaleCode.cs b/Appwrite/Models/LocaleCode.cs index 3b1945a..da5a114 100644 --- a/Appwrite/Models/LocaleCode.cs +++ b/Appwrite/Models/LocaleCode.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/LocaleCodeList.cs b/Appwrite/Models/LocaleCodeList.cs index 940d4f3..f0f61a0 100644 --- a/Appwrite/Models/LocaleCodeList.cs +++ b/Appwrite/Models/LocaleCodeList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class LocaleCodeList public long Total { get; private set; } [JsonPropertyName("localeCodes")] - public List LocaleCodes { get; private set; } + public List<LocaleCode> LocaleCodes { get; private set; } public LocaleCodeList( long total, - List localeCodes + List<LocaleCode> localeCodes ) { Total = total; LocaleCodes = localeCodes; diff --git a/Appwrite/Models/Log.cs b/Appwrite/Models/Log.cs index 7878c50..f85db25 100644 --- a/Appwrite/Models/Log.cs +++ b/Appwrite/Models/Log.cs @@ -1,16 +1,16 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Log { [JsonPropertyName("event")] - public string Event { get; private set; } + public string @Event { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -95,7 +95,7 @@ public Log( string countryCode, string countryName ) { - Event = xevent; + @Event = xevent; UserId = userId; UserEmail = userEmail; UserName = userName; @@ -144,7 +144,7 @@ string countryName public Dictionary ToMap() => new Dictionary() { - { "event", Event }, + { "event", @Event }, { "userId", UserId }, { "userEmail", UserEmail }, { "userName", UserName }, diff --git a/Appwrite/Models/LogList.cs b/Appwrite/Models/LogList.cs index 9347764..5dc5581 100644 --- a/Appwrite/Models/LogList.cs +++ b/Appwrite/Models/LogList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class LogList public long Total { get; private set; } [JsonPropertyName("logs")] - public List Logs { get; private set; } + public List<Log> Logs { get; private set; } public LogList( long total, - List logs + List<Log> logs ) { Total = total; Logs = logs; diff --git a/Appwrite/Models/Membership.cs b/Appwrite/Models/Membership.cs index fe26181..3c11584 100644 --- a/Appwrite/Models/Membership.cs +++ b/Appwrite/Models/Membership.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Membership { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -46,7 +46,7 @@ public class Membership public bool Mfa { get; private set; } [JsonPropertyName("roles")] - public List Roles { get; private set; } + public List<string> Roles { get; private set; } public Membership( string id, @@ -61,11 +61,11 @@ public Membership( string joined, bool confirm, bool mfa, - List roles + List<string> roles ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; UserId = userId; UserName = userName; UserEmail = userEmail; @@ -96,9 +96,9 @@ List roles public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "userId", UserId }, { "userName", UserName }, { "userEmail", UserEmail }, diff --git a/Appwrite/Models/MembershipList.cs b/Appwrite/Models/MembershipList.cs index 0ebe32f..9b74a10 100644 --- a/Appwrite/Models/MembershipList.cs +++ b/Appwrite/Models/MembershipList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class MembershipList public long Total { get; private set; } [JsonPropertyName("memberships")] - public List Memberships { get; private set; } + public List<Membership> Memberships { get; private set; } public MembershipList( long total, - List memberships + List<Membership> memberships ) { Total = total; Memberships = memberships; diff --git a/Appwrite/Models/Message.cs b/Appwrite/Models/Message.cs index e205401..a9188e5 100644 --- a/Appwrite/Models/Message.cs +++ b/Appwrite/Models/Message.cs @@ -1,34 +1,34 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Message { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("providerType")] public string ProviderType { get; private set; } [JsonPropertyName("topics")] - public List Topics { get; private set; } + public List<string> Topics { get; private set; } [JsonPropertyName("users")] - public List Users { get; private set; } + public List<string> Users { get; private set; } [JsonPropertyName("targets")] - public List Targets { get; private set; } + public List<string> Targets { get; private set; } [JsonPropertyName("scheduledAt")] public string? ScheduledAt { get; private set; } @@ -37,7 +37,7 @@ public class Message public string? DeliveredAt { get; private set; } [JsonPropertyName("deliveryErrors")] - public List? DeliveryErrors { get; private set; } + public List<string>? DeliveryErrors { get; private set; } [JsonPropertyName("deliveredTotal")] public long DeliveredTotal { get; private set; } @@ -46,26 +46,26 @@ public class Message public object Data { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public MessageStatus Status { get; private set; } public Message( string id, string createdAt, string updatedAt, string providerType, - List topics, - List users, - List targets, + List<string> topics, + List<string> users, + List<string> targets, string? scheduledAt, string? deliveredAt, - List? deliveryErrors, + List<string>? deliveryErrors, long deliveredTotal, object data, - string status + MessageStatus status ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; ProviderType = providerType; Topics = topics; Users = users; @@ -91,14 +91,14 @@ string status deliveryErrors: map["deliveryErrors"] is JsonElement jsonArrayProp10 ? jsonArrayProp10.Deserialize>()! : (List)map["deliveryErrors"], deliveredTotal: Convert.ToInt64(map["deliveredTotal"]), data: map["data"].ToString(), - status: map["status"].ToString() + status: new MessageStatus(map["status"].ToString()!) ); public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "providerType", ProviderType }, { "topics", Topics }, { "users", Users }, @@ -108,7 +108,7 @@ string status { "deliveryErrors", DeliveryErrors }, { "deliveredTotal", DeliveredTotal }, { "data", Data }, - { "status", Status } + { "status", Status.Value } }; } } diff --git a/Appwrite/Models/MessageList.cs b/Appwrite/Models/MessageList.cs index 39c66e2..9fdaf44 100644 --- a/Appwrite/Models/MessageList.cs +++ b/Appwrite/Models/MessageList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class MessageList public long Total { get; private set; } [JsonPropertyName("messages")] - public List Messages { get; private set; } + public List<Message> Messages { get; private set; } public MessageList( long total, - List messages + List<Message> messages ) { Total = total; Messages = messages; diff --git a/Appwrite/Models/MfaChallenge.cs b/Appwrite/Models/MfaChallenge.cs index 00de1c0..632bac6 100644 --- a/Appwrite/Models/MfaChallenge.cs +++ b/Appwrite/Models/MfaChallenge.cs @@ -1,19 +1,19 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class MfaChallenge { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -27,8 +27,8 @@ public MfaChallenge( string userId, string expire ) { - Id = id; - CreatedAt = createdAt; + id = id; + createdAt = createdAt; UserId = userId; Expire = expire; } @@ -42,8 +42,8 @@ string expire public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, { "userId", UserId }, { "expire", Expire } }; diff --git a/Appwrite/Models/MfaFactors.cs b/Appwrite/Models/MfaFactors.cs index 6e2fa03..8019a3e 100644 --- a/Appwrite/Models/MfaFactors.cs +++ b/Appwrite/Models/MfaFactors.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/MfaRecoveryCodes.cs b/Appwrite/Models/MfaRecoveryCodes.cs index afab757..befbfd9 100644 --- a/Appwrite/Models/MfaRecoveryCodes.cs +++ b/Appwrite/Models/MfaRecoveryCodes.cs @@ -1,19 +1,19 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class MfaRecoveryCodes { [JsonPropertyName("recoveryCodes")] - public List RecoveryCodes { get; private set; } + public List<string> RecoveryCodes { get; private set; } public MfaRecoveryCodes( - List recoveryCodes + List<string> recoveryCodes ) { RecoveryCodes = recoveryCodes; } diff --git a/Appwrite/Models/MfaType.cs b/Appwrite/Models/MfaType.cs index 9f6c46a..88de025 100644 --- a/Appwrite/Models/MfaType.cs +++ b/Appwrite/Models/MfaType.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/Phone.cs b/Appwrite/Models/Phone.cs index 257cbe5..911f66f 100644 --- a/Appwrite/Models/Phone.cs +++ b/Appwrite/Models/Phone.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/PhoneList.cs b/Appwrite/Models/PhoneList.cs index fbaa6d6..16d1493 100644 --- a/Appwrite/Models/PhoneList.cs +++ b/Appwrite/Models/PhoneList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class PhoneList public long Total { get; private set; } [JsonPropertyName("phones")] - public List Phones { get; private set; } + public List<Phone> Phones { get; private set; } public PhoneList( long total, - List phones + List<Phone> phones ) { Total = total; Phones = phones; diff --git a/Appwrite/Models/Preferences.cs b/Appwrite/Models/Preferences.cs index 54a66fe..c393125 100644 --- a/Appwrite/Models/Preferences.cs +++ b/Appwrite/Models/Preferences.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/Provider.cs b/Appwrite/Models/Provider.cs index 5d4d881..185607a 100644 --- a/Appwrite/Models/Provider.cs +++ b/Appwrite/Models/Provider.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Provider { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,9 +47,9 @@ public Provider( object credentials, object? options ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; MessagingProvider = provider; Enabled = enabled; @@ -72,9 +72,9 @@ public Provider( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "provider", MessagingProvider }, { "enabled", Enabled }, diff --git a/Appwrite/Models/ProviderList.cs b/Appwrite/Models/ProviderList.cs index fa21109..249a480 100644 --- a/Appwrite/Models/ProviderList.cs +++ b/Appwrite/Models/ProviderList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class ProviderList public long Total { get; private set; } [JsonPropertyName("providers")] - public List Providers { get; private set; } + public List<Provider> Providers { get; private set; } public ProviderList( long total, - List providers + List<Provider> providers ) { Total = total; Providers = providers; diff --git a/Appwrite/Models/ResourceToken.cs b/Appwrite/Models/ResourceToken.cs index baa7eaa..1e843de 100644 --- a/Appwrite/Models/ResourceToken.cs +++ b/Appwrite/Models/ResourceToken.cs @@ -1,19 +1,19 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class ResourceToken { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("resourceId")] public string ResourceId { get; private set; } @@ -39,8 +39,8 @@ public ResourceToken( string secret, string accessedAt ) { - Id = id; - CreatedAt = createdAt; + id = id; + createdAt = createdAt; ResourceId = resourceId; ResourceType = resourceType; Expire = expire; @@ -60,8 +60,8 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, { "expire", Expire }, diff --git a/Appwrite/Models/ResourceTokenList.cs b/Appwrite/Models/ResourceTokenList.cs index 4e7fbd4..d3e04ee 100644 --- a/Appwrite/Models/ResourceTokenList.cs +++ b/Appwrite/Models/ResourceTokenList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class ResourceTokenList public long Total { get; private set; } [JsonPropertyName("tokens")] - public List Tokens { get; private set; } + public List<ResourceToken> Tokens { get; private set; } public ResourceTokenList( long total, - List tokens + List<ResourceToken> tokens ) { Total = total; Tokens = tokens; diff --git a/Appwrite/Models/Row.cs b/Appwrite/Models/Row.cs index 4477c6b..67f9c40 100644 --- a/Appwrite/Models/Row.cs +++ b/Appwrite/Models/Row.cs @@ -1,34 +1,34 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Row { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$sequence")] - public long Sequence { get; private set; } + public long sequence { get; private set; } [JsonPropertyName("$tableId")] - public string TableId { get; private set; } + public string tableId { get; private set; } [JsonPropertyName("$databaseId")] - public string DatabaseId { get; private set; } + public string databaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } public Dictionary Data { get; private set; } @@ -39,16 +39,16 @@ public Row( string databaseId, string createdAt, string updatedAt, - List permissions, + List<string> permissions, Dictionary data ) { - Id = id; - Sequence = sequence; - TableId = tableId; - DatabaseId = databaseId; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + sequence = sequence; + tableId = tableId; + databaseId = databaseId; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; Data = data; } @@ -65,13 +65,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$sequence", Sequence }, - { "$tableId", TableId }, - { "$databaseId", DatabaseId }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$sequence", sequence }, + { "$tableId", tableId }, + { "$databaseId", databaseId }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "data", Data } }; diff --git a/Appwrite/Models/RowList.cs b/Appwrite/Models/RowList.cs index 0362db5..ee52902 100644 --- a/Appwrite/Models/RowList.cs +++ b/Appwrite/Models/RowList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class RowList public long Total { get; private set; } [JsonPropertyName("rows")] - public List Rows { get; private set; } + public List<Row> Rows { get; private set; } public RowList( long total, - List rows + List<Row> rows ) { Total = total; Rows = rows; diff --git a/Appwrite/Models/Runtime.cs b/Appwrite/Models/Runtime.cs index 61ed39d..4e5d740 100644 --- a/Appwrite/Models/Runtime.cs +++ b/Appwrite/Models/Runtime.cs @@ -1,16 +1,16 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Runtime { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -22,7 +22,7 @@ public class Runtime public string Version { get; private set; } [JsonPropertyName("base")] - public string Base { get; private set; } + public string @Base { get; private set; } [JsonPropertyName("image")] public string Image { get; private set; } @@ -31,7 +31,7 @@ public class Runtime public string Logo { get; private set; } [JsonPropertyName("supports")] - public List Supports { get; private set; } + public List<string> Supports { get; private set; } public Runtime( string id, @@ -41,13 +41,13 @@ public Runtime( string xbase, string image, string logo, - List supports + List<string> supports ) { - Id = id; + id = id; Key = key; Name = name; Version = version; - Base = xbase; + @Base = xbase; Image = image; Logo = logo; Supports = supports; @@ -66,11 +66,11 @@ List supports public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, + { "$id", id }, { "key", Key }, { "name", Name }, { "version", Version }, - { "base", Base }, + { "base", @Base }, { "image", Image }, { "logo", Logo }, { "supports", Supports } diff --git a/Appwrite/Models/RuntimeList.cs b/Appwrite/Models/RuntimeList.cs index 3cedc1d..04d1a4a 100644 --- a/Appwrite/Models/RuntimeList.cs +++ b/Appwrite/Models/RuntimeList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class RuntimeList public long Total { get; private set; } [JsonPropertyName("runtimes")] - public List Runtimes { get; private set; } + public List<Runtime> Runtimes { get; private set; } public RuntimeList( long total, - List runtimes + List<Runtime> runtimes ) { Total = total; Runtimes = runtimes; diff --git a/Appwrite/Models/Session.cs b/Appwrite/Models/Session.cs index 13cb939..0ec983c 100644 --- a/Appwrite/Models/Session.cs +++ b/Appwrite/Models/Session.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Session { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -88,7 +88,7 @@ public class Session public bool Current { get; private set; } [JsonPropertyName("factors")] - public List Factors { get; private set; } + public List<string> Factors { get; private set; } [JsonPropertyName("secret")] public string Secret { get; private set; } @@ -123,13 +123,13 @@ public Session( string countryCode, string countryName, bool current, - List factors, + List<string> factors, string secret, string mfaUpdatedAt ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; UserId = userId; Expire = expire; Provider = provider; @@ -192,9 +192,9 @@ string mfaUpdatedAt public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "userId", UserId }, { "expire", Expire }, { "provider", Provider }, diff --git a/Appwrite/Models/SessionList.cs b/Appwrite/Models/SessionList.cs index 0e36154..891d815 100644 --- a/Appwrite/Models/SessionList.cs +++ b/Appwrite/Models/SessionList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class SessionList public long Total { get; private set; } [JsonPropertyName("sessions")] - public List Sessions { get; private set; } + public List<Session> Sessions { get; private set; } public SessionList( long total, - List sessions + List<Session> sessions ) { Total = total; Sessions = sessions; diff --git a/Appwrite/Models/Site.cs b/Appwrite/Models/Site.cs index 0fbf1e9..f00a3fc 100644 --- a/Appwrite/Models/Site.cs +++ b/Appwrite/Models/Site.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Site { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -55,7 +55,7 @@ public class Site public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("vars")] - public List Vars { get; private set; } + public List<Variable> Vars { get; private set; } [JsonPropertyName("timeout")] public long Timeout { get; private set; } @@ -112,7 +112,7 @@ public Site( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List vars, + List<Variable> vars, long timeout, string installCommand, string buildCommand, @@ -127,9 +127,9 @@ public Site( string adapter, string fallbackFile ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; Enabled = enabled; Live = live; @@ -192,9 +192,9 @@ string fallbackFile public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "enabled", Enabled }, { "live", Live }, diff --git a/Appwrite/Models/SiteList.cs b/Appwrite/Models/SiteList.cs index 18ee845..bf80aed 100644 --- a/Appwrite/Models/SiteList.cs +++ b/Appwrite/Models/SiteList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class SiteList public long Total { get; private set; } [JsonPropertyName("sites")] - public List Sites { get; private set; } + public List<Site> Sites { get; private set; } public SiteList( long total, - List sites + List<Site> sites ) { Total = total; Sites = sites; diff --git a/Appwrite/Models/Specification.cs b/Appwrite/Models/Specification.cs index dea76cb..7177ac7 100644 --- a/Appwrite/Models/Specification.cs +++ b/Appwrite/Models/Specification.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { diff --git a/Appwrite/Models/SpecificationList.cs b/Appwrite/Models/SpecificationList.cs index 1f5d43a..7b33251 100644 --- a/Appwrite/Models/SpecificationList.cs +++ b/Appwrite/Models/SpecificationList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class SpecificationList public long Total { get; private set; } [JsonPropertyName("specifications")] - public List Specifications { get; private set; } + public List<Specification> Specifications { get; private set; } public SpecificationList( long total, - List specifications + List<Specification> specifications ) { Total = total; Specifications = specifications; diff --git a/Appwrite/Models/Subscriber.cs b/Appwrite/Models/Subscriber.cs index 0672460..64462eb 100644 --- a/Appwrite/Models/Subscriber.cs +++ b/Appwrite/Models/Subscriber.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Subscriber { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("targetId")] public string TargetId { get; private set; } @@ -47,9 +47,9 @@ public Subscriber( string topicId, string providerType ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; TargetId = targetId; Target = target; UserId = userId; @@ -72,9 +72,9 @@ string providerType public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "targetId", TargetId }, { "target", Target.ToMap() }, { "userId", UserId }, diff --git a/Appwrite/Models/SubscriberList.cs b/Appwrite/Models/SubscriberList.cs index 7002b1f..9cebb0a 100644 --- a/Appwrite/Models/SubscriberList.cs +++ b/Appwrite/Models/SubscriberList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class SubscriberList public long Total { get; private set; } [JsonPropertyName("subscribers")] - public List Subscribers { get; private set; } + public List<Subscriber> Subscribers { get; private set; } public SubscriberList( long total, - List subscribers + List<Subscriber> subscribers ) { Total = total; Subscribers = subscribers; diff --git a/Appwrite/Models/Table.cs b/Appwrite/Models/Table.cs index b290163..c35b559 100644 --- a/Appwrite/Models/Table.cs +++ b/Appwrite/Models/Table.cs @@ -1,25 +1,25 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Table { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -34,27 +34,27 @@ public class Table public bool RowSecurity { get; private set; } [JsonPropertyName("columns")] - public List Columns { get; private set; } + public List<object> Columns { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<ColumnIndex> Indexes { get; private set; } public Table( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string databaseId, string name, bool enabled, bool rowSecurity, - List columns, - List indexes + List<object> columns, + List<ColumnIndex> indexes ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -78,10 +78,10 @@ List indexes public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/TableList.cs b/Appwrite/Models/TableList.cs index 68d7cf3..2449594 100644 --- a/Appwrite/Models/TableList.cs +++ b/Appwrite/Models/TableList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class TableList public long Total { get; private set; } [JsonPropertyName("tables")] - public List Tables { get; private set; } + public List<Table> Tables { get; private set; } public TableList( long total, - List
tables + List<Table> tables ) { Total = total; Tables = tables; diff --git a/Appwrite/Models/Target.cs b/Appwrite/Models/Target.cs index 4a7482d..12698e1 100644 --- a/Appwrite/Models/Target.cs +++ b/Appwrite/Models/Target.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Target { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,9 +47,9 @@ public Target( string identifier, bool expired ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; UserId = userId; ProviderId = providerId; @@ -72,9 +72,9 @@ bool expired public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "userId", UserId }, { "providerId", ProviderId }, diff --git a/Appwrite/Models/TargetList.cs b/Appwrite/Models/TargetList.cs index c2eeef8..e88076f 100644 --- a/Appwrite/Models/TargetList.cs +++ b/Appwrite/Models/TargetList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class TargetList public long Total { get; private set; } [JsonPropertyName("targets")] - public List Targets { get; private set; } + public List<Target> Targets { get; private set; } public TargetList( long total, - List targets + List<Target> targets ) { Total = total; Targets = targets; diff --git a/Appwrite/Models/Team.cs b/Appwrite/Models/Team.cs index 281e062..5b471dd 100644 --- a/Appwrite/Models/Team.cs +++ b/Appwrite/Models/Team.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Team { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -35,9 +35,9 @@ public Team( long total, Preferences prefs ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; Total = total; Prefs = prefs; @@ -54,9 +54,9 @@ Preferences prefs public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "total", Total }, { "prefs", Prefs.ToMap() } diff --git a/Appwrite/Models/TeamList.cs b/Appwrite/Models/TeamList.cs index e09f327..40b0125 100644 --- a/Appwrite/Models/TeamList.cs +++ b/Appwrite/Models/TeamList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class TeamList public long Total { get; private set; } [JsonPropertyName("teams")] - public List Teams { get; private set; } + public List<Team> Teams { get; private set; } public TeamList( long total, - List teams + List<Team> teams ) { Total = total; Teams = teams; diff --git a/Appwrite/Models/Token.cs b/Appwrite/Models/Token.cs index fc846b7..924e569 100644 --- a/Appwrite/Models/Token.cs +++ b/Appwrite/Models/Token.cs @@ -1,19 +1,19 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Token { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -35,8 +35,8 @@ public Token( string expire, string phrase ) { - Id = id; - CreatedAt = createdAt; + id = id; + createdAt = createdAt; UserId = userId; Secret = secret; Expire = expire; @@ -54,8 +54,8 @@ string phrase public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, { "userId", UserId }, { "secret", Secret }, { "expire", Expire }, diff --git a/Appwrite/Models/Topic.cs b/Appwrite/Models/Topic.cs index b3188f0..cc53428 100644 --- a/Appwrite/Models/Topic.cs +++ b/Appwrite/Models/Topic.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Topic { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -31,7 +31,7 @@ public class Topic public long PushTotal { get; private set; } [JsonPropertyName("subscribe")] - public List Subscribe { get; private set; } + public List<string> Subscribe { get; private set; } public Topic( string id, @@ -41,11 +41,11 @@ public Topic( long emailTotal, long smsTotal, long pushTotal, - List subscribe + List<string> subscribe ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; EmailTotal = emailTotal; SmsTotal = smsTotal; @@ -66,9 +66,9 @@ List subscribe public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "emailTotal", EmailTotal }, { "smsTotal", SmsTotal }, diff --git a/Appwrite/Models/TopicList.cs b/Appwrite/Models/TopicList.cs index b2ae6b2..8a77ace 100644 --- a/Appwrite/Models/TopicList.cs +++ b/Appwrite/Models/TopicList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class TopicList public long Total { get; private set; } [JsonPropertyName("topics")] - public List Topics { get; private set; } + public List<Topic> Topics { get; private set; } public TopicList( long total, - List topics + List<Topic> topics ) { Total = total; Topics = topics; diff --git a/Appwrite/Models/User.cs b/Appwrite/Models/User.cs index ef1b762..d1efe29 100644 --- a/Appwrite/Models/User.cs +++ b/Appwrite/Models/User.cs @@ -1,22 +1,22 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class User { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -37,7 +37,7 @@ public class User public bool Status { get; private set; } [JsonPropertyName("labels")] - public List Labels { get; private set; } + public List<string> Labels { get; private set; } [JsonPropertyName("passwordUpdate")] public string PasswordUpdate { get; private set; } @@ -61,7 +61,7 @@ public class User public Preferences Prefs { get; private set; } [JsonPropertyName("targets")] - public List Targets { get; private set; } + public List<Target> Targets { get; private set; } [JsonPropertyName("accessedAt")] public string AccessedAt { get; private set; } @@ -76,7 +76,7 @@ public User( object? hashOptions, string registration, bool status, - List labels, + List<string> labels, string passwordUpdate, string email, string phone, @@ -84,12 +84,12 @@ public User( bool phoneVerification, bool mfa, Preferences prefs, - List targets, + List<Target> targets, string accessedAt ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; Password = password; Hash = hash; @@ -132,9 +132,9 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "password", Password }, { "hash", Hash }, diff --git a/Appwrite/Models/UserList.cs b/Appwrite/Models/UserList.cs index 2e71261..d89fd26 100644 --- a/Appwrite/Models/UserList.cs +++ b/Appwrite/Models/UserList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class UserList public long Total { get; private set; } [JsonPropertyName("users")] - public List Users { get; private set; } + public List<User> Users { get; private set; } public UserList( long total, - List users + List<User> users ) { Total = total; Users = users; diff --git a/Appwrite/Models/Variable.cs b/Appwrite/Models/Variable.cs index ccac47c..d5eb198 100644 --- a/Appwrite/Models/Variable.cs +++ b/Appwrite/Models/Variable.cs @@ -1,28 +1,28 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { public class Variable { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } [JsonPropertyName("value")] - public string Value { get; private set; } + public string @Value { get; private set; } [JsonPropertyName("secret")] public bool Secret { get; private set; } @@ -43,11 +43,11 @@ public Variable( string resourceType, string resourceId ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Key = key; - Value = xvalue; + @Value = xvalue; Secret = secret; ResourceType = resourceType; ResourceId = resourceId; @@ -66,11 +66,11 @@ string resourceId public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "key", Key }, - { "value", Value }, + { "value", @Value }, { "secret", Secret }, { "resourceType", ResourceType }, { "resourceId", ResourceId } diff --git a/Appwrite/Models/VariableList.cs b/Appwrite/Models/VariableList.cs index db0cc6b..a5a5592 100644 --- a/Appwrite/Models/VariableList.cs +++ b/Appwrite/Models/VariableList.cs @@ -1,9 +1,9 @@ - using System; using System.Linq; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Appwrite.Enums; namespace Appwrite.Models { @@ -13,11 +13,11 @@ public class VariableList public long Total { get; private set; } [JsonPropertyName("variables")] - public List Variables { get; private set; } + public List<Variable> Variables { get; private set; } public VariableList( long total, - List variables + List<Variable> variables ) { Total = total; Variables = variables; diff --git a/Appwrite/Query.cs b/Appwrite/Query.cs index 5932cc8..f7c9c5a 100644 --- a/Appwrite/Query.cs +++ b/Appwrite/Query.cs @@ -138,10 +138,6 @@ 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(); } diff --git a/README.md b/README.md index 14a441d..cf1cb30 100644 --- a/README.md +++ b/README.md @@ -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 - + ``` You can install packages from the command line: ```powershell # Package Manager -Install-Package Appwrite -Version 0.18.0 +Install-Package Appwrite -Version 0.19.0 # or .NET CLI -dotnet add package Appwrite --version 0.18.0 +dotnet add package Appwrite --version 0.19.0 ``` From 1ddc6a3cc5050ae8d55b80a56a3c091229b04ae6 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Oct 2025 04:37:33 +0000 Subject: [PATCH 2/6] regen --- Appwrite/Client.cs | 2 +- Appwrite/Models/Document.cs | 2 +- Appwrite/Models/Preferences.cs | 2 +- Appwrite/Models/Row.cs | 2 +- Appwrite/Query.cs | 4 ++++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Appwrite/Client.cs b/Appwrite/Client.cs index a01f247..020ebf6 100644 --- a/Appwrite/Client.cs +++ b/Appwrite/Client.cs @@ -325,7 +325,7 @@ public async Task Call( { foreach (var warning in warnings) { - Console.WriteLine("Warning: " + warning); + Console.Error.WriteLine("Warning: " + warning); } } diff --git a/Appwrite/Models/Document.cs b/Appwrite/Models/Document.cs index 118be7b..cce7a5f 100644 --- a/Appwrite/Models/Document.cs +++ b/Appwrite/Models/Document.cs @@ -60,7 +60,7 @@ Dictionary data createdAt: map["$createdAt"].ToString(), updatedAt: map["$updatedAt"].ToString(), permissions: map["$permissions"] is JsonElement jsonArrayProp7 ? jsonArrayProp7.Deserialize>()! : (List)map["$permissions"], - data: map + data: map.TryGetValue("data", out var dataValue) ? (Dictionary)dataValue : map ); public Dictionary ToMap() => new Dictionary() diff --git a/Appwrite/Models/Preferences.cs b/Appwrite/Models/Preferences.cs index c393125..32de5e3 100644 --- a/Appwrite/Models/Preferences.cs +++ b/Appwrite/Models/Preferences.cs @@ -18,7 +18,7 @@ Dictionary data } public static Preferences From(Dictionary map) => new Preferences( - data: map + data: map.TryGetValue("data", out var dataValue) ? (Dictionary)dataValue : map ); public Dictionary ToMap() => new Dictionary() diff --git a/Appwrite/Models/Row.cs b/Appwrite/Models/Row.cs index 67f9c40..dd635cb 100644 --- a/Appwrite/Models/Row.cs +++ b/Appwrite/Models/Row.cs @@ -60,7 +60,7 @@ Dictionary data createdAt: map["$createdAt"].ToString(), updatedAt: map["$updatedAt"].ToString(), permissions: map["$permissions"] is JsonElement jsonArrayProp7 ? jsonArrayProp7.Deserialize>()! : (List)map["$permissions"], - data: map + data: map.TryGetValue("data", out var dataValue) ? (Dictionary)dataValue : map ); public Dictionary ToMap() => new Dictionary() diff --git a/Appwrite/Query.cs b/Appwrite/Query.cs index f7c9c5a..5932cc8 100644 --- a/Appwrite/Query.cs +++ b/Appwrite/Query.cs @@ -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(); } From f50208aa980a07e6b3e7d1e5536ea2aa41cfb4cb Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Oct 2025 05:27:06 +0000 Subject: [PATCH 3/6] regen --- Appwrite/Models/AlgoArgon2.cs | 1 + Appwrite/Models/AlgoBcrypt.cs | 1 + Appwrite/Models/AlgoMd5.cs | 1 + Appwrite/Models/AlgoPhpass.cs | 1 + Appwrite/Models/AlgoScrypt.cs | 1 + Appwrite/Models/AlgoScryptModified.cs | 1 + Appwrite/Models/AlgoSha.cs | 1 + Appwrite/Models/AttributeBoolean.cs | 13 +++---- Appwrite/Models/AttributeDatetime.cs | 13 +++---- Appwrite/Models/AttributeEmail.cs | 13 +++---- Appwrite/Models/AttributeEnum.cs | 17 ++++----- Appwrite/Models/AttributeFloat.cs | 13 +++---- Appwrite/Models/AttributeInteger.cs | 13 +++---- Appwrite/Models/AttributeIp.cs | 13 +++---- Appwrite/Models/AttributeLine.cs | 17 ++++----- Appwrite/Models/AttributeList.cs | 5 +-- Appwrite/Models/AttributePoint.cs | 17 ++++----- Appwrite/Models/AttributePolygon.cs | 17 ++++----- Appwrite/Models/AttributeRelationship.cs | 13 +++---- Appwrite/Models/AttributeString.cs | 13 +++---- Appwrite/Models/AttributeUrl.cs | 13 +++---- Appwrite/Models/Bucket.cs | 31 ++++++++-------- Appwrite/Models/BucketList.cs | 5 +-- Appwrite/Models/Collection.cs | 35 +++++++++--------- Appwrite/Models/CollectionList.cs | 5 +-- Appwrite/Models/ColumnBoolean.cs | 13 +++---- Appwrite/Models/ColumnDatetime.cs | 13 +++---- Appwrite/Models/ColumnEmail.cs | 13 +++---- Appwrite/Models/ColumnEnum.cs | 17 ++++----- Appwrite/Models/ColumnFloat.cs | 13 +++---- Appwrite/Models/ColumnIndex.cs | 31 ++++++++-------- Appwrite/Models/ColumnIndexList.cs | 5 +-- Appwrite/Models/ColumnInteger.cs | 13 +++---- Appwrite/Models/ColumnIp.cs | 13 +++---- Appwrite/Models/ColumnLine.cs | 17 ++++----- Appwrite/Models/ColumnList.cs | 5 +-- Appwrite/Models/ColumnPoint.cs | 17 ++++----- Appwrite/Models/ColumnPolygon.cs | 17 ++++----- Appwrite/Models/ColumnRelationship.cs | 13 +++---- Appwrite/Models/ColumnString.cs | 13 +++---- Appwrite/Models/ColumnUrl.cs | 13 +++---- Appwrite/Models/Continent.cs | 1 + Appwrite/Models/ContinentList.cs | 5 +-- Appwrite/Models/Country.cs | 1 + Appwrite/Models/CountryList.cs | 5 +-- Appwrite/Models/Currency.cs | 1 + Appwrite/Models/CurrencyList.cs | 5 +-- Appwrite/Models/Database.cs | 19 +++++----- Appwrite/Models/DatabaseList.cs | 5 +-- Appwrite/Models/Deployment.cs | 19 +++++----- Appwrite/Models/DeploymentList.cs | 5 +-- Appwrite/Models/Document.cs | 45 ++++++++++++------------ Appwrite/Models/DocumentList.cs | 5 +-- Appwrite/Models/Execution.cs | 35 +++++++++--------- Appwrite/Models/ExecutionList.cs | 5 +-- Appwrite/Models/File.cs | 27 +++++++------- Appwrite/Models/FileList.cs | 5 +-- Appwrite/Models/Framework.cs | 9 ++--- Appwrite/Models/FrameworkAdapter.cs | 1 + Appwrite/Models/FrameworkList.cs | 5 +-- Appwrite/Models/Function.cs | 35 +++++++++--------- Appwrite/Models/FunctionList.cs | 5 +-- Appwrite/Models/Headers.cs | 1 + Appwrite/Models/HealthAntivirus.cs | 1 + Appwrite/Models/HealthCertificate.cs | 1 + Appwrite/Models/HealthQueue.cs | 1 + Appwrite/Models/HealthStatus.cs | 1 + Appwrite/Models/HealthTime.cs | 1 + Appwrite/Models/Identity.cs | 19 +++++----- Appwrite/Models/IdentityList.cs | 5 +-- Appwrite/Models/Index.cs | 31 ++++++++-------- Appwrite/Models/IndexList.cs | 5 +-- Appwrite/Models/JWT.cs | 1 + Appwrite/Models/Language.cs | 1 + Appwrite/Models/LanguageList.cs | 5 +-- Appwrite/Models/Locale.cs | 1 + Appwrite/Models/LocaleCode.cs | 1 + Appwrite/Models/LocaleCodeList.cs | 5 +-- Appwrite/Models/Log.cs | 1 + Appwrite/Models/LogList.cs | 5 +-- Appwrite/Models/Membership.cs | 23 ++++++------ Appwrite/Models/MembershipList.cs | 5 +-- Appwrite/Models/Message.cs | 35 +++++++++--------- Appwrite/Models/MessageList.cs | 5 +-- Appwrite/Models/MfaChallenge.cs | 13 +++---- Appwrite/Models/MfaFactors.cs | 1 + Appwrite/Models/MfaRecoveryCodes.cs | 5 +-- Appwrite/Models/MfaType.cs | 1 + Appwrite/Models/Phone.cs | 1 + Appwrite/Models/PhoneList.cs | 5 +-- Appwrite/Models/Preferences.cs | 1 + Appwrite/Models/Provider.cs | 19 +++++----- Appwrite/Models/ProviderList.cs | 5 +-- Appwrite/Models/ResourceToken.cs | 13 +++---- Appwrite/Models/ResourceTokenList.cs | 5 +-- Appwrite/Models/Row.cs | 45 ++++++++++++------------ Appwrite/Models/RowList.cs | 5 +-- Appwrite/Models/Runtime.cs | 11 +++--- Appwrite/Models/RuntimeList.cs | 5 +-- Appwrite/Models/Session.cs | 23 ++++++------ Appwrite/Models/SessionList.cs | 5 +-- Appwrite/Models/Site.cs | 23 ++++++------ Appwrite/Models/SiteList.cs | 5 +-- Appwrite/Models/Specification.cs | 1 + Appwrite/Models/SpecificationList.cs | 5 +-- Appwrite/Models/Subscriber.cs | 19 +++++----- Appwrite/Models/SubscriberList.cs | 5 +-- Appwrite/Models/Table.cs | 35 +++++++++--------- Appwrite/Models/TableList.cs | 5 +-- Appwrite/Models/Target.cs | 19 +++++----- Appwrite/Models/TargetList.cs | 5 +-- Appwrite/Models/Team.cs | 19 +++++----- Appwrite/Models/TeamList.cs | 5 +-- Appwrite/Models/Token.cs | 13 +++---- Appwrite/Models/Topic.cs | 23 ++++++------ Appwrite/Models/TopicList.cs | 5 +-- Appwrite/Models/User.cs | 27 +++++++------- Appwrite/Models/UserList.cs | 5 +-- Appwrite/Models/Variable.cs | 19 +++++----- Appwrite/Models/VariableList.cs | 5 +-- 120 files changed, 711 insertions(+), 591 deletions(-) diff --git a/Appwrite/Models/AlgoArgon2.cs b/Appwrite/Models/AlgoArgon2.cs index 85c664d..2573b10 100644 --- a/Appwrite/Models/AlgoArgon2.cs +++ b/Appwrite/Models/AlgoArgon2.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoBcrypt.cs b/Appwrite/Models/AlgoBcrypt.cs index 7fb9684..3cab59e 100644 --- a/Appwrite/Models/AlgoBcrypt.cs +++ b/Appwrite/Models/AlgoBcrypt.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoMd5.cs b/Appwrite/Models/AlgoMd5.cs index a6ed243..814de65 100644 --- a/Appwrite/Models/AlgoMd5.cs +++ b/Appwrite/Models/AlgoMd5.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoPhpass.cs b/Appwrite/Models/AlgoPhpass.cs index 7fe4a67..693d31e 100644 --- a/Appwrite/Models/AlgoPhpass.cs +++ b/Appwrite/Models/AlgoPhpass.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoScrypt.cs b/Appwrite/Models/AlgoScrypt.cs index b6079ac..cb8a10b 100644 --- a/Appwrite/Models/AlgoScrypt.cs +++ b/Appwrite/Models/AlgoScrypt.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoScryptModified.cs b/Appwrite/Models/AlgoScryptModified.cs index 6b3d1c5..cf33b0c 100644 --- a/Appwrite/Models/AlgoScryptModified.cs +++ b/Appwrite/Models/AlgoScryptModified.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoSha.cs b/Appwrite/Models/AlgoSha.cs index fa5b50d..92a8866 100644 --- a/Appwrite/Models/AlgoSha.cs +++ b/Appwrite/Models/AlgoSha.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AttributeBoolean.cs b/Appwrite/Models/AttributeBoolean.cs index db31589..58f8e77 100644 --- a/Appwrite/Models/AttributeBoolean.cs +++ b/Appwrite/Models/AttributeBoolean.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] public bool? @Default { get; private set; } @@ -53,8 +54,8 @@ public AttributeBoolean( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public AttributeBoolean( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/AttributeDatetime.cs b/Appwrite/Models/AttributeDatetime.cs index 9b5471d..9491e18 100644 --- a/Appwrite/Models/AttributeDatetime.cs +++ b/Appwrite/Models/AttributeDatetime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public AttributeDatetime( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public AttributeDatetime( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/AttributeEmail.cs b/Appwrite/Models/AttributeEmail.cs index cc90716..01c8101 100644 --- a/Appwrite/Models/AttributeEmail.cs +++ b/Appwrite/Models/AttributeEmail.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public AttributeEmail( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public AttributeEmail( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/AttributeEnum.cs b/Appwrite/Models/AttributeEnum.cs index 142271a..244c3e1 100644 --- a/Appwrite/Models/AttributeEnum.cs +++ b/Appwrite/Models/AttributeEnum.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributeEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("elements")] - public List<string> Elements { get; private set; } + public List Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -51,7 +52,7 @@ public AttributeEnum( bool? array, string createdAt, string updatedAt, - List<string> elements, + List elements, string format, string? xdefault ) { @@ -61,8 +62,8 @@ public AttributeEnum( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Elements = elements; Format = format; @Default = xdefault; @@ -90,8 +91,8 @@ public AttributeEnum( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "elements", Elements }, { "format", Format }, { "default", @Default } diff --git a/Appwrite/Models/AttributeFloat.cs b/Appwrite/Models/AttributeFloat.cs index 01dc335..3468230 100644 --- a/Appwrite/Models/AttributeFloat.cs +++ b/Appwrite/Models/AttributeFloat.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -61,8 +62,8 @@ public AttributeFloat( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; @Default = xdefault; @@ -90,8 +91,8 @@ public AttributeFloat( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, { "default", @Default } diff --git a/Appwrite/Models/AttributeInteger.cs b/Appwrite/Models/AttributeInteger.cs index 15364d5..4d9bbe5 100644 --- a/Appwrite/Models/AttributeInteger.cs +++ b/Appwrite/Models/AttributeInteger.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -61,8 +62,8 @@ public AttributeInteger( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; @Default = xdefault; @@ -90,8 +91,8 @@ public AttributeInteger( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, { "default", @Default } diff --git a/Appwrite/Models/AttributeIp.cs b/Appwrite/Models/AttributeIp.cs index 45a1f2e..6bbe047 100644 --- a/Appwrite/Models/AttributeIp.cs +++ b/Appwrite/Models/AttributeIp.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public AttributeIp( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public AttributeIp( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/AttributeLine.cs b/Appwrite/Models/AttributeLine.cs index 55f7ba3..cb21df7 100644 --- a/Appwrite/Models/AttributeLine.cs +++ b/Appwrite/Models/AttributeLine.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributeLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? @Default { get; private set; } public AttributeLine( string key, @@ -45,7 +46,7 @@ public AttributeLine( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,8 +54,8 @@ public AttributeLine( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public AttributeLine( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/AttributeList.cs b/Appwrite/Models/AttributeList.cs index 472cd01..1c1404b 100644 --- a/Appwrite/Models/AttributeList.cs +++ b/Appwrite/Models/AttributeList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class AttributeList public long Total { get; private set; } [JsonPropertyName("attributes")] - public List<object> Attributes { get; private set; } + public List Attributes { get; private set; } public AttributeList( long total, - List<object> attributes + List attributes ) { Total = total; Attributes = attributes; diff --git a/Appwrite/Models/AttributePoint.cs b/Appwrite/Models/AttributePoint.cs index fd2146d..7a262d9 100644 --- a/Appwrite/Models/AttributePoint.cs +++ b/Appwrite/Models/AttributePoint.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributePoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? @Default { get; private set; } public AttributePoint( string key, @@ -45,7 +46,7 @@ public AttributePoint( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,8 +54,8 @@ public AttributePoint( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public AttributePoint( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/AttributePolygon.cs b/Appwrite/Models/AttributePolygon.cs index fbb4020..0daedee 100644 --- a/Appwrite/Models/AttributePolygon.cs +++ b/Appwrite/Models/AttributePolygon.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributePolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? @Default { get; private set; } public AttributePolygon( string key, @@ -45,7 +46,7 @@ public AttributePolygon( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,8 +54,8 @@ public AttributePolygon( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public AttributePolygon( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/AttributeRelationship.cs b/Appwrite/Models/AttributeRelationship.cs index 2be8db2..17447c0 100644 --- a/Appwrite/Models/AttributeRelationship.cs +++ b/Appwrite/Models/AttributeRelationship.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("relatedCollection")] public string RelatedCollection { get; private set; } @@ -73,8 +74,8 @@ string side Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; RelatedCollection = relatedCollection; RelationType = relationType; TwoWay = twoWay; @@ -108,8 +109,8 @@ string side { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "relatedCollection", RelatedCollection }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/AttributeString.cs b/Appwrite/Models/AttributeString.cs index c5d7383..39c00d0 100644 --- a/Appwrite/Models/AttributeString.cs +++ b/Appwrite/Models/AttributeString.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } @@ -61,8 +62,8 @@ public AttributeString( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Size = size; @Default = xdefault; Encrypt = encrypt; @@ -90,8 +91,8 @@ public AttributeString( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "size", Size }, { "default", @Default }, { "encrypt", Encrypt } diff --git a/Appwrite/Models/AttributeUrl.cs b/Appwrite/Models/AttributeUrl.cs index 5c5b805..299b0d9 100644 --- a/Appwrite/Models/AttributeUrl.cs +++ b/Appwrite/Models/AttributeUrl.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public AttributeUrl( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public AttributeUrl( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/Bucket.cs b/Appwrite/Models/Bucket.cs index 54abfff..c7e22f7 100644 --- a/Appwrite/Models/Bucket.cs +++ b/Appwrite/Models/Bucket.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Bucket { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("fileSecurity")] public bool FileSecurity { get; private set; } @@ -34,7 +35,7 @@ public class Bucket public long MaximumFileSize { get; private set; } [JsonPropertyName("allowedFileExtensions")] - public List<string> AllowedFileExtensions { get; private set; } + public List AllowedFileExtensions { get; private set; } [JsonPropertyName("compression")] public string Compression { get; private set; } @@ -49,20 +50,20 @@ public Bucket( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, bool fileSecurity, string name, bool enabled, long maximumFileSize, - List<string> allowedFileExtensions, + List allowedFileExtensions, string compression, bool encryption, bool antivirus ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; FileSecurity = fileSecurity; Name = name; Enabled = enabled; @@ -90,10 +91,10 @@ bool antivirus public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "fileSecurity", FileSecurity }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/BucketList.cs b/Appwrite/Models/BucketList.cs index 664c98f..c6b08fb 100644 --- a/Appwrite/Models/BucketList.cs +++ b/Appwrite/Models/BucketList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class BucketList public long Total { get; private set; } [JsonPropertyName("buckets")] - public List<Bucket> Buckets { get; private set; } + public List Buckets { get; private set; } public BucketList( long total, - List<Bucket> buckets + List buckets ) { Total = total; Buckets = buckets; diff --git a/Appwrite/Models/Collection.cs b/Appwrite/Models/Collection.cs index f1ce8be..6b3420e 100644 --- a/Appwrite/Models/Collection.cs +++ b/Appwrite/Models/Collection.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Collection { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -34,27 +35,27 @@ public class Collection public bool DocumentSecurity { get; private set; } [JsonPropertyName("attributes")] - public List<object> Attributes { get; private set; } + public List Attributes { get; private set; } [JsonPropertyName("indexes")] - public List<Index> Indexes { get; private set; } + public List Indexes { get; private set; } public Collection( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string databaseId, string name, bool enabled, bool documentSecurity, - List<object> attributes, - List<Index> indexes + List attributes, + List indexes ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -78,10 +79,10 @@ public Collection( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/CollectionList.cs b/Appwrite/Models/CollectionList.cs index bd62a6f..861cc2c 100644 --- a/Appwrite/Models/CollectionList.cs +++ b/Appwrite/Models/CollectionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class CollectionList public long Total { get; private set; } [JsonPropertyName("collections")] - public List<Collection> Collections { get; private set; } + public List Collections { get; private set; } public CollectionList( long total, - List<Collection> collections + List collections ) { Total = total; Collections = collections; diff --git a/Appwrite/Models/ColumnBoolean.cs b/Appwrite/Models/ColumnBoolean.cs index 1992714..e2a0bb3 100644 --- a/Appwrite/Models/ColumnBoolean.cs +++ b/Appwrite/Models/ColumnBoolean.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] public bool? @Default { get; private set; } @@ -53,8 +54,8 @@ public ColumnBoolean( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public ColumnBoolean( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/ColumnDatetime.cs b/Appwrite/Models/ColumnDatetime.cs index 5b2944a..9b5bfc3 100644 --- a/Appwrite/Models/ColumnDatetime.cs +++ b/Appwrite/Models/ColumnDatetime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public ColumnDatetime( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public ColumnDatetime( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/ColumnEmail.cs b/Appwrite/Models/ColumnEmail.cs index 58334db..ca5b8e2 100644 --- a/Appwrite/Models/ColumnEmail.cs +++ b/Appwrite/Models/ColumnEmail.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public ColumnEmail( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public ColumnEmail( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/ColumnEnum.cs b/Appwrite/Models/ColumnEnum.cs index 96ff106..48f3de4 100644 --- a/Appwrite/Models/ColumnEnum.cs +++ b/Appwrite/Models/ColumnEnum.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("elements")] - public List<string> Elements { get; private set; } + public List Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -51,7 +52,7 @@ public ColumnEnum( bool? array, string createdAt, string updatedAt, - List<string> elements, + List elements, string format, string? xdefault ) { @@ -61,8 +62,8 @@ public ColumnEnum( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Elements = elements; Format = format; @Default = xdefault; @@ -90,8 +91,8 @@ public ColumnEnum( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "elements", Elements }, { "format", Format }, { "default", @Default } diff --git a/Appwrite/Models/ColumnFloat.cs b/Appwrite/Models/ColumnFloat.cs index ecc1433..60aa806 100644 --- a/Appwrite/Models/ColumnFloat.cs +++ b/Appwrite/Models/ColumnFloat.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -61,8 +62,8 @@ public ColumnFloat( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; @Default = xdefault; @@ -90,8 +91,8 @@ public ColumnFloat( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, { "default", @Default } diff --git a/Appwrite/Models/ColumnIndex.cs b/Appwrite/Models/ColumnIndex.cs index f5dc63e..9ce756a 100644 --- a/Appwrite/Models/ColumnIndex.cs +++ b/Appwrite/Models/ColumnIndex.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class ColumnIndex { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -31,13 +32,13 @@ public class ColumnIndex public string Error { get; private set; } [JsonPropertyName("columns")] - public List<string> Columns { get; private set; } + public List Columns { get; private set; } [JsonPropertyName("lengths")] - public List<long> Lengths { get; private set; } + public List Lengths { get; private set; } [JsonPropertyName("orders")] - public List<string>? Orders { get; private set; } + public List? Orders { get; private set; } public ColumnIndex( string id, @@ -47,13 +48,13 @@ public ColumnIndex( string type, string status, string error, - List<string> columns, - List<long> lengths, - List<string>? orders + List columns, + List lengths, + List? orders ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -78,9 +79,9 @@ public ColumnIndex( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "key", Key }, { "type", Type }, { "status", Status }, diff --git a/Appwrite/Models/ColumnIndexList.cs b/Appwrite/Models/ColumnIndexList.cs index 49b13da..b43c7c3 100644 --- a/Appwrite/Models/ColumnIndexList.cs +++ b/Appwrite/Models/ColumnIndexList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ColumnIndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List<ColumnIndex> Indexes { get; private set; } + public List Indexes { get; private set; } public ColumnIndexList( long total, - List<ColumnIndex> indexes + List indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/ColumnInteger.cs b/Appwrite/Models/ColumnInteger.cs index fcf796b..f8a785a 100644 --- a/Appwrite/Models/ColumnInteger.cs +++ b/Appwrite/Models/ColumnInteger.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -61,8 +62,8 @@ public ColumnInteger( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; @Default = xdefault; @@ -90,8 +91,8 @@ public ColumnInteger( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, { "default", @Default } diff --git a/Appwrite/Models/ColumnIp.cs b/Appwrite/Models/ColumnIp.cs index f92c721..034c96f 100644 --- a/Appwrite/Models/ColumnIp.cs +++ b/Appwrite/Models/ColumnIp.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public ColumnIp( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public ColumnIp( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/ColumnLine.cs b/Appwrite/Models/ColumnLine.cs index 1dad33f..8828f01 100644 --- a/Appwrite/Models/ColumnLine.cs +++ b/Appwrite/Models/ColumnLine.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? @Default { get; private set; } public ColumnLine( string key, @@ -45,7 +46,7 @@ public ColumnLine( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,8 +54,8 @@ public ColumnLine( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public ColumnLine( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/ColumnList.cs b/Appwrite/Models/ColumnList.cs index a871335..d033168 100644 --- a/Appwrite/Models/ColumnList.cs +++ b/Appwrite/Models/ColumnList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ColumnList public long Total { get; private set; } [JsonPropertyName("columns")] - public List<object> Columns { get; private set; } + public List Columns { get; private set; } public ColumnList( long total, - List<object> columns + List columns ) { Total = total; Columns = columns; diff --git a/Appwrite/Models/ColumnPoint.cs b/Appwrite/Models/ColumnPoint.cs index 78c8fa0..8aa84a1 100644 --- a/Appwrite/Models/ColumnPoint.cs +++ b/Appwrite/Models/ColumnPoint.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnPoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? @Default { get; private set; } public ColumnPoint( string key, @@ -45,7 +46,7 @@ public ColumnPoint( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,8 +54,8 @@ public ColumnPoint( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public ColumnPoint( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/ColumnPolygon.cs b/Appwrite/Models/ColumnPolygon.cs index 73c4d13..fd1caa6 100644 --- a/Appwrite/Models/ColumnPolygon.cs +++ b/Appwrite/Models/ColumnPolygon.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnPolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? @Default { get; private set; } public ColumnPolygon( string key, @@ -45,7 +46,7 @@ public ColumnPolygon( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,8 +54,8 @@ public ColumnPolygon( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; @Default = xdefault; } @@ -78,8 +79,8 @@ public ColumnPolygon( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "default", @Default } }; } diff --git a/Appwrite/Models/ColumnRelationship.cs b/Appwrite/Models/ColumnRelationship.cs index a50d9ce..f981098 100644 --- a/Appwrite/Models/ColumnRelationship.cs +++ b/Appwrite/Models/ColumnRelationship.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("relatedTable")] public string RelatedTable { get; private set; } @@ -73,8 +74,8 @@ string side Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; RelatedTable = relatedTable; RelationType = relationType; TwoWay = twoWay; @@ -108,8 +109,8 @@ string side { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "relatedTable", RelatedTable }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/ColumnString.cs b/Appwrite/Models/ColumnString.cs index ac1560a..32368aa 100644 --- a/Appwrite/Models/ColumnString.cs +++ b/Appwrite/Models/ColumnString.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } @@ -61,8 +62,8 @@ public ColumnString( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Size = size; @Default = xdefault; Encrypt = encrypt; @@ -90,8 +91,8 @@ public ColumnString( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "size", Size }, { "default", @Default }, { "encrypt", Encrypt } diff --git a/Appwrite/Models/ColumnUrl.cs b/Appwrite/Models/ColumnUrl.cs index 989d47c..a9c320e 100644 --- a/Appwrite/Models/ColumnUrl.cs +++ b/Appwrite/Models/ColumnUrl.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } @@ -57,8 +58,8 @@ public ColumnUrl( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; @Default = xdefault; } @@ -84,8 +85,8 @@ public ColumnUrl( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, { "default", @Default } }; diff --git a/Appwrite/Models/Continent.cs b/Appwrite/Models/Continent.cs index da86ab9..dab9656 100644 --- a/Appwrite/Models/Continent.cs +++ b/Appwrite/Models/Continent.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/ContinentList.cs b/Appwrite/Models/ContinentList.cs index e7c2b56..31e9d10 100644 --- a/Appwrite/Models/ContinentList.cs +++ b/Appwrite/Models/ContinentList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ContinentList public long Total { get; private set; } [JsonPropertyName("continents")] - public List<Continent> Continents { get; private set; } + public List Continents { get; private set; } public ContinentList( long total, - List<Continent> continents + List continents ) { Total = total; Continents = continents; diff --git a/Appwrite/Models/Country.cs b/Appwrite/Models/Country.cs index dafdcd1..ad4d0b7 100644 --- a/Appwrite/Models/Country.cs +++ b/Appwrite/Models/Country.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/CountryList.cs b/Appwrite/Models/CountryList.cs index 0c02fef..3e8147b 100644 --- a/Appwrite/Models/CountryList.cs +++ b/Appwrite/Models/CountryList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class CountryList public long Total { get; private set; } [JsonPropertyName("countries")] - public List<Country> Countries { get; private set; } + public List Countries { get; private set; } public CountryList( long total, - List<Country> countries + List countries ) { Total = total; Countries = countries; diff --git a/Appwrite/Models/Currency.cs b/Appwrite/Models/Currency.cs index 4bca5ba..492ff32 100644 --- a/Appwrite/Models/Currency.cs +++ b/Appwrite/Models/Currency.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/CurrencyList.cs b/Appwrite/Models/CurrencyList.cs index 10e06f4..2e92ffa 100644 --- a/Appwrite/Models/CurrencyList.cs +++ b/Appwrite/Models/CurrencyList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class CurrencyList public long Total { get; private set; } [JsonPropertyName("currencies")] - public List<Currency> Currencies { get; private set; } + public List Currencies { get; private set; } public CurrencyList( long total, - List<Currency> currencies + List currencies ) { Total = total; Currencies = currencies; diff --git a/Appwrite/Models/Database.cs b/Appwrite/Models/Database.cs index 2a68f8d..d74b253 100644 --- a/Appwrite/Models/Database.cs +++ b/Appwrite/Models/Database.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Database { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("enabled")] public bool Enabled { get; private set; } @@ -35,10 +36,10 @@ public Database( bool enabled, string type ) { - id = id; + Id = id; Name = name; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Enabled = enabled; Type = type; } @@ -54,10 +55,10 @@ string type public Dictionary ToMap() => new Dictionary() { - { "$id", id }, + { "$id", Id }, { "name", Name }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "enabled", Enabled }, { "type", Type } }; diff --git a/Appwrite/Models/DatabaseList.cs b/Appwrite/Models/DatabaseList.cs index dc6aef2..e3d0941 100644 --- a/Appwrite/Models/DatabaseList.cs +++ b/Appwrite/Models/DatabaseList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class DatabaseList public long Total { get; private set; } [JsonPropertyName("databases")] - public List<Database> Databases { get; private set; } + public List Databases { get; private set; } public DatabaseList( long total, - List<Database> databases + List databases ) { Total = total; Databases = databases; diff --git a/Appwrite/Models/Deployment.cs b/Appwrite/Models/Deployment.cs index 411fea2..7663cf1 100644 --- a/Appwrite/Models/Deployment.cs +++ b/Appwrite/Models/Deployment.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Deployment { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("type")] public string Type { get; private set; } @@ -119,9 +120,9 @@ public Deployment( string providerBranch, string providerBranchUrl ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Type = type; ResourceId = resourceId; ResourceType = resourceType; @@ -180,9 +181,9 @@ string providerBranchUrl public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "type", Type }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, diff --git a/Appwrite/Models/DeploymentList.cs b/Appwrite/Models/DeploymentList.cs index 163c4b5..c48b9f0 100644 --- a/Appwrite/Models/DeploymentList.cs +++ b/Appwrite/Models/DeploymentList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class DeploymentList public long Total { get; private set; } [JsonPropertyName("deployments")] - public List<Deployment> Deployments { get; private set; } + public List Deployments { get; private set; } public DeploymentList( long total, - List<Deployment> deployments + List deployments ) { Total = total; Deployments = deployments; diff --git a/Appwrite/Models/Document.cs b/Appwrite/Models/Document.cs index cce7a5f..af58951 100644 --- a/Appwrite/Models/Document.cs +++ b/Appwrite/Models/Document.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,25 +11,25 @@ namespace Appwrite.Models public class Document { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$sequence")] - public long sequence { get; private set; } + public long Sequence { get; private set; } [JsonPropertyName("$collectionId")] - public string collectionId { get; private set; } + public string CollectionId { get; private set; } [JsonPropertyName("$databaseId")] - public string databaseId { get; private set; } + public string DatabaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } public Dictionary Data { get; private set; } @@ -39,16 +40,16 @@ public Document( string databaseId, string createdAt, string updatedAt, - List<string> permissions, + List permissions, Dictionary data ) { - id = id; - sequence = sequence; - collectionId = collectionId; - databaseId = databaseId; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + Sequence = sequence; + CollectionId = collectionId; + DatabaseId = databaseId; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; Data = data; } @@ -65,13 +66,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$sequence", sequence }, - { "$collectionId", collectionId }, - { "$databaseId", databaseId }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$sequence", Sequence }, + { "$collectionId", CollectionId }, + { "$databaseId", DatabaseId }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "data", Data } }; diff --git a/Appwrite/Models/DocumentList.cs b/Appwrite/Models/DocumentList.cs index 6d11012..c481a64 100644 --- a/Appwrite/Models/DocumentList.cs +++ b/Appwrite/Models/DocumentList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class DocumentList public long Total { get; private set; } [JsonPropertyName("documents")] - public List<Document> Documents { get; private set; } + public List Documents { get; private set; } public DocumentList( long total, - List<Document> documents + List documents ) { Total = total; Documents = documents; diff --git a/Appwrite/Models/Execution.cs b/Appwrite/Models/Execution.cs index af038e9..17898c9 100644 --- a/Appwrite/Models/Execution.cs +++ b/Appwrite/Models/Execution.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Execution { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("functionId")] public string FunctionId { get; private set; } @@ -40,7 +41,7 @@ public class Execution public string RequestPath { get; private set; } [JsonPropertyName("requestHeaders")] - public List<Headers> RequestHeaders { get; private set; } + public List RequestHeaders { get; private set; } [JsonPropertyName("responseStatusCode")] public long ResponseStatusCode { get; private set; } @@ -49,7 +50,7 @@ public class Execution public string ResponseBody { get; private set; } [JsonPropertyName("responseHeaders")] - public List<Headers> ResponseHeaders { get; private set; } + public List ResponseHeaders { get; private set; } [JsonPropertyName("logs")] public string Logs { get; private set; } @@ -67,26 +68,26 @@ public Execution( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string functionId, string deploymentId, ExecutionTrigger trigger, ExecutionStatus status, string requestMethod, string requestPath, - List<Headers> requestHeaders, + List requestHeaders, long responseStatusCode, string responseBody, - List<Headers> responseHeaders, + List responseHeaders, string logs, string errors, double duration, string? scheduledAt ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; FunctionId = functionId; DeploymentId = deploymentId; Trigger = trigger; @@ -126,10 +127,10 @@ public Execution( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "functionId", FunctionId }, { "deploymentId", DeploymentId }, { "trigger", Trigger.Value }, diff --git a/Appwrite/Models/ExecutionList.cs b/Appwrite/Models/ExecutionList.cs index f2808bc..da5c64d 100644 --- a/Appwrite/Models/ExecutionList.cs +++ b/Appwrite/Models/ExecutionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ExecutionList public long Total { get; private set; } [JsonPropertyName("executions")] - public List<Execution> Executions { get; private set; } + public List Executions { get; private set; } public ExecutionList( long total, - List<Execution> executions + List executions ) { Total = total; Executions = executions; diff --git a/Appwrite/Models/File.cs b/Appwrite/Models/File.cs index 77acb10..8d0d2e1 100644 --- a/Appwrite/Models/File.cs +++ b/Appwrite/Models/File.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,19 +11,19 @@ namespace Appwrite.Models public class File { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("bucketId")] public string BucketId { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,7 +48,7 @@ public File( string bucketId, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string name, string signature, string mimeType, @@ -55,11 +56,11 @@ public File( long chunksTotal, long chunksUploaded ) { - id = id; + Id = id; BucketId = bucketId; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; Name = name; Signature = signature; MimeType = mimeType; @@ -84,11 +85,11 @@ long chunksUploaded public Dictionary ToMap() => new Dictionary() { - { "$id", id }, + { "$id", Id }, { "bucketId", BucketId }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "name", Name }, { "signature", Signature }, { "mimeType", MimeType }, diff --git a/Appwrite/Models/FileList.cs b/Appwrite/Models/FileList.cs index 1f3cda3..c1d39a2 100644 --- a/Appwrite/Models/FileList.cs +++ b/Appwrite/Models/FileList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class FileList public long Total { get; private set; } [JsonPropertyName("files")] - public List<File> Files { get; private set; } + public List Files { get; private set; } public FileList( long total, - List<File> files + List files ) { Total = total; Files = files; diff --git a/Appwrite/Models/Framework.cs b/Appwrite/Models/Framework.cs index 9930bc6..551df2e 100644 --- a/Appwrite/Models/Framework.cs +++ b/Appwrite/Models/Framework.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -19,17 +20,17 @@ public class Framework public string BuildRuntime { get; private set; } [JsonPropertyName("runtimes")] - public List<string> Runtimes { get; private set; } + public List Runtimes { get; private set; } [JsonPropertyName("adapters")] - public List<FrameworkAdapter> Adapters { get; private set; } + public List Adapters { get; private set; } public Framework( string key, string name, string buildRuntime, - List<string> runtimes, - List<FrameworkAdapter> adapters + List runtimes, + List adapters ) { Key = key; Name = name; diff --git a/Appwrite/Models/FrameworkAdapter.cs b/Appwrite/Models/FrameworkAdapter.cs index 851c61f..5e88b2b 100644 --- a/Appwrite/Models/FrameworkAdapter.cs +++ b/Appwrite/Models/FrameworkAdapter.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/FrameworkList.cs b/Appwrite/Models/FrameworkList.cs index 31a216e..8d9cb26 100644 --- a/Appwrite/Models/FrameworkList.cs +++ b/Appwrite/Models/FrameworkList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class FrameworkList public long Total { get; private set; } [JsonPropertyName("frameworks")] - public List<Framework> Frameworks { get; private set; } + public List Frameworks { get; private set; } public FrameworkList( long total, - List<Framework> frameworks + List frameworks ) { Total = total; Frameworks = frameworks; diff --git a/Appwrite/Models/Function.cs b/Appwrite/Models/Function.cs index 50171a8..f5b64ff 100644 --- a/Appwrite/Models/Function.cs +++ b/Appwrite/Models/Function.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Function { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("execute")] - public List<string> Execute { get; private set; } + public List Execute { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -52,13 +53,13 @@ public class Function public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("scopes")] - public List<string> Scopes { get; private set; } + public List Scopes { get; private set; } [JsonPropertyName("vars")] - public List<Variable> Vars { get; private set; } + public List Vars { get; private set; } [JsonPropertyName("events")] - public List<string> Events { get; private set; } + public List Events { get; private set; } [JsonPropertyName("schedule")] public string Schedule { get; private set; } @@ -97,7 +98,7 @@ public Function( string id, string createdAt, string updatedAt, - List<string> execute, + List execute, string name, bool enabled, bool live, @@ -108,9 +109,9 @@ public Function( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List<string> scopes, - List<Variable> vars, - List<string> events, + List scopes, + List vars, + List events, string schedule, long timeout, string entrypoint, @@ -123,9 +124,9 @@ public Function( bool providerSilentMode, string specification ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Execute = execute; Name = name; Enabled = enabled; @@ -186,9 +187,9 @@ string specification public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "execute", Execute }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/FunctionList.cs b/Appwrite/Models/FunctionList.cs index 47408cd..eecdd23 100644 --- a/Appwrite/Models/FunctionList.cs +++ b/Appwrite/Models/FunctionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class FunctionList public long Total { get; private set; } [JsonPropertyName("functions")] - public List<Function> Functions { get; private set; } + public List Functions { get; private set; } public FunctionList( long total, - List<Function> functions + List functions ) { Total = total; Functions = functions; diff --git a/Appwrite/Models/Headers.cs b/Appwrite/Models/Headers.cs index fef3167..f0f30ff 100644 --- a/Appwrite/Models/Headers.cs +++ b/Appwrite/Models/Headers.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthAntivirus.cs b/Appwrite/Models/HealthAntivirus.cs index bf6a2e6..2bb3b1d 100644 --- a/Appwrite/Models/HealthAntivirus.cs +++ b/Appwrite/Models/HealthAntivirus.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthCertificate.cs b/Appwrite/Models/HealthCertificate.cs index 593c71f..4d65f5a 100644 --- a/Appwrite/Models/HealthCertificate.cs +++ b/Appwrite/Models/HealthCertificate.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthQueue.cs b/Appwrite/Models/HealthQueue.cs index 846c566..7d34577 100644 --- a/Appwrite/Models/HealthQueue.cs +++ b/Appwrite/Models/HealthQueue.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthStatus.cs b/Appwrite/Models/HealthStatus.cs index 357ca3e..fc80de2 100644 --- a/Appwrite/Models/HealthStatus.cs +++ b/Appwrite/Models/HealthStatus.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthTime.cs b/Appwrite/Models/HealthTime.cs index c4136dd..e55b7ba 100644 --- a/Appwrite/Models/HealthTime.cs +++ b/Appwrite/Models/HealthTime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Identity.cs b/Appwrite/Models/Identity.cs index a9ec2bb..240b85f 100644 --- a/Appwrite/Models/Identity.cs +++ b/Appwrite/Models/Identity.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Identity { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -51,9 +52,9 @@ public Identity( string providerAccessTokenExpiry, string providerRefreshToken ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; UserId = userId; Provider = provider; ProviderUid = providerUid; @@ -78,9 +79,9 @@ string providerRefreshToken public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "userId", UserId }, { "provider", Provider }, { "providerUid", ProviderUid }, diff --git a/Appwrite/Models/IdentityList.cs b/Appwrite/Models/IdentityList.cs index e2a6452..d7c0864 100644 --- a/Appwrite/Models/IdentityList.cs +++ b/Appwrite/Models/IdentityList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class IdentityList public long Total { get; private set; } [JsonPropertyName("identities")] - public List<Identity> Identities { get; private set; } + public List Identities { get; private set; } public IdentityList( long total, - List<Identity> identities + List identities ) { Total = total; Identities = identities; diff --git a/Appwrite/Models/Index.cs b/Appwrite/Models/Index.cs index fd920ed..8f4ff78 100644 --- a/Appwrite/Models/Index.cs +++ b/Appwrite/Models/Index.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Index { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -31,13 +32,13 @@ public class Index public string Error { get; private set; } [JsonPropertyName("attributes")] - public List<string> Attributes { get; private set; } + public List Attributes { get; private set; } [JsonPropertyName("lengths")] - public List<long> Lengths { get; private set; } + public List Lengths { get; private set; } [JsonPropertyName("orders")] - public List<string>? Orders { get; private set; } + public List? Orders { get; private set; } public Index( string id, @@ -47,13 +48,13 @@ public Index( string type, IndexStatus status, string error, - List<string> attributes, - List<long> lengths, - List<string>? orders + List attributes, + List lengths, + List? orders ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -78,9 +79,9 @@ public Index( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "key", Key }, { "type", Type }, { "status", Status.Value }, diff --git a/Appwrite/Models/IndexList.cs b/Appwrite/Models/IndexList.cs index a603cbd..5b1989e 100644 --- a/Appwrite/Models/IndexList.cs +++ b/Appwrite/Models/IndexList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class IndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List<Index> Indexes { get; private set; } + public List Indexes { get; private set; } public IndexList( long total, - List<Index> indexes + List indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/JWT.cs b/Appwrite/Models/JWT.cs index f2e8fc9..a25b7de 100644 --- a/Appwrite/Models/JWT.cs +++ b/Appwrite/Models/JWT.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Language.cs b/Appwrite/Models/Language.cs index a28b170..124f01c 100644 --- a/Appwrite/Models/Language.cs +++ b/Appwrite/Models/Language.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LanguageList.cs b/Appwrite/Models/LanguageList.cs index e554fd9..edc4525 100644 --- a/Appwrite/Models/LanguageList.cs +++ b/Appwrite/Models/LanguageList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class LanguageList public long Total { get; private set; } [JsonPropertyName("languages")] - public List<Language> Languages { get; private set; } + public List Languages { get; private set; } public LanguageList( long total, - List<Language> languages + List languages ) { Total = total; Languages = languages; diff --git a/Appwrite/Models/Locale.cs b/Appwrite/Models/Locale.cs index fd3213e..58cad59 100644 --- a/Appwrite/Models/Locale.cs +++ b/Appwrite/Models/Locale.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LocaleCode.cs b/Appwrite/Models/LocaleCode.cs index da5a114..a16017b 100644 --- a/Appwrite/Models/LocaleCode.cs +++ b/Appwrite/Models/LocaleCode.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LocaleCodeList.cs b/Appwrite/Models/LocaleCodeList.cs index f0f61a0..4063057 100644 --- a/Appwrite/Models/LocaleCodeList.cs +++ b/Appwrite/Models/LocaleCodeList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class LocaleCodeList public long Total { get; private set; } [JsonPropertyName("localeCodes")] - public List<LocaleCode> LocaleCodes { get; private set; } + public List LocaleCodes { get; private set; } public LocaleCodeList( long total, - List<LocaleCode> localeCodes + List localeCodes ) { Total = total; LocaleCodes = localeCodes; diff --git a/Appwrite/Models/Log.cs b/Appwrite/Models/Log.cs index f85db25..0c8355b 100644 --- a/Appwrite/Models/Log.cs +++ b/Appwrite/Models/Log.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LogList.cs b/Appwrite/Models/LogList.cs index 5dc5581..a72414a 100644 --- a/Appwrite/Models/LogList.cs +++ b/Appwrite/Models/LogList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class LogList public long Total { get; private set; } [JsonPropertyName("logs")] - public List<Log> Logs { get; private set; } + public List Logs { get; private set; } public LogList( long total, - List<Log> logs + List logs ) { Total = total; Logs = logs; diff --git a/Appwrite/Models/Membership.cs b/Appwrite/Models/Membership.cs index 3c11584..8bb40c1 100644 --- a/Appwrite/Models/Membership.cs +++ b/Appwrite/Models/Membership.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Membership { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -46,7 +47,7 @@ public class Membership public bool Mfa { get; private set; } [JsonPropertyName("roles")] - public List<string> Roles { get; private set; } + public List Roles { get; private set; } public Membership( string id, @@ -61,11 +62,11 @@ public Membership( string joined, bool confirm, bool mfa, - List<string> roles + List roles ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; UserId = userId; UserName = userName; UserEmail = userEmail; @@ -96,9 +97,9 @@ public Membership( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "userId", UserId }, { "userName", UserName }, { "userEmail", UserEmail }, diff --git a/Appwrite/Models/MembershipList.cs b/Appwrite/Models/MembershipList.cs index 9b74a10..dd7bcc0 100644 --- a/Appwrite/Models/MembershipList.cs +++ b/Appwrite/Models/MembershipList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class MembershipList public long Total { get; private set; } [JsonPropertyName("memberships")] - public List<Membership> Memberships { get; private set; } + public List Memberships { get; private set; } public MembershipList( long total, - List<Membership> memberships + List memberships ) { Total = total; Memberships = memberships; diff --git a/Appwrite/Models/Message.cs b/Appwrite/Models/Message.cs index a9188e5..793ee9c 100644 --- a/Appwrite/Models/Message.cs +++ b/Appwrite/Models/Message.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,25 +11,25 @@ namespace Appwrite.Models public class Message { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("providerType")] public string ProviderType { get; private set; } [JsonPropertyName("topics")] - public List<string> Topics { get; private set; } + public List Topics { get; private set; } [JsonPropertyName("users")] - public List<string> Users { get; private set; } + public List Users { get; private set; } [JsonPropertyName("targets")] - public List<string> Targets { get; private set; } + public List Targets { get; private set; } [JsonPropertyName("scheduledAt")] public string? ScheduledAt { get; private set; } @@ -37,7 +38,7 @@ public class Message public string? DeliveredAt { get; private set; } [JsonPropertyName("deliveryErrors")] - public List<string>? DeliveryErrors { get; private set; } + public List? DeliveryErrors { get; private set; } [JsonPropertyName("deliveredTotal")] public long DeliveredTotal { get; private set; } @@ -53,19 +54,19 @@ public Message( string createdAt, string updatedAt, string providerType, - List<string> topics, - List<string> users, - List<string> targets, + List topics, + List users, + List targets, string? scheduledAt, string? deliveredAt, - List<string>? deliveryErrors, + List? deliveryErrors, long deliveredTotal, object data, MessageStatus status ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; ProviderType = providerType; Topics = topics; Users = users; @@ -96,9 +97,9 @@ MessageStatus status public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "providerType", ProviderType }, { "topics", Topics }, { "users", Users }, diff --git a/Appwrite/Models/MessageList.cs b/Appwrite/Models/MessageList.cs index 9fdaf44..b41a2df 100644 --- a/Appwrite/Models/MessageList.cs +++ b/Appwrite/Models/MessageList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class MessageList public long Total { get; private set; } [JsonPropertyName("messages")] - public List<Message> Messages { get; private set; } + public List Messages { get; private set; } public MessageList( long total, - List<Message> messages + List messages ) { Total = total; Messages = messages; diff --git a/Appwrite/Models/MfaChallenge.cs b/Appwrite/Models/MfaChallenge.cs index 632bac6..d5fcc27 100644 --- a/Appwrite/Models/MfaChallenge.cs +++ b/Appwrite/Models/MfaChallenge.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class MfaChallenge { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -27,8 +28,8 @@ public MfaChallenge( string userId, string expire ) { - id = id; - createdAt = createdAt; + Id = id; + CreatedAt = createdAt; UserId = userId; Expire = expire; } @@ -42,8 +43,8 @@ string expire public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, { "userId", UserId }, { "expire", Expire } }; diff --git a/Appwrite/Models/MfaFactors.cs b/Appwrite/Models/MfaFactors.cs index 8019a3e..f0cc908 100644 --- a/Appwrite/Models/MfaFactors.cs +++ b/Appwrite/Models/MfaFactors.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/MfaRecoveryCodes.cs b/Appwrite/Models/MfaRecoveryCodes.cs index befbfd9..6855f35 100644 --- a/Appwrite/Models/MfaRecoveryCodes.cs +++ b/Appwrite/Models/MfaRecoveryCodes.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class MfaRecoveryCodes { [JsonPropertyName("recoveryCodes")] - public List<string> RecoveryCodes { get; private set; } + public List RecoveryCodes { get; private set; } public MfaRecoveryCodes( - List<string> recoveryCodes + List recoveryCodes ) { RecoveryCodes = recoveryCodes; } diff --git a/Appwrite/Models/MfaType.cs b/Appwrite/Models/MfaType.cs index 88de025..8e008f8 100644 --- a/Appwrite/Models/MfaType.cs +++ b/Appwrite/Models/MfaType.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Phone.cs b/Appwrite/Models/Phone.cs index 911f66f..a820f07 100644 --- a/Appwrite/Models/Phone.cs +++ b/Appwrite/Models/Phone.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/PhoneList.cs b/Appwrite/Models/PhoneList.cs index 16d1493..26c7f6d 100644 --- a/Appwrite/Models/PhoneList.cs +++ b/Appwrite/Models/PhoneList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class PhoneList public long Total { get; private set; } [JsonPropertyName("phones")] - public List<Phone> Phones { get; private set; } + public List Phones { get; private set; } public PhoneList( long total, - List<Phone> phones + List phones ) { Total = total; Phones = phones; diff --git a/Appwrite/Models/Preferences.cs b/Appwrite/Models/Preferences.cs index 32de5e3..0f97086 100644 --- a/Appwrite/Models/Preferences.cs +++ b/Appwrite/Models/Preferences.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Provider.cs b/Appwrite/Models/Provider.cs index 185607a..430277c 100644 --- a/Appwrite/Models/Provider.cs +++ b/Appwrite/Models/Provider.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Provider { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,9 +48,9 @@ public Provider( object credentials, object? options ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; MessagingProvider = provider; Enabled = enabled; @@ -72,9 +73,9 @@ public Provider( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "provider", MessagingProvider }, { "enabled", Enabled }, diff --git a/Appwrite/Models/ProviderList.cs b/Appwrite/Models/ProviderList.cs index 249a480..783d903 100644 --- a/Appwrite/Models/ProviderList.cs +++ b/Appwrite/Models/ProviderList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ProviderList public long Total { get; private set; } [JsonPropertyName("providers")] - public List<Provider> Providers { get; private set; } + public List Providers { get; private set; } public ProviderList( long total, - List<Provider> providers + List providers ) { Total = total; Providers = providers; diff --git a/Appwrite/Models/ResourceToken.cs b/Appwrite/Models/ResourceToken.cs index 1e843de..b2e5635 100644 --- a/Appwrite/Models/ResourceToken.cs +++ b/Appwrite/Models/ResourceToken.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class ResourceToken { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("resourceId")] public string ResourceId { get; private set; } @@ -39,8 +40,8 @@ public ResourceToken( string secret, string accessedAt ) { - id = id; - createdAt = createdAt; + Id = id; + CreatedAt = createdAt; ResourceId = resourceId; ResourceType = resourceType; Expire = expire; @@ -60,8 +61,8 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, { "expire", Expire }, diff --git a/Appwrite/Models/ResourceTokenList.cs b/Appwrite/Models/ResourceTokenList.cs index d3e04ee..8f0928f 100644 --- a/Appwrite/Models/ResourceTokenList.cs +++ b/Appwrite/Models/ResourceTokenList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ResourceTokenList public long Total { get; private set; } [JsonPropertyName("tokens")] - public List<ResourceToken> Tokens { get; private set; } + public List Tokens { get; private set; } public ResourceTokenList( long total, - List<ResourceToken> tokens + List tokens ) { Total = total; Tokens = tokens; diff --git a/Appwrite/Models/Row.cs b/Appwrite/Models/Row.cs index dd635cb..d72ab9c 100644 --- a/Appwrite/Models/Row.cs +++ b/Appwrite/Models/Row.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,25 +11,25 @@ namespace Appwrite.Models public class Row { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$sequence")] - public long sequence { get; private set; } + public long Sequence { get; private set; } [JsonPropertyName("$tableId")] - public string tableId { get; private set; } + public string TableId { get; private set; } [JsonPropertyName("$databaseId")] - public string databaseId { get; private set; } + public string DatabaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } public Dictionary Data { get; private set; } @@ -39,16 +40,16 @@ public Row( string databaseId, string createdAt, string updatedAt, - List<string> permissions, + List permissions, Dictionary data ) { - id = id; - sequence = sequence; - tableId = tableId; - databaseId = databaseId; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + Sequence = sequence; + TableId = tableId; + DatabaseId = databaseId; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; Data = data; } @@ -65,13 +66,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$sequence", sequence }, - { "$tableId", tableId }, - { "$databaseId", databaseId }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$sequence", Sequence }, + { "$tableId", TableId }, + { "$databaseId", DatabaseId }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "data", Data } }; diff --git a/Appwrite/Models/RowList.cs b/Appwrite/Models/RowList.cs index ee52902..210a5f1 100644 --- a/Appwrite/Models/RowList.cs +++ b/Appwrite/Models/RowList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class RowList public long Total { get; private set; } [JsonPropertyName("rows")] - public List<Row> Rows { get; private set; } + public List Rows { get; private set; } public RowList( long total, - List<Row> rows + List rows ) { Total = total; Rows = rows; diff --git a/Appwrite/Models/Runtime.cs b/Appwrite/Models/Runtime.cs index 4e5d740..d24bda9 100644 --- a/Appwrite/Models/Runtime.cs +++ b/Appwrite/Models/Runtime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,7 +11,7 @@ namespace Appwrite.Models public class Runtime { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -31,7 +32,7 @@ public class Runtime public string Logo { get; private set; } [JsonPropertyName("supports")] - public List<string> Supports { get; private set; } + public List Supports { get; private set; } public Runtime( string id, @@ -41,9 +42,9 @@ public Runtime( string xbase, string image, string logo, - List<string> supports + List supports ) { - id = id; + Id = id; Key = key; Name = name; Version = version; @@ -66,7 +67,7 @@ public Runtime( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, + { "$id", Id }, { "key", Key }, { "name", Name }, { "version", Version }, diff --git a/Appwrite/Models/RuntimeList.cs b/Appwrite/Models/RuntimeList.cs index 04d1a4a..c4c6b0e 100644 --- a/Appwrite/Models/RuntimeList.cs +++ b/Appwrite/Models/RuntimeList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class RuntimeList public long Total { get; private set; } [JsonPropertyName("runtimes")] - public List<Runtime> Runtimes { get; private set; } + public List Runtimes { get; private set; } public RuntimeList( long total, - List<Runtime> runtimes + List runtimes ) { Total = total; Runtimes = runtimes; diff --git a/Appwrite/Models/Session.cs b/Appwrite/Models/Session.cs index 0ec983c..a22bb62 100644 --- a/Appwrite/Models/Session.cs +++ b/Appwrite/Models/Session.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Session { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -88,7 +89,7 @@ public class Session public bool Current { get; private set; } [JsonPropertyName("factors")] - public List<string> Factors { get; private set; } + public List Factors { get; private set; } [JsonPropertyName("secret")] public string Secret { get; private set; } @@ -123,13 +124,13 @@ public Session( string countryCode, string countryName, bool current, - List<string> factors, + List factors, string secret, string mfaUpdatedAt ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; UserId = userId; Expire = expire; Provider = provider; @@ -192,9 +193,9 @@ string mfaUpdatedAt public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "userId", UserId }, { "expire", Expire }, { "provider", Provider }, diff --git a/Appwrite/Models/SessionList.cs b/Appwrite/Models/SessionList.cs index 891d815..685cead 100644 --- a/Appwrite/Models/SessionList.cs +++ b/Appwrite/Models/SessionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SessionList public long Total { get; private set; } [JsonPropertyName("sessions")] - public List<Session> Sessions { get; private set; } + public List Sessions { get; private set; } public SessionList( long total, - List<Session> sessions + List sessions ) { Total = total; Sessions = sessions; diff --git a/Appwrite/Models/Site.cs b/Appwrite/Models/Site.cs index f00a3fc..70fb1ec 100644 --- a/Appwrite/Models/Site.cs +++ b/Appwrite/Models/Site.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Site { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -55,7 +56,7 @@ public class Site public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("vars")] - public List<Variable> Vars { get; private set; } + public List Vars { get; private set; } [JsonPropertyName("timeout")] public long Timeout { get; private set; } @@ -112,7 +113,7 @@ public Site( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List<Variable> vars, + List vars, long timeout, string installCommand, string buildCommand, @@ -127,9 +128,9 @@ public Site( string adapter, string fallbackFile ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; Enabled = enabled; Live = live; @@ -192,9 +193,9 @@ string fallbackFile public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "enabled", Enabled }, { "live", Live }, diff --git a/Appwrite/Models/SiteList.cs b/Appwrite/Models/SiteList.cs index bf80aed..2b8a361 100644 --- a/Appwrite/Models/SiteList.cs +++ b/Appwrite/Models/SiteList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SiteList public long Total { get; private set; } [JsonPropertyName("sites")] - public List<Site> Sites { get; private set; } + public List Sites { get; private set; } public SiteList( long total, - List<Site> sites + List sites ) { Total = total; Sites = sites; diff --git a/Appwrite/Models/Specification.cs b/Appwrite/Models/Specification.cs index 7177ac7..1334b3d 100644 --- a/Appwrite/Models/Specification.cs +++ b/Appwrite/Models/Specification.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/SpecificationList.cs b/Appwrite/Models/SpecificationList.cs index 7b33251..82694bc 100644 --- a/Appwrite/Models/SpecificationList.cs +++ b/Appwrite/Models/SpecificationList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SpecificationList public long Total { get; private set; } [JsonPropertyName("specifications")] - public List<Specification> Specifications { get; private set; } + public List Specifications { get; private set; } public SpecificationList( long total, - List<Specification> specifications + List specifications ) { Total = total; Specifications = specifications; diff --git a/Appwrite/Models/Subscriber.cs b/Appwrite/Models/Subscriber.cs index 64462eb..0837bfc 100644 --- a/Appwrite/Models/Subscriber.cs +++ b/Appwrite/Models/Subscriber.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Subscriber { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("targetId")] public string TargetId { get; private set; } @@ -47,9 +48,9 @@ public Subscriber( string topicId, string providerType ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; TargetId = targetId; Target = target; UserId = userId; @@ -72,9 +73,9 @@ string providerType public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "targetId", TargetId }, { "target", Target.ToMap() }, { "userId", UserId }, diff --git a/Appwrite/Models/SubscriberList.cs b/Appwrite/Models/SubscriberList.cs index 9cebb0a..7de9083 100644 --- a/Appwrite/Models/SubscriberList.cs +++ b/Appwrite/Models/SubscriberList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SubscriberList public long Total { get; private set; } [JsonPropertyName("subscribers")] - public List<Subscriber> Subscribers { get; private set; } + public List Subscribers { get; private set; } public SubscriberList( long total, - List<Subscriber> subscribers + List subscribers ) { Total = total; Subscribers = subscribers; diff --git a/Appwrite/Models/Table.cs b/Appwrite/Models/Table.cs index c35b559..c621543 100644 --- a/Appwrite/Models/Table.cs +++ b/Appwrite/Models/Table.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Table { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -34,27 +35,27 @@ public class Table public bool RowSecurity { get; private set; } [JsonPropertyName("columns")] - public List<object> Columns { get; private set; } + public List Columns { get; private set; } [JsonPropertyName("indexes")] - public List<ColumnIndex> Indexes { get; private set; } + public List Indexes { get; private set; } public Table( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string databaseId, string name, bool enabled, bool rowSecurity, - List<object> columns, - List<ColumnIndex> indexes + List columns, + List indexes ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -78,10 +79,10 @@ public Table( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/TableList.cs b/Appwrite/Models/TableList.cs index 2449594..e4251f1 100644 --- a/Appwrite/Models/TableList.cs +++ b/Appwrite/Models/TableList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TableList public long Total { get; private set; } [JsonPropertyName("tables")] - public List<Table> Tables { get; private set; } + public List
Tables { get; private set; } public TableList( long total, - List<Table> tables + List
tables ) { Total = total; Tables = tables; diff --git a/Appwrite/Models/Target.cs b/Appwrite/Models/Target.cs index 12698e1..b19d882 100644 --- a/Appwrite/Models/Target.cs +++ b/Appwrite/Models/Target.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Target { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,9 +48,9 @@ public Target( string identifier, bool expired ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; UserId = userId; ProviderId = providerId; @@ -72,9 +73,9 @@ bool expired public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "userId", UserId }, { "providerId", ProviderId }, diff --git a/Appwrite/Models/TargetList.cs b/Appwrite/Models/TargetList.cs index e88076f..ceef206 100644 --- a/Appwrite/Models/TargetList.cs +++ b/Appwrite/Models/TargetList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TargetList public long Total { get; private set; } [JsonPropertyName("targets")] - public List<Target> Targets { get; private set; } + public List Targets { get; private set; } public TargetList( long total, - List<Target> targets + List targets ) { Total = total; Targets = targets; diff --git a/Appwrite/Models/Team.cs b/Appwrite/Models/Team.cs index 5b471dd..5e68469 100644 --- a/Appwrite/Models/Team.cs +++ b/Appwrite/Models/Team.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Team { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -35,9 +36,9 @@ public Team( long total, Preferences prefs ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; Total = total; Prefs = prefs; @@ -54,9 +55,9 @@ Preferences prefs public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "total", Total }, { "prefs", Prefs.ToMap() } diff --git a/Appwrite/Models/TeamList.cs b/Appwrite/Models/TeamList.cs index 40b0125..a079b7f 100644 --- a/Appwrite/Models/TeamList.cs +++ b/Appwrite/Models/TeamList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TeamList public long Total { get; private set; } [JsonPropertyName("teams")] - public List<Team> Teams { get; private set; } + public List Teams { get; private set; } public TeamList( long total, - List<Team> teams + List teams ) { Total = total; Teams = teams; diff --git a/Appwrite/Models/Token.cs b/Appwrite/Models/Token.cs index 924e569..8b6ec46 100644 --- a/Appwrite/Models/Token.cs +++ b/Appwrite/Models/Token.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class Token { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -35,8 +36,8 @@ public Token( string expire, string phrase ) { - id = id; - createdAt = createdAt; + Id = id; + CreatedAt = createdAt; UserId = userId; Secret = secret; Expire = expire; @@ -54,8 +55,8 @@ string phrase public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, { "userId", UserId }, { "secret", Secret }, { "expire", Expire }, diff --git a/Appwrite/Models/Topic.cs b/Appwrite/Models/Topic.cs index cc53428..bc2f973 100644 --- a/Appwrite/Models/Topic.cs +++ b/Appwrite/Models/Topic.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Topic { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -31,7 +32,7 @@ public class Topic public long PushTotal { get; private set; } [JsonPropertyName("subscribe")] - public List<string> Subscribe { get; private set; } + public List Subscribe { get; private set; } public Topic( string id, @@ -41,11 +42,11 @@ public Topic( long emailTotal, long smsTotal, long pushTotal, - List<string> subscribe + List subscribe ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; EmailTotal = emailTotal; SmsTotal = smsTotal; @@ -66,9 +67,9 @@ public Topic( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "emailTotal", EmailTotal }, { "smsTotal", SmsTotal }, diff --git a/Appwrite/Models/TopicList.cs b/Appwrite/Models/TopicList.cs index 8a77ace..51bfeab 100644 --- a/Appwrite/Models/TopicList.cs +++ b/Appwrite/Models/TopicList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TopicList public long Total { get; private set; } [JsonPropertyName("topics")] - public List<Topic> Topics { get; private set; } + public List Topics { get; private set; } public TopicList( long total, - List<Topic> topics + List topics ) { Total = total; Topics = topics; diff --git a/Appwrite/Models/User.cs b/Appwrite/Models/User.cs index d1efe29..a1ac4c6 100644 --- a/Appwrite/Models/User.cs +++ b/Appwrite/Models/User.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class User { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -37,7 +38,7 @@ public class User public bool Status { get; private set; } [JsonPropertyName("labels")] - public List<string> Labels { get; private set; } + public List Labels { get; private set; } [JsonPropertyName("passwordUpdate")] public string PasswordUpdate { get; private set; } @@ -61,7 +62,7 @@ public class User public Preferences Prefs { get; private set; } [JsonPropertyName("targets")] - public List<Target> Targets { get; private set; } + public List Targets { get; private set; } [JsonPropertyName("accessedAt")] public string AccessedAt { get; private set; } @@ -76,7 +77,7 @@ public User( object? hashOptions, string registration, bool status, - List<string> labels, + List labels, string passwordUpdate, string email, string phone, @@ -84,12 +85,12 @@ public User( bool phoneVerification, bool mfa, Preferences prefs, - List<Target> targets, + List targets, string accessedAt ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; Password = password; Hash = hash; @@ -132,9 +133,9 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "password", Password }, { "hash", Hash }, diff --git a/Appwrite/Models/UserList.cs b/Appwrite/Models/UserList.cs index d89fd26..d1574dc 100644 --- a/Appwrite/Models/UserList.cs +++ b/Appwrite/Models/UserList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class UserList public long Total { get; private set; } [JsonPropertyName("users")] - public List<User> Users { get; private set; } + public List Users { get; private set; } public UserList( long total, - List<User> users + List users ) { Total = total; Users = users; diff --git a/Appwrite/Models/Variable.cs b/Appwrite/Models/Variable.cs index d5eb198..8dc0a3d 100644 --- a/Appwrite/Models/Variable.cs +++ b/Appwrite/Models/Variable.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Variable { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -43,9 +44,9 @@ public Variable( string resourceType, string resourceId ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Key = key; @Value = xvalue; Secret = secret; @@ -66,9 +67,9 @@ string resourceId public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "key", Key }, { "value", @Value }, { "secret", Secret }, diff --git a/Appwrite/Models/VariableList.cs b/Appwrite/Models/VariableList.cs index a5a5592..b17d415 100644 --- a/Appwrite/Models/VariableList.cs +++ b/Appwrite/Models/VariableList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class VariableList public long Total { get; private set; } [JsonPropertyName("variables")] - public List<Variable> Variables { get; private set; } + public List Variables { get; private set; } public VariableList( long total, - List<Variable> variables + List variables ) { Total = total; Variables = variables; From 9fcb2fba41ac7780b64e967dd521e9aa352d5402 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Oct 2025 05:34:28 +0000 Subject: [PATCH 4/6] regen --- Appwrite/Models/AttributeBoolean.cs | 6 +++--- Appwrite/Models/AttributeDatetime.cs | 6 +++--- Appwrite/Models/AttributeEmail.cs | 6 +++--- Appwrite/Models/AttributeEnum.cs | 6 +++--- Appwrite/Models/AttributeFloat.cs | 6 +++--- Appwrite/Models/AttributeInteger.cs | 6 +++--- Appwrite/Models/AttributeIp.cs | 6 +++--- Appwrite/Models/AttributeLine.cs | 6 +++--- Appwrite/Models/AttributePoint.cs | 6 +++--- Appwrite/Models/AttributePolygon.cs | 6 +++--- Appwrite/Models/AttributeString.cs | 6 +++--- Appwrite/Models/AttributeUrl.cs | 6 +++--- Appwrite/Models/ColumnBoolean.cs | 6 +++--- Appwrite/Models/ColumnDatetime.cs | 6 +++--- Appwrite/Models/ColumnEmail.cs | 6 +++--- Appwrite/Models/ColumnEnum.cs | 6 +++--- Appwrite/Models/ColumnFloat.cs | 6 +++--- Appwrite/Models/ColumnInteger.cs | 6 +++--- Appwrite/Models/ColumnIp.cs | 6 +++--- Appwrite/Models/ColumnLine.cs | 6 +++--- Appwrite/Models/ColumnPoint.cs | 6 +++--- Appwrite/Models/ColumnPolygon.cs | 6 +++--- Appwrite/Models/ColumnString.cs | 6 +++--- Appwrite/Models/ColumnUrl.cs | 6 +++--- Appwrite/Models/Headers.cs | 6 +++--- Appwrite/Models/Log.cs | 6 +++--- Appwrite/Models/Runtime.cs | 6 +++--- Appwrite/Models/Variable.cs | 6 +++--- 28 files changed, 84 insertions(+), 84 deletions(-) diff --git a/Appwrite/Models/AttributeBoolean.cs b/Appwrite/Models/AttributeBoolean.cs index 58f8e77..d165e5c 100644 --- a/Appwrite/Models/AttributeBoolean.cs +++ b/Appwrite/Models/AttributeBoolean.cs @@ -35,7 +35,7 @@ public class AttributeBoolean public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public bool? @Default { get; private set; } + public bool? Default { get; private set; } public AttributeBoolean( string key, @@ -56,7 +56,7 @@ public AttributeBoolean( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static AttributeBoolean From(Dictionary map) => new AttributeBoolean( @@ -81,7 +81,7 @@ public AttributeBoolean( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeDatetime.cs b/Appwrite/Models/AttributeDatetime.cs index 9491e18..0867e7e 100644 --- a/Appwrite/Models/AttributeDatetime.cs +++ b/Appwrite/Models/AttributeDatetime.cs @@ -38,7 +38,7 @@ public class AttributeDatetime public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeDatetime( string key, @@ -61,7 +61,7 @@ public AttributeDatetime( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeDatetime From(Dictionary map) => new AttributeDatetime( @@ -88,7 +88,7 @@ public AttributeDatetime( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeEmail.cs b/Appwrite/Models/AttributeEmail.cs index 01c8101..b15a4dc 100644 --- a/Appwrite/Models/AttributeEmail.cs +++ b/Appwrite/Models/AttributeEmail.cs @@ -38,7 +38,7 @@ public class AttributeEmail public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeEmail( string key, @@ -61,7 +61,7 @@ public AttributeEmail( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeEmail From(Dictionary map) => new AttributeEmail( @@ -88,7 +88,7 @@ public AttributeEmail( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeEnum.cs b/Appwrite/Models/AttributeEnum.cs index 244c3e1..a295c0d 100644 --- a/Appwrite/Models/AttributeEnum.cs +++ b/Appwrite/Models/AttributeEnum.cs @@ -41,7 +41,7 @@ public class AttributeEnum public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeEnum( string key, @@ -66,7 +66,7 @@ public AttributeEnum( UpdatedAt = updatedAt; Elements = elements; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeEnum From(Dictionary map) => new AttributeEnum( @@ -95,7 +95,7 @@ public AttributeEnum( { "$updatedAt", UpdatedAt }, { "elements", Elements }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeFloat.cs b/Appwrite/Models/AttributeFloat.cs index 3468230..60dcf5d 100644 --- a/Appwrite/Models/AttributeFloat.cs +++ b/Appwrite/Models/AttributeFloat.cs @@ -41,7 +41,7 @@ public class AttributeFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? @Default { get; private set; } + public double? Default { get; private set; } public AttributeFloat( string key, @@ -66,7 +66,7 @@ public AttributeFloat( UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static AttributeFloat From(Dictionary map) => new AttributeFloat( @@ -95,7 +95,7 @@ public AttributeFloat( { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeInteger.cs b/Appwrite/Models/AttributeInteger.cs index 4d9bbe5..581e244 100644 --- a/Appwrite/Models/AttributeInteger.cs +++ b/Appwrite/Models/AttributeInteger.cs @@ -41,7 +41,7 @@ public class AttributeInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? @Default { get; private set; } + public long? Default { get; private set; } public AttributeInteger( string key, @@ -66,7 +66,7 @@ public AttributeInteger( UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static AttributeInteger From(Dictionary map) => new AttributeInteger( @@ -95,7 +95,7 @@ public AttributeInteger( { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeIp.cs b/Appwrite/Models/AttributeIp.cs index 6bbe047..704864e 100644 --- a/Appwrite/Models/AttributeIp.cs +++ b/Appwrite/Models/AttributeIp.cs @@ -38,7 +38,7 @@ public class AttributeIp public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeIp( string key, @@ -61,7 +61,7 @@ public AttributeIp( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeIp From(Dictionary map) => new AttributeIp( @@ -88,7 +88,7 @@ public AttributeIp( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeLine.cs b/Appwrite/Models/AttributeLine.cs index cb21df7..80773ac 100644 --- a/Appwrite/Models/AttributeLine.cs +++ b/Appwrite/Models/AttributeLine.cs @@ -35,7 +35,7 @@ public class AttributeLine public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List? @Default { get; private set; } + public List? Default { get; private set; } public AttributeLine( string key, @@ -56,7 +56,7 @@ public AttributeLine( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static AttributeLine From(Dictionary map) => new AttributeLine( @@ -81,7 +81,7 @@ public AttributeLine( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributePoint.cs b/Appwrite/Models/AttributePoint.cs index 7a262d9..2f15890 100644 --- a/Appwrite/Models/AttributePoint.cs +++ b/Appwrite/Models/AttributePoint.cs @@ -35,7 +35,7 @@ public class AttributePoint public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List? @Default { get; private set; } + public List? Default { get; private set; } public AttributePoint( string key, @@ -56,7 +56,7 @@ public AttributePoint( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static AttributePoint From(Dictionary map) => new AttributePoint( @@ -81,7 +81,7 @@ public AttributePoint( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributePolygon.cs b/Appwrite/Models/AttributePolygon.cs index 0daedee..32d3786 100644 --- a/Appwrite/Models/AttributePolygon.cs +++ b/Appwrite/Models/AttributePolygon.cs @@ -35,7 +35,7 @@ public class AttributePolygon public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List? @Default { get; private set; } + public List? Default { get; private set; } public AttributePolygon( string key, @@ -56,7 +56,7 @@ public AttributePolygon( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static AttributePolygon From(Dictionary map) => new AttributePolygon( @@ -81,7 +81,7 @@ public AttributePolygon( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeString.cs b/Appwrite/Models/AttributeString.cs index 39c00d0..95f328b 100644 --- a/Appwrite/Models/AttributeString.cs +++ b/Appwrite/Models/AttributeString.cs @@ -38,7 +38,7 @@ public class AttributeString public long Size { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -65,7 +65,7 @@ public AttributeString( CreatedAt = createdAt; UpdatedAt = updatedAt; Size = size; - @Default = xdefault; + Default = xdefault; Encrypt = encrypt; } @@ -94,7 +94,7 @@ public AttributeString( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "size", Size }, - { "default", @Default }, + { "default", Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/AttributeUrl.cs b/Appwrite/Models/AttributeUrl.cs index 299b0d9..196dc21 100644 --- a/Appwrite/Models/AttributeUrl.cs +++ b/Appwrite/Models/AttributeUrl.cs @@ -38,7 +38,7 @@ public class AttributeUrl public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeUrl( string key, @@ -61,7 +61,7 @@ public AttributeUrl( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeUrl From(Dictionary map) => new AttributeUrl( @@ -88,7 +88,7 @@ public AttributeUrl( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnBoolean.cs b/Appwrite/Models/ColumnBoolean.cs index e2a0bb3..e5c8146 100644 --- a/Appwrite/Models/ColumnBoolean.cs +++ b/Appwrite/Models/ColumnBoolean.cs @@ -35,7 +35,7 @@ public class ColumnBoolean public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public bool? @Default { get; private set; } + public bool? Default { get; private set; } public ColumnBoolean( string key, @@ -56,7 +56,7 @@ public ColumnBoolean( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static ColumnBoolean From(Dictionary map) => new ColumnBoolean( @@ -81,7 +81,7 @@ public ColumnBoolean( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnDatetime.cs b/Appwrite/Models/ColumnDatetime.cs index 9b5bfc3..c6e125a 100644 --- a/Appwrite/Models/ColumnDatetime.cs +++ b/Appwrite/Models/ColumnDatetime.cs @@ -38,7 +38,7 @@ public class ColumnDatetime public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnDatetime( string key, @@ -61,7 +61,7 @@ public ColumnDatetime( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnDatetime From(Dictionary map) => new ColumnDatetime( @@ -88,7 +88,7 @@ public ColumnDatetime( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnEmail.cs b/Appwrite/Models/ColumnEmail.cs index ca5b8e2..3e38b13 100644 --- a/Appwrite/Models/ColumnEmail.cs +++ b/Appwrite/Models/ColumnEmail.cs @@ -38,7 +38,7 @@ public class ColumnEmail public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnEmail( string key, @@ -61,7 +61,7 @@ public ColumnEmail( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnEmail From(Dictionary map) => new ColumnEmail( @@ -88,7 +88,7 @@ public ColumnEmail( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnEnum.cs b/Appwrite/Models/ColumnEnum.cs index 48f3de4..d6f257d 100644 --- a/Appwrite/Models/ColumnEnum.cs +++ b/Appwrite/Models/ColumnEnum.cs @@ -41,7 +41,7 @@ public class ColumnEnum public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnEnum( string key, @@ -66,7 +66,7 @@ public ColumnEnum( UpdatedAt = updatedAt; Elements = elements; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnEnum From(Dictionary map) => new ColumnEnum( @@ -95,7 +95,7 @@ public ColumnEnum( { "$updatedAt", UpdatedAt }, { "elements", Elements }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnFloat.cs b/Appwrite/Models/ColumnFloat.cs index 60aa806..9d2dfd6 100644 --- a/Appwrite/Models/ColumnFloat.cs +++ b/Appwrite/Models/ColumnFloat.cs @@ -41,7 +41,7 @@ public class ColumnFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? @Default { get; private set; } + public double? Default { get; private set; } public ColumnFloat( string key, @@ -66,7 +66,7 @@ public ColumnFloat( UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static ColumnFloat From(Dictionary map) => new ColumnFloat( @@ -95,7 +95,7 @@ public ColumnFloat( { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnInteger.cs b/Appwrite/Models/ColumnInteger.cs index f8a785a..9320409 100644 --- a/Appwrite/Models/ColumnInteger.cs +++ b/Appwrite/Models/ColumnInteger.cs @@ -41,7 +41,7 @@ public class ColumnInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? @Default { get; private set; } + public long? Default { get; private set; } public ColumnInteger( string key, @@ -66,7 +66,7 @@ public ColumnInteger( UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static ColumnInteger From(Dictionary map) => new ColumnInteger( @@ -95,7 +95,7 @@ public ColumnInteger( { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnIp.cs b/Appwrite/Models/ColumnIp.cs index 034c96f..8044071 100644 --- a/Appwrite/Models/ColumnIp.cs +++ b/Appwrite/Models/ColumnIp.cs @@ -38,7 +38,7 @@ public class ColumnIp public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnIp( string key, @@ -61,7 +61,7 @@ public ColumnIp( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnIp From(Dictionary map) => new ColumnIp( @@ -88,7 +88,7 @@ public ColumnIp( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnLine.cs b/Appwrite/Models/ColumnLine.cs index 8828f01..4b48ad3 100644 --- a/Appwrite/Models/ColumnLine.cs +++ b/Appwrite/Models/ColumnLine.cs @@ -35,7 +35,7 @@ public class ColumnLine public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List? @Default { get; private set; } + public List? Default { get; private set; } public ColumnLine( string key, @@ -56,7 +56,7 @@ public ColumnLine( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static ColumnLine From(Dictionary map) => new ColumnLine( @@ -81,7 +81,7 @@ public ColumnLine( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnPoint.cs b/Appwrite/Models/ColumnPoint.cs index 8aa84a1..12f5056 100644 --- a/Appwrite/Models/ColumnPoint.cs +++ b/Appwrite/Models/ColumnPoint.cs @@ -35,7 +35,7 @@ public class ColumnPoint public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List? @Default { get; private set; } + public List? Default { get; private set; } public ColumnPoint( string key, @@ -56,7 +56,7 @@ public ColumnPoint( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static ColumnPoint From(Dictionary map) => new ColumnPoint( @@ -81,7 +81,7 @@ public ColumnPoint( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnPolygon.cs b/Appwrite/Models/ColumnPolygon.cs index fd1caa6..181fcc4 100644 --- a/Appwrite/Models/ColumnPolygon.cs +++ b/Appwrite/Models/ColumnPolygon.cs @@ -35,7 +35,7 @@ public class ColumnPolygon public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List? @Default { get; private set; } + public List? Default { get; private set; } public ColumnPolygon( string key, @@ -56,7 +56,7 @@ public ColumnPolygon( Array = array; CreatedAt = createdAt; UpdatedAt = updatedAt; - @Default = xdefault; + Default = xdefault; } public static ColumnPolygon From(Dictionary map) => new ColumnPolygon( @@ -81,7 +81,7 @@ public ColumnPolygon( { "array", Array }, { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnString.cs b/Appwrite/Models/ColumnString.cs index 32368aa..5e04677 100644 --- a/Appwrite/Models/ColumnString.cs +++ b/Appwrite/Models/ColumnString.cs @@ -38,7 +38,7 @@ public class ColumnString public long Size { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -65,7 +65,7 @@ public ColumnString( CreatedAt = createdAt; UpdatedAt = updatedAt; Size = size; - @Default = xdefault; + Default = xdefault; Encrypt = encrypt; } @@ -94,7 +94,7 @@ public ColumnString( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "size", Size }, - { "default", @Default }, + { "default", Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/ColumnUrl.cs b/Appwrite/Models/ColumnUrl.cs index a9c320e..4168104 100644 --- a/Appwrite/Models/ColumnUrl.cs +++ b/Appwrite/Models/ColumnUrl.cs @@ -38,7 +38,7 @@ public class ColumnUrl public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnUrl( string key, @@ -61,7 +61,7 @@ public ColumnUrl( CreatedAt = createdAt; UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnUrl From(Dictionary map) => new ColumnUrl( @@ -88,7 +88,7 @@ public ColumnUrl( { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/Headers.cs b/Appwrite/Models/Headers.cs index f0f30ff..951c0d2 100644 --- a/Appwrite/Models/Headers.cs +++ b/Appwrite/Models/Headers.cs @@ -14,14 +14,14 @@ public class Headers public string Name { get; private set; } [JsonPropertyName("value")] - public string @Value { get; private set; } + public string Value { get; private set; } public Headers( string name, string xvalue ) { Name = name; - @Value = xvalue; + Value = xvalue; } public static Headers From(Dictionary map) => new Headers( @@ -32,7 +32,7 @@ string xvalue public Dictionary ToMap() => new Dictionary() { { "name", Name }, - { "value", @Value } + { "value", Value } }; } } diff --git a/Appwrite/Models/Log.cs b/Appwrite/Models/Log.cs index 0c8355b..bbf6878 100644 --- a/Appwrite/Models/Log.cs +++ b/Appwrite/Models/Log.cs @@ -11,7 +11,7 @@ namespace Appwrite.Models public class Log { [JsonPropertyName("event")] - public string @Event { get; private set; } + public string Event { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -96,7 +96,7 @@ public Log( string countryCode, string countryName ) { - @Event = xevent; + Event = xevent; UserId = userId; UserEmail = userEmail; UserName = userName; @@ -145,7 +145,7 @@ string countryName public Dictionary ToMap() => new Dictionary() { - { "event", @Event }, + { "event", Event }, { "userId", UserId }, { "userEmail", UserEmail }, { "userName", UserName }, diff --git a/Appwrite/Models/Runtime.cs b/Appwrite/Models/Runtime.cs index d24bda9..5dcb3e2 100644 --- a/Appwrite/Models/Runtime.cs +++ b/Appwrite/Models/Runtime.cs @@ -23,7 +23,7 @@ public class Runtime public string Version { get; private set; } [JsonPropertyName("base")] - public string @Base { get; private set; } + public string Base { get; private set; } [JsonPropertyName("image")] public string Image { get; private set; } @@ -48,7 +48,7 @@ List supports Key = key; Name = name; Version = version; - @Base = xbase; + Base = xbase; Image = image; Logo = logo; Supports = supports; @@ -71,7 +71,7 @@ List supports { "key", Key }, { "name", Name }, { "version", Version }, - { "base", @Base }, + { "base", Base }, { "image", Image }, { "logo", Logo }, { "supports", Supports } diff --git a/Appwrite/Models/Variable.cs b/Appwrite/Models/Variable.cs index 8dc0a3d..8234773 100644 --- a/Appwrite/Models/Variable.cs +++ b/Appwrite/Models/Variable.cs @@ -23,7 +23,7 @@ public class Variable public string Key { get; private set; } [JsonPropertyName("value")] - public string @Value { get; private set; } + public string Value { get; private set; } [JsonPropertyName("secret")] public bool Secret { get; private set; } @@ -48,7 +48,7 @@ string resourceId CreatedAt = createdAt; UpdatedAt = updatedAt; Key = key; - @Value = xvalue; + Value = xvalue; Secret = secret; ResourceType = resourceType; ResourceId = resourceId; @@ -71,7 +71,7 @@ string resourceId { "$createdAt", CreatedAt }, { "$updatedAt", UpdatedAt }, { "key", Key }, - { "value", @Value }, + { "value", Value }, { "secret", Secret }, { "resourceType", ResourceType }, { "resourceId", ResourceId } From 35d7d7595d8c1c8b93929b4fe072e442f55db90a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Oct 2025 03:10:01 +0000 Subject: [PATCH 5/6] chore: update title and desc --- Appwrite/Enums/ColumnStatus.cs | 20 +++++++++++ Appwrite/Enums/DatabaseType.cs | 17 +++++++++ Appwrite/Models/AlgoArgon2.cs | 1 - Appwrite/Models/AlgoBcrypt.cs | 1 - Appwrite/Models/AlgoMd5.cs | 1 - Appwrite/Models/AlgoPhpass.cs | 1 - Appwrite/Models/AlgoScrypt.cs | 1 - Appwrite/Models/AlgoScryptModified.cs | 1 - Appwrite/Models/AlgoSha.cs | 1 - Appwrite/Models/AttributeBoolean.cs | 19 +++++----- Appwrite/Models/AttributeDatetime.cs | 19 +++++----- Appwrite/Models/AttributeEmail.cs | 19 +++++----- Appwrite/Models/AttributeEnum.cs | 23 ++++++------ Appwrite/Models/AttributeFloat.cs | 19 +++++----- Appwrite/Models/AttributeInteger.cs | 19 +++++----- Appwrite/Models/AttributeIp.cs | 19 +++++----- Appwrite/Models/AttributeLine.cs | 21 ++++++----- Appwrite/Models/AttributeList.cs | 5 ++- Appwrite/Models/AttributePoint.cs | 21 ++++++----- Appwrite/Models/AttributePolygon.cs | 21 ++++++----- Appwrite/Models/AttributeRelationship.cs | 13 ++++--- Appwrite/Models/AttributeString.cs | 19 +++++----- Appwrite/Models/AttributeUrl.cs | 19 +++++----- Appwrite/Models/Bucket.cs | 31 ++++++++-------- Appwrite/Models/BucketList.cs | 5 ++- Appwrite/Models/Collection.cs | 35 +++++++++--------- Appwrite/Models/CollectionList.cs | 5 ++- Appwrite/Models/ColumnBoolean.cs | 27 +++++++------- Appwrite/Models/ColumnDatetime.cs | 27 +++++++------- Appwrite/Models/ColumnEmail.cs | 27 +++++++------- Appwrite/Models/ColumnEnum.cs | 31 ++++++++-------- Appwrite/Models/ColumnFloat.cs | 27 +++++++------- Appwrite/Models/ColumnIndex.cs | 31 ++++++++-------- Appwrite/Models/ColumnIndexList.cs | 5 ++- Appwrite/Models/ColumnInteger.cs | 27 +++++++------- Appwrite/Models/ColumnIp.cs | 27 +++++++------- Appwrite/Models/ColumnLine.cs | 29 ++++++++------- Appwrite/Models/ColumnList.cs | 5 ++- Appwrite/Models/ColumnPoint.cs | 29 ++++++++------- Appwrite/Models/ColumnPolygon.cs | 29 ++++++++------- Appwrite/Models/ColumnRelationship.cs | 21 ++++++----- Appwrite/Models/ColumnString.cs | 27 +++++++------- Appwrite/Models/ColumnUrl.cs | 27 +++++++------- Appwrite/Models/Continent.cs | 1 - Appwrite/Models/ContinentList.cs | 5 ++- Appwrite/Models/Country.cs | 1 - Appwrite/Models/CountryList.cs | 5 ++- Appwrite/Models/Currency.cs | 1 - Appwrite/Models/CurrencyList.cs | 5 ++- Appwrite/Models/Database.cs | 27 +++++++------- Appwrite/Models/DatabaseList.cs | 5 ++- Appwrite/Models/Deployment.cs | 19 +++++----- Appwrite/Models/DeploymentList.cs | 5 ++- Appwrite/Models/Document.cs | 45 ++++++++++++------------ Appwrite/Models/DocumentList.cs | 5 ++- Appwrite/Models/Execution.cs | 35 +++++++++--------- Appwrite/Models/ExecutionList.cs | 5 ++- Appwrite/Models/File.cs | 27 +++++++------- Appwrite/Models/FileList.cs | 5 ++- Appwrite/Models/Framework.cs | 9 +++-- Appwrite/Models/FrameworkAdapter.cs | 1 - Appwrite/Models/FrameworkList.cs | 5 ++- Appwrite/Models/Function.cs | 35 +++++++++--------- Appwrite/Models/FunctionList.cs | 5 ++- Appwrite/Models/Headers.cs | 7 ++-- Appwrite/Models/HealthAntivirus.cs | 1 - Appwrite/Models/HealthCertificate.cs | 1 - Appwrite/Models/HealthQueue.cs | 1 - Appwrite/Models/HealthStatus.cs | 1 - Appwrite/Models/HealthTime.cs | 1 - Appwrite/Models/Identity.cs | 19 +++++----- Appwrite/Models/IdentityList.cs | 5 ++- Appwrite/Models/Index.cs | 31 ++++++++-------- Appwrite/Models/IndexList.cs | 5 ++- Appwrite/Models/JWT.cs | 1 - Appwrite/Models/Language.cs | 1 - Appwrite/Models/LanguageList.cs | 5 ++- Appwrite/Models/Locale.cs | 1 - Appwrite/Models/LocaleCode.cs | 1 - Appwrite/Models/LocaleCodeList.cs | 5 ++- Appwrite/Models/Log.cs | 7 ++-- Appwrite/Models/LogList.cs | 5 ++- Appwrite/Models/Membership.cs | 23 ++++++------ Appwrite/Models/MembershipList.cs | 5 ++- Appwrite/Models/Message.cs | 35 +++++++++--------- Appwrite/Models/MessageList.cs | 5 ++- Appwrite/Models/MfaChallenge.cs | 13 ++++--- Appwrite/Models/MfaFactors.cs | 1 - Appwrite/Models/MfaRecoveryCodes.cs | 5 ++- Appwrite/Models/MfaType.cs | 1 - Appwrite/Models/Phone.cs | 1 - Appwrite/Models/PhoneList.cs | 5 ++- Appwrite/Models/Preferences.cs | 1 - Appwrite/Models/Provider.cs | 19 +++++----- Appwrite/Models/ProviderList.cs | 5 ++- Appwrite/Models/ResourceToken.cs | 13 ++++--- Appwrite/Models/ResourceTokenList.cs | 5 ++- Appwrite/Models/Row.cs | 45 ++++++++++++------------ Appwrite/Models/RowList.cs | 5 ++- Appwrite/Models/Runtime.cs | 17 +++++---- Appwrite/Models/RuntimeList.cs | 5 ++- Appwrite/Models/Session.cs | 23 ++++++------ Appwrite/Models/SessionList.cs | 5 ++- Appwrite/Models/Site.cs | 23 ++++++------ Appwrite/Models/SiteList.cs | 5 ++- Appwrite/Models/Specification.cs | 1 - Appwrite/Models/SpecificationList.cs | 5 ++- Appwrite/Models/Subscriber.cs | 19 +++++----- Appwrite/Models/SubscriberList.cs | 5 ++- Appwrite/Models/Table.cs | 35 +++++++++--------- Appwrite/Models/TableList.cs | 5 ++- Appwrite/Models/Target.cs | 19 +++++----- Appwrite/Models/TargetList.cs | 5 ++- Appwrite/Models/Team.cs | 19 +++++----- Appwrite/Models/TeamList.cs | 5 ++- Appwrite/Models/Token.cs | 13 ++++--- Appwrite/Models/Topic.cs | 23 ++++++------ Appwrite/Models/TopicList.cs | 5 ++- Appwrite/Models/User.cs | 27 +++++++------- Appwrite/Models/UserList.cs | 5 ++- Appwrite/Models/Variable.cs | 25 +++++++------ Appwrite/Models/VariableList.cs | 5 ++- 122 files changed, 762 insertions(+), 845 deletions(-) create mode 100644 Appwrite/Enums/ColumnStatus.cs create mode 100644 Appwrite/Enums/DatabaseType.cs diff --git a/Appwrite/Enums/ColumnStatus.cs b/Appwrite/Enums/ColumnStatus.cs new file mode 100644 index 0000000..e02b4b8 --- /dev/null +++ b/Appwrite/Enums/ColumnStatus.cs @@ -0,0 +1,20 @@ +using System; + +namespace Appwrite.Enums +{ + public class ColumnStatus : IEnum + { + public string Value { get; private set; } + + public ColumnStatus(string value) + { + Value = value; + } + + public static ColumnStatus Available => new ColumnStatus("available"); + public static ColumnStatus Processing => new ColumnStatus("processing"); + public static ColumnStatus Deleting => new ColumnStatus("deleting"); + public static ColumnStatus Stuck => new ColumnStatus("stuck"); + public static ColumnStatus Failed => new ColumnStatus("failed"); + } +} diff --git a/Appwrite/Enums/DatabaseType.cs b/Appwrite/Enums/DatabaseType.cs new file mode 100644 index 0000000..bcbe1d9 --- /dev/null +++ b/Appwrite/Enums/DatabaseType.cs @@ -0,0 +1,17 @@ +using System; + +namespace Appwrite.Enums +{ + public class DatabaseType : IEnum + { + public string Value { get; private set; } + + public DatabaseType(string value) + { + Value = value; + } + + public static DatabaseType Legacy => new DatabaseType("legacy"); + public static DatabaseType Tablesdb => new DatabaseType("tablesdb"); + } +} diff --git a/Appwrite/Models/AlgoArgon2.cs b/Appwrite/Models/AlgoArgon2.cs index 2573b10..85c664d 100644 --- a/Appwrite/Models/AlgoArgon2.cs +++ b/Appwrite/Models/AlgoArgon2.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoBcrypt.cs b/Appwrite/Models/AlgoBcrypt.cs index 3cab59e..7fb9684 100644 --- a/Appwrite/Models/AlgoBcrypt.cs +++ b/Appwrite/Models/AlgoBcrypt.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoMd5.cs b/Appwrite/Models/AlgoMd5.cs index 814de65..a6ed243 100644 --- a/Appwrite/Models/AlgoMd5.cs +++ b/Appwrite/Models/AlgoMd5.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoPhpass.cs b/Appwrite/Models/AlgoPhpass.cs index 693d31e..7fe4a67 100644 --- a/Appwrite/Models/AlgoPhpass.cs +++ b/Appwrite/Models/AlgoPhpass.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoScrypt.cs b/Appwrite/Models/AlgoScrypt.cs index cb8a10b..b6079ac 100644 --- a/Appwrite/Models/AlgoScrypt.cs +++ b/Appwrite/Models/AlgoScrypt.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoScryptModified.cs b/Appwrite/Models/AlgoScryptModified.cs index cf33b0c..6b3d1c5 100644 --- a/Appwrite/Models/AlgoScryptModified.cs +++ b/Appwrite/Models/AlgoScryptModified.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoSha.cs b/Appwrite/Models/AlgoSha.cs index 92a8866..fa5b50d 100644 --- a/Appwrite/Models/AlgoSha.cs +++ b/Appwrite/Models/AlgoSha.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AttributeBoolean.cs b/Appwrite/Models/AttributeBoolean.cs index d165e5c..db31589 100644 --- a/Appwrite/Models/AttributeBoolean.cs +++ b/Appwrite/Models/AttributeBoolean.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,13 +28,13 @@ public class AttributeBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public bool? Default { get; private set; } + public bool? @Default { get; private set; } public AttributeBoolean( string key, @@ -54,9 +53,9 @@ public AttributeBoolean( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributeBoolean From(Dictionary map) => new AttributeBoolean( @@ -79,9 +78,9 @@ public AttributeBoolean( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeDatetime.cs b/Appwrite/Models/AttributeDatetime.cs index 0867e7e..9b5471d 100644 --- a/Appwrite/Models/AttributeDatetime.cs +++ b/Appwrite/Models/AttributeDatetime.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,16 +28,16 @@ public class AttributeDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeDatetime( string key, @@ -58,10 +57,10 @@ public AttributeDatetime( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeDatetime From(Dictionary map) => new AttributeDatetime( @@ -85,10 +84,10 @@ public AttributeDatetime( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeEmail.cs b/Appwrite/Models/AttributeEmail.cs index b15a4dc..cc90716 100644 --- a/Appwrite/Models/AttributeEmail.cs +++ b/Appwrite/Models/AttributeEmail.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,16 +28,16 @@ public class AttributeEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeEmail( string key, @@ -58,10 +57,10 @@ public AttributeEmail( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeEmail From(Dictionary map) => new AttributeEmail( @@ -85,10 +84,10 @@ public AttributeEmail( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeEnum.cs b/Appwrite/Models/AttributeEnum.cs index a295c0d..142271a 100644 --- a/Appwrite/Models/AttributeEnum.cs +++ b/Appwrite/Models/AttributeEnum.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,19 +28,19 @@ public class AttributeEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("elements")] - public List Elements { get; private set; } + public List<string> Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeEnum( string key, @@ -52,7 +51,7 @@ public AttributeEnum( bool? array, string createdAt, string updatedAt, - List elements, + List<string> elements, string format, string? xdefault ) { @@ -62,11 +61,11 @@ public AttributeEnum( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Elements = elements; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeEnum From(Dictionary map) => new AttributeEnum( @@ -91,11 +90,11 @@ public AttributeEnum( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "elements", Elements }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeFloat.cs b/Appwrite/Models/AttributeFloat.cs index 60dcf5d..01dc335 100644 --- a/Appwrite/Models/AttributeFloat.cs +++ b/Appwrite/Models/AttributeFloat.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,10 +28,10 @@ public class AttributeFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -41,7 +40,7 @@ public class AttributeFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? Default { get; private set; } + public double? @Default { get; private set; } public AttributeFloat( string key, @@ -62,11 +61,11 @@ public AttributeFloat( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static AttributeFloat From(Dictionary map) => new AttributeFloat( @@ -91,11 +90,11 @@ public AttributeFloat( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeInteger.cs b/Appwrite/Models/AttributeInteger.cs index 581e244..15364d5 100644 --- a/Appwrite/Models/AttributeInteger.cs +++ b/Appwrite/Models/AttributeInteger.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,10 +28,10 @@ public class AttributeInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -41,7 +40,7 @@ public class AttributeInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? Default { get; private set; } + public long? @Default { get; private set; } public AttributeInteger( string key, @@ -62,11 +61,11 @@ public AttributeInteger( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static AttributeInteger From(Dictionary map) => new AttributeInteger( @@ -91,11 +90,11 @@ public AttributeInteger( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeIp.cs b/Appwrite/Models/AttributeIp.cs index 704864e..45a1f2e 100644 --- a/Appwrite/Models/AttributeIp.cs +++ b/Appwrite/Models/AttributeIp.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,16 +28,16 @@ public class AttributeIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeIp( string key, @@ -58,10 +57,10 @@ public AttributeIp( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeIp From(Dictionary map) => new AttributeIp( @@ -85,10 +84,10 @@ public AttributeIp( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeLine.cs b/Appwrite/Models/AttributeLine.cs index 80773ac..55f7ba3 100644 --- a/Appwrite/Models/AttributeLine.cs +++ b/Appwrite/Models/AttributeLine.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,13 +28,13 @@ public class AttributeLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public AttributeLine( string key, @@ -46,7 +45,7 @@ public AttributeLine( bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -54,9 +53,9 @@ public AttributeLine( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributeLine From(Dictionary map) => new AttributeLine( @@ -79,9 +78,9 @@ public AttributeLine( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeList.cs b/Appwrite/Models/AttributeList.cs index 1c1404b..472cd01 100644 --- a/Appwrite/Models/AttributeList.cs +++ b/Appwrite/Models/AttributeList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class AttributeList public long Total { get; private set; } [JsonPropertyName("attributes")] - public List Attributes { get; private set; } + public List<object> Attributes { get; private set; } public AttributeList( long total, - List attributes + List<object> attributes ) { Total = total; Attributes = attributes; diff --git a/Appwrite/Models/AttributePoint.cs b/Appwrite/Models/AttributePoint.cs index 2f15890..fd2146d 100644 --- a/Appwrite/Models/AttributePoint.cs +++ b/Appwrite/Models/AttributePoint.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,13 +28,13 @@ public class AttributePoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public AttributePoint( string key, @@ -46,7 +45,7 @@ public AttributePoint( bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -54,9 +53,9 @@ public AttributePoint( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributePoint From(Dictionary map) => new AttributePoint( @@ -79,9 +78,9 @@ public AttributePoint( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributePolygon.cs b/Appwrite/Models/AttributePolygon.cs index 32d3786..fbb4020 100644 --- a/Appwrite/Models/AttributePolygon.cs +++ b/Appwrite/Models/AttributePolygon.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,13 +28,13 @@ public class AttributePolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public AttributePolygon( string key, @@ -46,7 +45,7 @@ public AttributePolygon( bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -54,9 +53,9 @@ public AttributePolygon( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static AttributePolygon From(Dictionary map) => new AttributePolygon( @@ -79,9 +78,9 @@ public AttributePolygon( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/AttributeRelationship.cs b/Appwrite/Models/AttributeRelationship.cs index 17447c0..2be8db2 100644 --- a/Appwrite/Models/AttributeRelationship.cs +++ b/Appwrite/Models/AttributeRelationship.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,10 +28,10 @@ public class AttributeRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("relatedCollection")] public string RelatedCollection { get; private set; } @@ -74,8 +73,8 @@ string side Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; RelatedCollection = relatedCollection; RelationType = relationType; TwoWay = twoWay; @@ -109,8 +108,8 @@ string side { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "relatedCollection", RelatedCollection }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/AttributeString.cs b/Appwrite/Models/AttributeString.cs index 95f328b..c5d7383 100644 --- a/Appwrite/Models/AttributeString.cs +++ b/Appwrite/Models/AttributeString.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,16 +28,16 @@ public class AttributeString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -62,10 +61,10 @@ public AttributeString( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Size = size; - Default = xdefault; + @Default = xdefault; Encrypt = encrypt; } @@ -91,10 +90,10 @@ public AttributeString( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "size", Size }, - { "default", Default }, + { "default", @Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/AttributeUrl.cs b/Appwrite/Models/AttributeUrl.cs index 196dc21..5c5b805 100644 --- a/Appwrite/Models/AttributeUrl.cs +++ b/Appwrite/Models/AttributeUrl.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -29,16 +28,16 @@ public class AttributeUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public AttributeUrl( string key, @@ -58,10 +57,10 @@ public AttributeUrl( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static AttributeUrl From(Dictionary map) => new AttributeUrl( @@ -85,10 +84,10 @@ public AttributeUrl( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/Bucket.cs b/Appwrite/Models/Bucket.cs index c7e22f7..54abfff 100644 --- a/Appwrite/Models/Bucket.cs +++ b/Appwrite/Models/Bucket.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,16 +10,16 @@ namespace Appwrite.Models public class Bucket { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("fileSecurity")] public bool FileSecurity { get; private set; } @@ -35,7 +34,7 @@ public class Bucket public long MaximumFileSize { get; private set; } [JsonPropertyName("allowedFileExtensions")] - public List AllowedFileExtensions { get; private set; } + public List<string> AllowedFileExtensions { get; private set; } [JsonPropertyName("compression")] public string Compression { get; private set; } @@ -50,20 +49,20 @@ public Bucket( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, bool fileSecurity, string name, bool enabled, long maximumFileSize, - List allowedFileExtensions, + List<string> allowedFileExtensions, string compression, bool encryption, bool antivirus ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; FileSecurity = fileSecurity; Name = name; Enabled = enabled; @@ -91,10 +90,10 @@ bool antivirus public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "fileSecurity", FileSecurity }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/BucketList.cs b/Appwrite/Models/BucketList.cs index c6b08fb..664c98f 100644 --- a/Appwrite/Models/BucketList.cs +++ b/Appwrite/Models/BucketList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class BucketList public long Total { get; private set; } [JsonPropertyName("buckets")] - public List Buckets { get; private set; } + public List<Bucket> Buckets { get; private set; } public BucketList( long total, - List buckets + List<Bucket> buckets ) { Total = total; Buckets = buckets; diff --git a/Appwrite/Models/Collection.cs b/Appwrite/Models/Collection.cs index 6b3420e..f1ce8be 100644 --- a/Appwrite/Models/Collection.cs +++ b/Appwrite/Models/Collection.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,16 +10,16 @@ namespace Appwrite.Models public class Collection { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -35,27 +34,27 @@ public class Collection public bool DocumentSecurity { get; private set; } [JsonPropertyName("attributes")] - public List Attributes { get; private set; } + public List<object> Attributes { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<Index> Indexes { get; private set; } public Collection( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string databaseId, string name, bool enabled, bool documentSecurity, - List attributes, - List indexes + List<object> attributes, + List<Index> indexes ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -79,10 +78,10 @@ List indexes public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/CollectionList.cs b/Appwrite/Models/CollectionList.cs index 861cc2c..bd62a6f 100644 --- a/Appwrite/Models/CollectionList.cs +++ b/Appwrite/Models/CollectionList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class CollectionList public long Total { get; private set; } [JsonPropertyName("collections")] - public List Collections { get; private set; } + public List<Collection> Collections { get; private set; } public CollectionList( long total, - List collections + List<Collection> collections ) { Total = total; Collections = collections; diff --git a/Appwrite/Models/ColumnBoolean.cs b/Appwrite/Models/ColumnBoolean.cs index e5c8146..093250b 100644 --- a/Appwrite/Models/ColumnBoolean.cs +++ b/Appwrite/Models/ColumnBoolean.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnBoolean public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,18 +28,18 @@ public class ColumnBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public bool? Default { get; private set; } + public bool? @Default { get; private set; } public ColumnBoolean( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -54,15 +53,15 @@ public ColumnBoolean( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnBoolean From(Dictionary map) => new ColumnBoolean( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -75,13 +74,13 @@ public ColumnBoolean( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnDatetime.cs b/Appwrite/Models/ColumnDatetime.cs index c6e125a..92f3276 100644 --- a/Appwrite/Models/ColumnDatetime.cs +++ b/Appwrite/Models/ColumnDatetime.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnDatetime public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,21 +28,21 @@ public class ColumnDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnDatetime( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -58,16 +57,16 @@ public ColumnDatetime( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnDatetime From(Dictionary map) => new ColumnDatetime( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -81,14 +80,14 @@ public ColumnDatetime( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnEmail.cs b/Appwrite/Models/ColumnEmail.cs index 3e38b13..55e6dc1 100644 --- a/Appwrite/Models/ColumnEmail.cs +++ b/Appwrite/Models/ColumnEmail.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnEmail public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,21 +28,21 @@ public class ColumnEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnEmail( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -58,16 +57,16 @@ public ColumnEmail( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnEmail From(Dictionary map) => new ColumnEmail( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -81,14 +80,14 @@ public ColumnEmail( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnEnum.cs b/Appwrite/Models/ColumnEnum.cs index d6f257d..2717af9 100644 --- a/Appwrite/Models/ColumnEnum.cs +++ b/Appwrite/Models/ColumnEnum.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnEnum public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,30 +28,30 @@ public class ColumnEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("elements")] - public List Elements { get; private set; } + public List<string> Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnEnum( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List elements, + List<string> elements, string format, string? xdefault ) { @@ -62,17 +61,17 @@ public ColumnEnum( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Elements = elements; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnEnum From(Dictionary map) => new ColumnEnum( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -87,15 +86,15 @@ public ColumnEnum( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "elements", Elements }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnFloat.cs b/Appwrite/Models/ColumnFloat.cs index 9d2dfd6..a51021b 100644 --- a/Appwrite/Models/ColumnFloat.cs +++ b/Appwrite/Models/ColumnFloat.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnFloat public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,10 +28,10 @@ public class ColumnFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -41,12 +40,12 @@ public class ColumnFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? Default { get; private set; } + public double? @Default { get; private set; } public ColumnFloat( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -62,17 +61,17 @@ public ColumnFloat( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static ColumnFloat From(Dictionary map) => new ColumnFloat( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -87,15 +86,15 @@ public ColumnFloat( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnIndex.cs b/Appwrite/Models/ColumnIndex.cs index 9ce756a..f5dc63e 100644 --- a/Appwrite/Models/ColumnIndex.cs +++ b/Appwrite/Models/ColumnIndex.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class ColumnIndex { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -32,13 +31,13 @@ public class ColumnIndex public string Error { get; private set; } [JsonPropertyName("columns")] - public List Columns { get; private set; } + public List<string> Columns { get; private set; } [JsonPropertyName("lengths")] - public List Lengths { get; private set; } + public List<long> Lengths { get; private set; } [JsonPropertyName("orders")] - public List? Orders { get; private set; } + public List<string>? Orders { get; private set; } public ColumnIndex( string id, @@ -48,13 +47,13 @@ public ColumnIndex( string type, string status, string error, - List columns, - List lengths, - List? orders + List<string> columns, + List<long> lengths, + List<string>? orders ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -79,9 +78,9 @@ public ColumnIndex( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "key", Key }, { "type", Type }, { "status", Status }, diff --git a/Appwrite/Models/ColumnIndexList.cs b/Appwrite/Models/ColumnIndexList.cs index b43c7c3..49b13da 100644 --- a/Appwrite/Models/ColumnIndexList.cs +++ b/Appwrite/Models/ColumnIndexList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class ColumnIndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<ColumnIndex> Indexes { get; private set; } public ColumnIndexList( long total, - List indexes + List<ColumnIndex> indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/ColumnInteger.cs b/Appwrite/Models/ColumnInteger.cs index 9320409..137f2bb 100644 --- a/Appwrite/Models/ColumnInteger.cs +++ b/Appwrite/Models/ColumnInteger.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnInteger public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,10 +28,10 @@ public class ColumnInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -41,12 +40,12 @@ public class ColumnInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? Default { get; private set; } + public long? @Default { get; private set; } public ColumnInteger( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -62,17 +61,17 @@ public ColumnInteger( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Min = min; Max = max; - Default = xdefault; + @Default = xdefault; } public static ColumnInteger From(Dictionary map) => new ColumnInteger( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -87,15 +86,15 @@ public ColumnInteger( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "min", Min }, { "max", Max }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnIp.cs b/Appwrite/Models/ColumnIp.cs index 8044071..3dcd00b 100644 --- a/Appwrite/Models/ColumnIp.cs +++ b/Appwrite/Models/ColumnIp.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnIp public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,21 +28,21 @@ public class ColumnIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnIp( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -58,16 +57,16 @@ public ColumnIp( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnIp From(Dictionary map) => new ColumnIp( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -81,14 +80,14 @@ public ColumnIp( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnLine.cs b/Appwrite/Models/ColumnLine.cs index 4b48ad3..ce2fbca 100644 --- a/Appwrite/Models/ColumnLine.cs +++ b/Appwrite/Models/ColumnLine.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnLine public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,24 +28,24 @@ public class ColumnLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public ColumnLine( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -54,15 +53,15 @@ public ColumnLine( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnLine From(Dictionary map) => new ColumnLine( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -75,13 +74,13 @@ public ColumnLine( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnList.cs b/Appwrite/Models/ColumnList.cs index d033168..a871335 100644 --- a/Appwrite/Models/ColumnList.cs +++ b/Appwrite/Models/ColumnList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class ColumnList public long Total { get; private set; } [JsonPropertyName("columns")] - public List Columns { get; private set; } + public List<object> Columns { get; private set; } public ColumnList( long total, - List columns + List<object> columns ) { Total = total; Columns = columns; diff --git a/Appwrite/Models/ColumnPoint.cs b/Appwrite/Models/ColumnPoint.cs index 12f5056..0776208 100644 --- a/Appwrite/Models/ColumnPoint.cs +++ b/Appwrite/Models/ColumnPoint.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnPoint public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,24 +28,24 @@ public class ColumnPoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public ColumnPoint( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -54,15 +53,15 @@ public ColumnPoint( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnPoint From(Dictionary map) => new ColumnPoint( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -75,13 +74,13 @@ public ColumnPoint( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnPolygon.cs b/Appwrite/Models/ColumnPolygon.cs index 181fcc4..30488f7 100644 --- a/Appwrite/Models/ColumnPolygon.cs +++ b/Appwrite/Models/ColumnPolygon.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnPolygon public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,24 +28,24 @@ public class ColumnPolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("default")] - public List? Default { get; private set; } + public List<object>? @Default { get; private set; } public ColumnPolygon( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, string createdAt, string updatedAt, - List? xdefault + List<object>? xdefault ) { Key = key; Type = type; @@ -54,15 +53,15 @@ public ColumnPolygon( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Default = xdefault; + createdAt = createdAt; + updatedAt = updatedAt; + @Default = xdefault; } public static ColumnPolygon From(Dictionary map) => new ColumnPolygon( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -75,13 +74,13 @@ public ColumnPolygon( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "default", Default } + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "default", @Default } }; } } diff --git a/Appwrite/Models/ColumnRelationship.cs b/Appwrite/Models/ColumnRelationship.cs index f981098..f452e1b 100644 --- a/Appwrite/Models/ColumnRelationship.cs +++ b/Appwrite/Models/ColumnRelationship.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnRelationship public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,10 +28,10 @@ public class ColumnRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("relatedTable")] public string RelatedTable { get; private set; } @@ -55,7 +54,7 @@ public class ColumnRelationship public ColumnRelationship( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -74,8 +73,8 @@ string side Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; RelatedTable = relatedTable; RelationType = relationType; TwoWay = twoWay; @@ -87,7 +86,7 @@ string side public static ColumnRelationship From(Dictionary map) => new ColumnRelationship( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -105,12 +104,12 @@ string side { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "relatedTable", RelatedTable }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/ColumnString.cs b/Appwrite/Models/ColumnString.cs index 5e04677..8191609 100644 --- a/Appwrite/Models/ColumnString.cs +++ b/Appwrite/Models/ColumnString.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnString public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,16 +28,16 @@ public class ColumnString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -46,7 +45,7 @@ public class ColumnString public ColumnString( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -62,17 +61,17 @@ public ColumnString( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Size = size; - Default = xdefault; + @Default = xdefault; Encrypt = encrypt; } public static ColumnString From(Dictionary map) => new ColumnString( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -87,14 +86,14 @@ public ColumnString( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "size", Size }, - { "default", Default }, + { "default", @Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/ColumnUrl.cs b/Appwrite/Models/ColumnUrl.cs index 4168104..1ce0587 100644 --- a/Appwrite/Models/ColumnUrl.cs +++ b/Appwrite/Models/ColumnUrl.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -17,7 +16,7 @@ public class ColumnUrl public string Type { get; private set; } [JsonPropertyName("status")] - public string Status { get; private set; } + public ColumnStatus Status { get; private set; } [JsonPropertyName("error")] public string Error { get; private set; } @@ -29,21 +28,21 @@ public class ColumnUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? Default { get; private set; } + public string? @Default { get; private set; } public ColumnUrl( string key, string type, - string status, + ColumnStatus status, string error, bool required, bool? array, @@ -58,16 +57,16 @@ public ColumnUrl( Error = error; Required = required; Array = array; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Format = format; - Default = xdefault; + @Default = xdefault; } public static ColumnUrl From(Dictionary map) => new ColumnUrl( key: map["key"].ToString(), type: map["type"].ToString(), - status: map["status"].ToString(), + status: new ColumnStatus(map["status"].ToString()!), error: map["error"].ToString(), required: (bool)map["required"], array: (bool?)map["array"], @@ -81,14 +80,14 @@ public ColumnUrl( { { "key", Key }, { "type", Type }, - { "status", Status }, + { "status", Status.Value }, { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "format", Format }, - { "default", Default } + { "default", @Default } }; } } diff --git a/Appwrite/Models/Continent.cs b/Appwrite/Models/Continent.cs index dab9656..da86ab9 100644 --- a/Appwrite/Models/Continent.cs +++ b/Appwrite/Models/Continent.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/ContinentList.cs b/Appwrite/Models/ContinentList.cs index 31e9d10..e7c2b56 100644 --- a/Appwrite/Models/ContinentList.cs +++ b/Appwrite/Models/ContinentList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class ContinentList public long Total { get; private set; } [JsonPropertyName("continents")] - public List Continents { get; private set; } + public List<Continent> Continents { get; private set; } public ContinentList( long total, - List continents + List<Continent> continents ) { Total = total; Continents = continents; diff --git a/Appwrite/Models/Country.cs b/Appwrite/Models/Country.cs index ad4d0b7..dafdcd1 100644 --- a/Appwrite/Models/Country.cs +++ b/Appwrite/Models/Country.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/CountryList.cs b/Appwrite/Models/CountryList.cs index 3e8147b..0c02fef 100644 --- a/Appwrite/Models/CountryList.cs +++ b/Appwrite/Models/CountryList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class CountryList public long Total { get; private set; } [JsonPropertyName("countries")] - public List Countries { get; private set; } + public List<Country> Countries { get; private set; } public CountryList( long total, - List countries + List<Country> countries ) { Total = total; Countries = countries; diff --git a/Appwrite/Models/Currency.cs b/Appwrite/Models/Currency.cs index 492ff32..4bca5ba 100644 --- a/Appwrite/Models/Currency.cs +++ b/Appwrite/Models/Currency.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/CurrencyList.cs b/Appwrite/Models/CurrencyList.cs index 2e92ffa..10e06f4 100644 --- a/Appwrite/Models/CurrencyList.cs +++ b/Appwrite/Models/CurrencyList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class CurrencyList public long Total { get; private set; } [JsonPropertyName("currencies")] - public List Currencies { get; private set; } + public List<Currency> Currencies { get; private set; } public CurrencyList( long total, - List currencies + List<Currency> currencies ) { Total = total; Currencies = currencies; diff --git a/Appwrite/Models/Database.cs b/Appwrite/Models/Database.cs index d74b253..02d791a 100644 --- a/Appwrite/Models/Database.cs +++ b/Appwrite/Models/Database.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,22 +10,22 @@ namespace Appwrite.Models public class Database { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("enabled")] public bool Enabled { get; private set; } [JsonPropertyName("type")] - public string Type { get; private set; } + public DatabaseType Type { get; private set; } public Database( string id, @@ -34,12 +33,12 @@ public Database( string createdAt, string updatedAt, bool enabled, - string type + DatabaseType type ) { - Id = id; + id = id; Name = name; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + createdAt = createdAt; + updatedAt = updatedAt; Enabled = enabled; Type = type; } @@ -50,17 +49,17 @@ string type createdAt: map["$createdAt"].ToString(), updatedAt: map["$updatedAt"].ToString(), enabled: (bool)map["enabled"], - type: map["type"].ToString() + type: new DatabaseType(map["type"].ToString()!) ); public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, + { "$id", id }, { "name", Name }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "enabled", Enabled }, - { "type", Type } + { "type", Type.Value } }; } } diff --git a/Appwrite/Models/DatabaseList.cs b/Appwrite/Models/DatabaseList.cs index e3d0941..dc6aef2 100644 --- a/Appwrite/Models/DatabaseList.cs +++ b/Appwrite/Models/DatabaseList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class DatabaseList public long Total { get; private set; } [JsonPropertyName("databases")] - public List Databases { get; private set; } + public List<Database> Databases { get; private set; } public DatabaseList( long total, - List databases + List<Database> databases ) { Total = total; Databases = databases; diff --git a/Appwrite/Models/Deployment.cs b/Appwrite/Models/Deployment.cs index 7663cf1..411fea2 100644 --- a/Appwrite/Models/Deployment.cs +++ b/Appwrite/Models/Deployment.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Deployment { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("type")] public string Type { get; private set; } @@ -120,9 +119,9 @@ public Deployment( string providerBranch, string providerBranchUrl ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Type = type; ResourceId = resourceId; ResourceType = resourceType; @@ -181,9 +180,9 @@ string providerBranchUrl public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "type", Type }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, diff --git a/Appwrite/Models/DeploymentList.cs b/Appwrite/Models/DeploymentList.cs index c48b9f0..163c4b5 100644 --- a/Appwrite/Models/DeploymentList.cs +++ b/Appwrite/Models/DeploymentList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class DeploymentList public long Total { get; private set; } [JsonPropertyName("deployments")] - public List Deployments { get; private set; } + public List<Deployment> Deployments { get; private set; } public DeploymentList( long total, - List deployments + List<Deployment> deployments ) { Total = total; Deployments = deployments; diff --git a/Appwrite/Models/Document.cs b/Appwrite/Models/Document.cs index af58951..cce7a5f 100644 --- a/Appwrite/Models/Document.cs +++ b/Appwrite/Models/Document.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,25 +10,25 @@ namespace Appwrite.Models public class Document { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$sequence")] - public long Sequence { get; private set; } + public long sequence { get; private set; } [JsonPropertyName("$collectionId")] - public string CollectionId { get; private set; } + public string collectionId { get; private set; } [JsonPropertyName("$databaseId")] - public string DatabaseId { get; private set; } + public string databaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } public Dictionary Data { get; private set; } @@ -40,16 +39,16 @@ public Document( string databaseId, string createdAt, string updatedAt, - List permissions, + List<string> permissions, Dictionary data ) { - Id = id; - Sequence = sequence; - CollectionId = collectionId; - DatabaseId = databaseId; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + sequence = sequence; + collectionId = collectionId; + databaseId = databaseId; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; Data = data; } @@ -66,13 +65,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$sequence", Sequence }, - { "$collectionId", CollectionId }, - { "$databaseId", DatabaseId }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$sequence", sequence }, + { "$collectionId", collectionId }, + { "$databaseId", databaseId }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "data", Data } }; diff --git a/Appwrite/Models/DocumentList.cs b/Appwrite/Models/DocumentList.cs index c481a64..6d11012 100644 --- a/Appwrite/Models/DocumentList.cs +++ b/Appwrite/Models/DocumentList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class DocumentList public long Total { get; private set; } [JsonPropertyName("documents")] - public List Documents { get; private set; } + public List<Document> Documents { get; private set; } public DocumentList( long total, - List documents + List<Document> documents ) { Total = total; Documents = documents; diff --git a/Appwrite/Models/Execution.cs b/Appwrite/Models/Execution.cs index 17898c9..af038e9 100644 --- a/Appwrite/Models/Execution.cs +++ b/Appwrite/Models/Execution.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,16 +10,16 @@ namespace Appwrite.Models public class Execution { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("functionId")] public string FunctionId { get; private set; } @@ -41,7 +40,7 @@ public class Execution public string RequestPath { get; private set; } [JsonPropertyName("requestHeaders")] - public List RequestHeaders { get; private set; } + public List<Headers> RequestHeaders { get; private set; } [JsonPropertyName("responseStatusCode")] public long ResponseStatusCode { get; private set; } @@ -50,7 +49,7 @@ public class Execution public string ResponseBody { get; private set; } [JsonPropertyName("responseHeaders")] - public List ResponseHeaders { get; private set; } + public List<Headers> ResponseHeaders { get; private set; } [JsonPropertyName("logs")] public string Logs { get; private set; } @@ -68,26 +67,26 @@ public Execution( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string functionId, string deploymentId, ExecutionTrigger trigger, ExecutionStatus status, string requestMethod, string requestPath, - List requestHeaders, + List<Headers> requestHeaders, long responseStatusCode, string responseBody, - List responseHeaders, + List<Headers> responseHeaders, string logs, string errors, double duration, string? scheduledAt ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; FunctionId = functionId; DeploymentId = deploymentId; Trigger = trigger; @@ -127,10 +126,10 @@ public Execution( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "functionId", FunctionId }, { "deploymentId", DeploymentId }, { "trigger", Trigger.Value }, diff --git a/Appwrite/Models/ExecutionList.cs b/Appwrite/Models/ExecutionList.cs index da5c64d..f2808bc 100644 --- a/Appwrite/Models/ExecutionList.cs +++ b/Appwrite/Models/ExecutionList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class ExecutionList public long Total { get; private set; } [JsonPropertyName("executions")] - public List Executions { get; private set; } + public List<Execution> Executions { get; private set; } public ExecutionList( long total, - List executions + List<Execution> executions ) { Total = total; Executions = executions; diff --git a/Appwrite/Models/File.cs b/Appwrite/Models/File.cs index 8d0d2e1..77acb10 100644 --- a/Appwrite/Models/File.cs +++ b/Appwrite/Models/File.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,19 +10,19 @@ namespace Appwrite.Models public class File { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("bucketId")] public string BucketId { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -48,7 +47,7 @@ public File( string bucketId, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string name, string signature, string mimeType, @@ -56,11 +55,11 @@ public File( long chunksTotal, long chunksUploaded ) { - Id = id; + id = id; BucketId = bucketId; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; Name = name; Signature = signature; MimeType = mimeType; @@ -85,11 +84,11 @@ long chunksUploaded public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, + { "$id", id }, { "bucketId", BucketId }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "name", Name }, { "signature", Signature }, { "mimeType", MimeType }, diff --git a/Appwrite/Models/FileList.cs b/Appwrite/Models/FileList.cs index c1d39a2..1f3cda3 100644 --- a/Appwrite/Models/FileList.cs +++ b/Appwrite/Models/FileList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class FileList public long Total { get; private set; } [JsonPropertyName("files")] - public List Files { get; private set; } + public List<File> Files { get; private set; } public FileList( long total, - List files + List<File> files ) { Total = total; Files = files; diff --git a/Appwrite/Models/Framework.cs b/Appwrite/Models/Framework.cs index 551df2e..9930bc6 100644 --- a/Appwrite/Models/Framework.cs +++ b/Appwrite/Models/Framework.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -20,17 +19,17 @@ public class Framework public string BuildRuntime { get; private set; } [JsonPropertyName("runtimes")] - public List Runtimes { get; private set; } + public List<string> Runtimes { get; private set; } [JsonPropertyName("adapters")] - public List Adapters { get; private set; } + public List<FrameworkAdapter> Adapters { get; private set; } public Framework( string key, string name, string buildRuntime, - List runtimes, - List adapters + List<string> runtimes, + List<FrameworkAdapter> adapters ) { Key = key; Name = name; diff --git a/Appwrite/Models/FrameworkAdapter.cs b/Appwrite/Models/FrameworkAdapter.cs index 5e88b2b..851c61f 100644 --- a/Appwrite/Models/FrameworkAdapter.cs +++ b/Appwrite/Models/FrameworkAdapter.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/FrameworkList.cs b/Appwrite/Models/FrameworkList.cs index 8d9cb26..31a216e 100644 --- a/Appwrite/Models/FrameworkList.cs +++ b/Appwrite/Models/FrameworkList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class FrameworkList public long Total { get; private set; } [JsonPropertyName("frameworks")] - public List Frameworks { get; private set; } + public List<Framework> Frameworks { get; private set; } public FrameworkList( long total, - List frameworks + List<Framework> frameworks ) { Total = total; Frameworks = frameworks; diff --git a/Appwrite/Models/Function.cs b/Appwrite/Models/Function.cs index f5b64ff..50171a8 100644 --- a/Appwrite/Models/Function.cs +++ b/Appwrite/Models/Function.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,16 +10,16 @@ namespace Appwrite.Models public class Function { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("execute")] - public List Execute { get; private set; } + public List<string> Execute { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -53,13 +52,13 @@ public class Function public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("scopes")] - public List Scopes { get; private set; } + public List<string> Scopes { get; private set; } [JsonPropertyName("vars")] - public List Vars { get; private set; } + public List<Variable> Vars { get; private set; } [JsonPropertyName("events")] - public List Events { get; private set; } + public List<string> Events { get; private set; } [JsonPropertyName("schedule")] public string Schedule { get; private set; } @@ -98,7 +97,7 @@ public Function( string id, string createdAt, string updatedAt, - List execute, + List<string> execute, string name, bool enabled, bool live, @@ -109,9 +108,9 @@ public Function( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List scopes, - List vars, - List events, + List<string> scopes, + List<Variable> vars, + List<string> events, string schedule, long timeout, string entrypoint, @@ -124,9 +123,9 @@ public Function( bool providerSilentMode, string specification ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Execute = execute; Name = name; Enabled = enabled; @@ -187,9 +186,9 @@ string specification public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "execute", Execute }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/FunctionList.cs b/Appwrite/Models/FunctionList.cs index eecdd23..47408cd 100644 --- a/Appwrite/Models/FunctionList.cs +++ b/Appwrite/Models/FunctionList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class FunctionList public long Total { get; private set; } [JsonPropertyName("functions")] - public List Functions { get; private set; } + public List<Function> Functions { get; private set; } public FunctionList( long total, - List functions + List<Function> functions ) { Total = total; Functions = functions; diff --git a/Appwrite/Models/Headers.cs b/Appwrite/Models/Headers.cs index 951c0d2..fef3167 100644 --- a/Appwrite/Models/Headers.cs +++ b/Appwrite/Models/Headers.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,14 +13,14 @@ public class Headers public string Name { get; private set; } [JsonPropertyName("value")] - public string Value { get; private set; } + public string @Value { get; private set; } public Headers( string name, string xvalue ) { Name = name; - Value = xvalue; + @Value = xvalue; } public static Headers From(Dictionary map) => new Headers( @@ -32,7 +31,7 @@ string xvalue public Dictionary ToMap() => new Dictionary() { { "name", Name }, - { "value", Value } + { "value", @Value } }; } } diff --git a/Appwrite/Models/HealthAntivirus.cs b/Appwrite/Models/HealthAntivirus.cs index 2bb3b1d..bf6a2e6 100644 --- a/Appwrite/Models/HealthAntivirus.cs +++ b/Appwrite/Models/HealthAntivirus.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthCertificate.cs b/Appwrite/Models/HealthCertificate.cs index 4d65f5a..593c71f 100644 --- a/Appwrite/Models/HealthCertificate.cs +++ b/Appwrite/Models/HealthCertificate.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthQueue.cs b/Appwrite/Models/HealthQueue.cs index 7d34577..846c566 100644 --- a/Appwrite/Models/HealthQueue.cs +++ b/Appwrite/Models/HealthQueue.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthStatus.cs b/Appwrite/Models/HealthStatus.cs index fc80de2..357ca3e 100644 --- a/Appwrite/Models/HealthStatus.cs +++ b/Appwrite/Models/HealthStatus.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthTime.cs b/Appwrite/Models/HealthTime.cs index e55b7ba..c4136dd 100644 --- a/Appwrite/Models/HealthTime.cs +++ b/Appwrite/Models/HealthTime.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Identity.cs b/Appwrite/Models/Identity.cs index 240b85f..a9ec2bb 100644 --- a/Appwrite/Models/Identity.cs +++ b/Appwrite/Models/Identity.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Identity { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -52,9 +51,9 @@ public Identity( string providerAccessTokenExpiry, string providerRefreshToken ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; UserId = userId; Provider = provider; ProviderUid = providerUid; @@ -79,9 +78,9 @@ string providerRefreshToken public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "userId", UserId }, { "provider", Provider }, { "providerUid", ProviderUid }, diff --git a/Appwrite/Models/IdentityList.cs b/Appwrite/Models/IdentityList.cs index d7c0864..e2a6452 100644 --- a/Appwrite/Models/IdentityList.cs +++ b/Appwrite/Models/IdentityList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class IdentityList public long Total { get; private set; } [JsonPropertyName("identities")] - public List Identities { get; private set; } + public List<Identity> Identities { get; private set; } public IdentityList( long total, - List identities + List<Identity> identities ) { Total = total; Identities = identities; diff --git a/Appwrite/Models/Index.cs b/Appwrite/Models/Index.cs index 8f4ff78..fd920ed 100644 --- a/Appwrite/Models/Index.cs +++ b/Appwrite/Models/Index.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Index { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -32,13 +31,13 @@ public class Index public string Error { get; private set; } [JsonPropertyName("attributes")] - public List Attributes { get; private set; } + public List<string> Attributes { get; private set; } [JsonPropertyName("lengths")] - public List Lengths { get; private set; } + public List<long> Lengths { get; private set; } [JsonPropertyName("orders")] - public List? Orders { get; private set; } + public List<string>? Orders { get; private set; } public Index( string id, @@ -48,13 +47,13 @@ public Index( string type, IndexStatus status, string error, - List attributes, - List lengths, - List? orders + List<string> attributes, + List<long> lengths, + List<string>? orders ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -79,9 +78,9 @@ public Index( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "key", Key }, { "type", Type }, { "status", Status.Value }, diff --git a/Appwrite/Models/IndexList.cs b/Appwrite/Models/IndexList.cs index 5b1989e..a603cbd 100644 --- a/Appwrite/Models/IndexList.cs +++ b/Appwrite/Models/IndexList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class IndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<Index> Indexes { get; private set; } public IndexList( long total, - List indexes + List<Index> indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/JWT.cs b/Appwrite/Models/JWT.cs index a25b7de..f2e8fc9 100644 --- a/Appwrite/Models/JWT.cs +++ b/Appwrite/Models/JWT.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Language.cs b/Appwrite/Models/Language.cs index 124f01c..a28b170 100644 --- a/Appwrite/Models/Language.cs +++ b/Appwrite/Models/Language.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LanguageList.cs b/Appwrite/Models/LanguageList.cs index edc4525..e554fd9 100644 --- a/Appwrite/Models/LanguageList.cs +++ b/Appwrite/Models/LanguageList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class LanguageList public long Total { get; private set; } [JsonPropertyName("languages")] - public List Languages { get; private set; } + public List<Language> Languages { get; private set; } public LanguageList( long total, - List languages + List<Language> languages ) { Total = total; Languages = languages; diff --git a/Appwrite/Models/Locale.cs b/Appwrite/Models/Locale.cs index 58cad59..fd3213e 100644 --- a/Appwrite/Models/Locale.cs +++ b/Appwrite/Models/Locale.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LocaleCode.cs b/Appwrite/Models/LocaleCode.cs index a16017b..da5a114 100644 --- a/Appwrite/Models/LocaleCode.cs +++ b/Appwrite/Models/LocaleCode.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LocaleCodeList.cs b/Appwrite/Models/LocaleCodeList.cs index 4063057..f0f61a0 100644 --- a/Appwrite/Models/LocaleCodeList.cs +++ b/Appwrite/Models/LocaleCodeList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class LocaleCodeList public long Total { get; private set; } [JsonPropertyName("localeCodes")] - public List LocaleCodes { get; private set; } + public List<LocaleCode> LocaleCodes { get; private set; } public LocaleCodeList( long total, - List localeCodes + List<LocaleCode> localeCodes ) { Total = total; LocaleCodes = localeCodes; diff --git a/Appwrite/Models/Log.cs b/Appwrite/Models/Log.cs index bbf6878..f85db25 100644 --- a/Appwrite/Models/Log.cs +++ b/Appwrite/Models/Log.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,7 +10,7 @@ namespace Appwrite.Models public class Log { [JsonPropertyName("event")] - public string Event { get; private set; } + public string @Event { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -96,7 +95,7 @@ public Log( string countryCode, string countryName ) { - Event = xevent; + @Event = xevent; UserId = userId; UserEmail = userEmail; UserName = userName; @@ -145,7 +144,7 @@ string countryName public Dictionary ToMap() => new Dictionary() { - { "event", Event }, + { "event", @Event }, { "userId", UserId }, { "userEmail", UserEmail }, { "userName", UserName }, diff --git a/Appwrite/Models/LogList.cs b/Appwrite/Models/LogList.cs index a72414a..5dc5581 100644 --- a/Appwrite/Models/LogList.cs +++ b/Appwrite/Models/LogList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class LogList public long Total { get; private set; } [JsonPropertyName("logs")] - public List Logs { get; private set; } + public List<Log> Logs { get; private set; } public LogList( long total, - List logs + List<Log> logs ) { Total = total; Logs = logs; diff --git a/Appwrite/Models/Membership.cs b/Appwrite/Models/Membership.cs index 8bb40c1..3c11584 100644 --- a/Appwrite/Models/Membership.cs +++ b/Appwrite/Models/Membership.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Membership { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -47,7 +46,7 @@ public class Membership public bool Mfa { get; private set; } [JsonPropertyName("roles")] - public List Roles { get; private set; } + public List<string> Roles { get; private set; } public Membership( string id, @@ -62,11 +61,11 @@ public Membership( string joined, bool confirm, bool mfa, - List roles + List<string> roles ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; UserId = userId; UserName = userName; UserEmail = userEmail; @@ -97,9 +96,9 @@ List roles public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "userId", UserId }, { "userName", UserName }, { "userEmail", UserEmail }, diff --git a/Appwrite/Models/MembershipList.cs b/Appwrite/Models/MembershipList.cs index dd7bcc0..9b74a10 100644 --- a/Appwrite/Models/MembershipList.cs +++ b/Appwrite/Models/MembershipList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class MembershipList public long Total { get; private set; } [JsonPropertyName("memberships")] - public List Memberships { get; private set; } + public List<Membership> Memberships { get; private set; } public MembershipList( long total, - List memberships + List<Membership> memberships ) { Total = total; Memberships = memberships; diff --git a/Appwrite/Models/Message.cs b/Appwrite/Models/Message.cs index 793ee9c..a9188e5 100644 --- a/Appwrite/Models/Message.cs +++ b/Appwrite/Models/Message.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,25 +10,25 @@ namespace Appwrite.Models public class Message { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("providerType")] public string ProviderType { get; private set; } [JsonPropertyName("topics")] - public List Topics { get; private set; } + public List<string> Topics { get; private set; } [JsonPropertyName("users")] - public List Users { get; private set; } + public List<string> Users { get; private set; } [JsonPropertyName("targets")] - public List Targets { get; private set; } + public List<string> Targets { get; private set; } [JsonPropertyName("scheduledAt")] public string? ScheduledAt { get; private set; } @@ -38,7 +37,7 @@ public class Message public string? DeliveredAt { get; private set; } [JsonPropertyName("deliveryErrors")] - public List? DeliveryErrors { get; private set; } + public List<string>? DeliveryErrors { get; private set; } [JsonPropertyName("deliveredTotal")] public long DeliveredTotal { get; private set; } @@ -54,19 +53,19 @@ public Message( string createdAt, string updatedAt, string providerType, - List topics, - List users, - List targets, + List<string> topics, + List<string> users, + List<string> targets, string? scheduledAt, string? deliveredAt, - List? deliveryErrors, + List<string>? deliveryErrors, long deliveredTotal, object data, MessageStatus status ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; ProviderType = providerType; Topics = topics; Users = users; @@ -97,9 +96,9 @@ MessageStatus status public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "providerType", ProviderType }, { "topics", Topics }, { "users", Users }, diff --git a/Appwrite/Models/MessageList.cs b/Appwrite/Models/MessageList.cs index b41a2df..9fdaf44 100644 --- a/Appwrite/Models/MessageList.cs +++ b/Appwrite/Models/MessageList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class MessageList public long Total { get; private set; } [JsonPropertyName("messages")] - public List Messages { get; private set; } + public List<Message> Messages { get; private set; } public MessageList( long total, - List messages + List<Message> messages ) { Total = total; Messages = messages; diff --git a/Appwrite/Models/MfaChallenge.cs b/Appwrite/Models/MfaChallenge.cs index d5fcc27..632bac6 100644 --- a/Appwrite/Models/MfaChallenge.cs +++ b/Appwrite/Models/MfaChallenge.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,10 +10,10 @@ namespace Appwrite.Models public class MfaChallenge { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -28,8 +27,8 @@ public MfaChallenge( string userId, string expire ) { - Id = id; - CreatedAt = createdAt; + id = id; + createdAt = createdAt; UserId = userId; Expire = expire; } @@ -43,8 +42,8 @@ string expire public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, { "userId", UserId }, { "expire", Expire } }; diff --git a/Appwrite/Models/MfaFactors.cs b/Appwrite/Models/MfaFactors.cs index f0cc908..8019a3e 100644 --- a/Appwrite/Models/MfaFactors.cs +++ b/Appwrite/Models/MfaFactors.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/MfaRecoveryCodes.cs b/Appwrite/Models/MfaRecoveryCodes.cs index 6855f35..befbfd9 100644 --- a/Appwrite/Models/MfaRecoveryCodes.cs +++ b/Appwrite/Models/MfaRecoveryCodes.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,10 +10,10 @@ namespace Appwrite.Models public class MfaRecoveryCodes { [JsonPropertyName("recoveryCodes")] - public List RecoveryCodes { get; private set; } + public List<string> RecoveryCodes { get; private set; } public MfaRecoveryCodes( - List recoveryCodes + List<string> recoveryCodes ) { RecoveryCodes = recoveryCodes; } diff --git a/Appwrite/Models/MfaType.cs b/Appwrite/Models/MfaType.cs index 8e008f8..88de025 100644 --- a/Appwrite/Models/MfaType.cs +++ b/Appwrite/Models/MfaType.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Phone.cs b/Appwrite/Models/Phone.cs index a820f07..911f66f 100644 --- a/Appwrite/Models/Phone.cs +++ b/Appwrite/Models/Phone.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/PhoneList.cs b/Appwrite/Models/PhoneList.cs index 26c7f6d..16d1493 100644 --- a/Appwrite/Models/PhoneList.cs +++ b/Appwrite/Models/PhoneList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class PhoneList public long Total { get; private set; } [JsonPropertyName("phones")] - public List Phones { get; private set; } + public List<Phone> Phones { get; private set; } public PhoneList( long total, - List phones + List<Phone> phones ) { Total = total; Phones = phones; diff --git a/Appwrite/Models/Preferences.cs b/Appwrite/Models/Preferences.cs index 0f97086..32de5e3 100644 --- a/Appwrite/Models/Preferences.cs +++ b/Appwrite/Models/Preferences.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Provider.cs b/Appwrite/Models/Provider.cs index 430277c..185607a 100644 --- a/Appwrite/Models/Provider.cs +++ b/Appwrite/Models/Provider.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Provider { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -48,9 +47,9 @@ public Provider( object credentials, object? options ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; MessagingProvider = provider; Enabled = enabled; @@ -73,9 +72,9 @@ public Provider( public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "provider", MessagingProvider }, { "enabled", Enabled }, diff --git a/Appwrite/Models/ProviderList.cs b/Appwrite/Models/ProviderList.cs index 783d903..249a480 100644 --- a/Appwrite/Models/ProviderList.cs +++ b/Appwrite/Models/ProviderList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class ProviderList public long Total { get; private set; } [JsonPropertyName("providers")] - public List Providers { get; private set; } + public List<Provider> Providers { get; private set; } public ProviderList( long total, - List providers + List<Provider> providers ) { Total = total; Providers = providers; diff --git a/Appwrite/Models/ResourceToken.cs b/Appwrite/Models/ResourceToken.cs index b2e5635..1e843de 100644 --- a/Appwrite/Models/ResourceToken.cs +++ b/Appwrite/Models/ResourceToken.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,10 +10,10 @@ namespace Appwrite.Models public class ResourceToken { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("resourceId")] public string ResourceId { get; private set; } @@ -40,8 +39,8 @@ public ResourceToken( string secret, string accessedAt ) { - Id = id; - CreatedAt = createdAt; + id = id; + createdAt = createdAt; ResourceId = resourceId; ResourceType = resourceType; Expire = expire; @@ -61,8 +60,8 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, { "expire", Expire }, diff --git a/Appwrite/Models/ResourceTokenList.cs b/Appwrite/Models/ResourceTokenList.cs index 8f0928f..d3e04ee 100644 --- a/Appwrite/Models/ResourceTokenList.cs +++ b/Appwrite/Models/ResourceTokenList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class ResourceTokenList public long Total { get; private set; } [JsonPropertyName("tokens")] - public List Tokens { get; private set; } + public List<ResourceToken> Tokens { get; private set; } public ResourceTokenList( long total, - List tokens + List<ResourceToken> tokens ) { Total = total; Tokens = tokens; diff --git a/Appwrite/Models/Row.cs b/Appwrite/Models/Row.cs index d72ab9c..dd635cb 100644 --- a/Appwrite/Models/Row.cs +++ b/Appwrite/Models/Row.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,25 +10,25 @@ namespace Appwrite.Models public class Row { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$sequence")] - public long Sequence { get; private set; } + public long sequence { get; private set; } [JsonPropertyName("$tableId")] - public string TableId { get; private set; } + public string tableId { get; private set; } [JsonPropertyName("$databaseId")] - public string DatabaseId { get; private set; } + public string databaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } public Dictionary Data { get; private set; } @@ -40,16 +39,16 @@ public Row( string databaseId, string createdAt, string updatedAt, - List permissions, + List<string> permissions, Dictionary data ) { - Id = id; - Sequence = sequence; - TableId = tableId; - DatabaseId = databaseId; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + sequence = sequence; + tableId = tableId; + databaseId = databaseId; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; Data = data; } @@ -66,13 +65,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$sequence", Sequence }, - { "$tableId", TableId }, - { "$databaseId", DatabaseId }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$sequence", sequence }, + { "$tableId", tableId }, + { "$databaseId", databaseId }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "data", Data } }; diff --git a/Appwrite/Models/RowList.cs b/Appwrite/Models/RowList.cs index 210a5f1..ee52902 100644 --- a/Appwrite/Models/RowList.cs +++ b/Appwrite/Models/RowList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class RowList public long Total { get; private set; } [JsonPropertyName("rows")] - public List Rows { get; private set; } + public List<Row> Rows { get; private set; } public RowList( long total, - List rows + List<Row> rows ) { Total = total; Rows = rows; diff --git a/Appwrite/Models/Runtime.cs b/Appwrite/Models/Runtime.cs index 5dcb3e2..4e5d740 100644 --- a/Appwrite/Models/Runtime.cs +++ b/Appwrite/Models/Runtime.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,7 +10,7 @@ namespace Appwrite.Models public class Runtime { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -23,7 +22,7 @@ public class Runtime public string Version { get; private set; } [JsonPropertyName("base")] - public string Base { get; private set; } + public string @Base { get; private set; } [JsonPropertyName("image")] public string Image { get; private set; } @@ -32,7 +31,7 @@ public class Runtime public string Logo { get; private set; } [JsonPropertyName("supports")] - public List Supports { get; private set; } + public List<string> Supports { get; private set; } public Runtime( string id, @@ -42,13 +41,13 @@ public Runtime( string xbase, string image, string logo, - List supports + List<string> supports ) { - Id = id; + id = id; Key = key; Name = name; Version = version; - Base = xbase; + @Base = xbase; Image = image; Logo = logo; Supports = supports; @@ -67,11 +66,11 @@ List supports public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, + { "$id", id }, { "key", Key }, { "name", Name }, { "version", Version }, - { "base", Base }, + { "base", @Base }, { "image", Image }, { "logo", Logo }, { "supports", Supports } diff --git a/Appwrite/Models/RuntimeList.cs b/Appwrite/Models/RuntimeList.cs index c4c6b0e..04d1a4a 100644 --- a/Appwrite/Models/RuntimeList.cs +++ b/Appwrite/Models/RuntimeList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class RuntimeList public long Total { get; private set; } [JsonPropertyName("runtimes")] - public List Runtimes { get; private set; } + public List<Runtime> Runtimes { get; private set; } public RuntimeList( long total, - List runtimes + List<Runtime> runtimes ) { Total = total; Runtimes = runtimes; diff --git a/Appwrite/Models/Session.cs b/Appwrite/Models/Session.cs index a22bb62..0ec983c 100644 --- a/Appwrite/Models/Session.cs +++ b/Appwrite/Models/Session.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Session { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -89,7 +88,7 @@ public class Session public bool Current { get; private set; } [JsonPropertyName("factors")] - public List Factors { get; private set; } + public List<string> Factors { get; private set; } [JsonPropertyName("secret")] public string Secret { get; private set; } @@ -124,13 +123,13 @@ public Session( string countryCode, string countryName, bool current, - List factors, + List<string> factors, string secret, string mfaUpdatedAt ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; UserId = userId; Expire = expire; Provider = provider; @@ -193,9 +192,9 @@ string mfaUpdatedAt public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "userId", UserId }, { "expire", Expire }, { "provider", Provider }, diff --git a/Appwrite/Models/SessionList.cs b/Appwrite/Models/SessionList.cs index 685cead..891d815 100644 --- a/Appwrite/Models/SessionList.cs +++ b/Appwrite/Models/SessionList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class SessionList public long Total { get; private set; } [JsonPropertyName("sessions")] - public List Sessions { get; private set; } + public List<Session> Sessions { get; private set; } public SessionList( long total, - List sessions + List<Session> sessions ) { Total = total; Sessions = sessions; diff --git a/Appwrite/Models/Site.cs b/Appwrite/Models/Site.cs index 70fb1ec..f00a3fc 100644 --- a/Appwrite/Models/Site.cs +++ b/Appwrite/Models/Site.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Site { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -56,7 +55,7 @@ public class Site public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("vars")] - public List Vars { get; private set; } + public List<Variable> Vars { get; private set; } [JsonPropertyName("timeout")] public long Timeout { get; private set; } @@ -113,7 +112,7 @@ public Site( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List vars, + List<Variable> vars, long timeout, string installCommand, string buildCommand, @@ -128,9 +127,9 @@ public Site( string adapter, string fallbackFile ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; Enabled = enabled; Live = live; @@ -193,9 +192,9 @@ string fallbackFile public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "enabled", Enabled }, { "live", Live }, diff --git a/Appwrite/Models/SiteList.cs b/Appwrite/Models/SiteList.cs index 2b8a361..bf80aed 100644 --- a/Appwrite/Models/SiteList.cs +++ b/Appwrite/Models/SiteList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class SiteList public long Total { get; private set; } [JsonPropertyName("sites")] - public List Sites { get; private set; } + public List<Site> Sites { get; private set; } public SiteList( long total, - List sites + List<Site> sites ) { Total = total; Sites = sites; diff --git a/Appwrite/Models/Specification.cs b/Appwrite/Models/Specification.cs index 1334b3d..7177ac7 100644 --- a/Appwrite/Models/Specification.cs +++ b/Appwrite/Models/Specification.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/SpecificationList.cs b/Appwrite/Models/SpecificationList.cs index 82694bc..7b33251 100644 --- a/Appwrite/Models/SpecificationList.cs +++ b/Appwrite/Models/SpecificationList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class SpecificationList public long Total { get; private set; } [JsonPropertyName("specifications")] - public List Specifications { get; private set; } + public List<Specification> Specifications { get; private set; } public SpecificationList( long total, - List specifications + List<Specification> specifications ) { Total = total; Specifications = specifications; diff --git a/Appwrite/Models/Subscriber.cs b/Appwrite/Models/Subscriber.cs index 0837bfc..64462eb 100644 --- a/Appwrite/Models/Subscriber.cs +++ b/Appwrite/Models/Subscriber.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Subscriber { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("targetId")] public string TargetId { get; private set; } @@ -48,9 +47,9 @@ public Subscriber( string topicId, string providerType ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; TargetId = targetId; Target = target; UserId = userId; @@ -73,9 +72,9 @@ string providerType public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "targetId", TargetId }, { "target", Target.ToMap() }, { "userId", UserId }, diff --git a/Appwrite/Models/SubscriberList.cs b/Appwrite/Models/SubscriberList.cs index 7de9083..9cebb0a 100644 --- a/Appwrite/Models/SubscriberList.cs +++ b/Appwrite/Models/SubscriberList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class SubscriberList public long Total { get; private set; } [JsonPropertyName("subscribers")] - public List Subscribers { get; private set; } + public List<Subscriber> Subscribers { get; private set; } public SubscriberList( long total, - List subscribers + List<Subscriber> subscribers ) { Total = total; Subscribers = subscribers; diff --git a/Appwrite/Models/Table.cs b/Appwrite/Models/Table.cs index c621543..c35b559 100644 --- a/Appwrite/Models/Table.cs +++ b/Appwrite/Models/Table.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,16 +10,16 @@ namespace Appwrite.Models public class Table { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List Permissions { get; private set; } + public List<string> permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -35,27 +34,27 @@ public class Table public bool RowSecurity { get; private set; } [JsonPropertyName("columns")] - public List Columns { get; private set; } + public List<object> Columns { get; private set; } [JsonPropertyName("indexes")] - public List Indexes { get; private set; } + public List<ColumnIndex> Indexes { get; private set; } public Table( string id, string createdAt, string updatedAt, - List permissions, + List<string> permissions, string databaseId, string name, bool enabled, bool rowSecurity, - List columns, - List indexes + List<object> columns, + List<ColumnIndex> indexes ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; - Permissions = permissions; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; + permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -79,10 +78,10 @@ List indexes public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, - { "$permissions", Permissions }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, + { "$permissions", permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/TableList.cs b/Appwrite/Models/TableList.cs index e4251f1..2449594 100644 --- a/Appwrite/Models/TableList.cs +++ b/Appwrite/Models/TableList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class TableList public long Total { get; private set; } [JsonPropertyName("tables")] - public List
Tables { get; private set; } + public List<Table> Tables { get; private set; } public TableList( long total, - List
tables + List<Table> tables ) { Total = total; Tables = tables; diff --git a/Appwrite/Models/Target.cs b/Appwrite/Models/Target.cs index b19d882..12698e1 100644 --- a/Appwrite/Models/Target.cs +++ b/Appwrite/Models/Target.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Target { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -48,9 +47,9 @@ public Target( string identifier, bool expired ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; UserId = userId; ProviderId = providerId; @@ -73,9 +72,9 @@ bool expired public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "userId", UserId }, { "providerId", ProviderId }, diff --git a/Appwrite/Models/TargetList.cs b/Appwrite/Models/TargetList.cs index ceef206..e88076f 100644 --- a/Appwrite/Models/TargetList.cs +++ b/Appwrite/Models/TargetList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class TargetList public long Total { get; private set; } [JsonPropertyName("targets")] - public List Targets { get; private set; } + public List<Target> Targets { get; private set; } public TargetList( long total, - List targets + List<Target> targets ) { Total = total; Targets = targets; diff --git a/Appwrite/Models/Team.cs b/Appwrite/Models/Team.cs index 5e68469..5b471dd 100644 --- a/Appwrite/Models/Team.cs +++ b/Appwrite/Models/Team.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Team { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -36,9 +35,9 @@ public Team( long total, Preferences prefs ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; Total = total; Prefs = prefs; @@ -55,9 +54,9 @@ Preferences prefs public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "total", Total }, { "prefs", Prefs.ToMap() } diff --git a/Appwrite/Models/TeamList.cs b/Appwrite/Models/TeamList.cs index a079b7f..40b0125 100644 --- a/Appwrite/Models/TeamList.cs +++ b/Appwrite/Models/TeamList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class TeamList public long Total { get; private set; } [JsonPropertyName("teams")] - public List Teams { get; private set; } + public List<Team> Teams { get; private set; } public TeamList( long total, - List teams + List<Team> teams ) { Total = total; Teams = teams; diff --git a/Appwrite/Models/Token.cs b/Appwrite/Models/Token.cs index 8b6ec46..924e569 100644 --- a/Appwrite/Models/Token.cs +++ b/Appwrite/Models/Token.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,10 +10,10 @@ namespace Appwrite.Models public class Token { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -36,8 +35,8 @@ public Token( string expire, string phrase ) { - Id = id; - CreatedAt = createdAt; + id = id; + createdAt = createdAt; UserId = userId; Secret = secret; Expire = expire; @@ -55,8 +54,8 @@ string phrase public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, { "userId", UserId }, { "secret", Secret }, { "expire", Expire }, diff --git a/Appwrite/Models/Topic.cs b/Appwrite/Models/Topic.cs index bc2f973..cc53428 100644 --- a/Appwrite/Models/Topic.cs +++ b/Appwrite/Models/Topic.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class Topic { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -32,7 +31,7 @@ public class Topic public long PushTotal { get; private set; } [JsonPropertyName("subscribe")] - public List Subscribe { get; private set; } + public List<string> Subscribe { get; private set; } public Topic( string id, @@ -42,11 +41,11 @@ public Topic( long emailTotal, long smsTotal, long pushTotal, - List subscribe + List<string> subscribe ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; EmailTotal = emailTotal; SmsTotal = smsTotal; @@ -67,9 +66,9 @@ List subscribe public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "emailTotal", EmailTotal }, { "smsTotal", SmsTotal }, diff --git a/Appwrite/Models/TopicList.cs b/Appwrite/Models/TopicList.cs index 51bfeab..8a77ace 100644 --- a/Appwrite/Models/TopicList.cs +++ b/Appwrite/Models/TopicList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class TopicList public long Total { get; private set; } [JsonPropertyName("topics")] - public List Topics { get; private set; } + public List<Topic> Topics { get; private set; } public TopicList( long total, - List topics + List<Topic> topics ) { Total = total; Topics = topics; diff --git a/Appwrite/Models/User.cs b/Appwrite/Models/User.cs index a1ac4c6..d1efe29 100644 --- a/Appwrite/Models/User.cs +++ b/Appwrite/Models/User.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,13 +10,13 @@ namespace Appwrite.Models public class User { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -38,7 +37,7 @@ public class User public bool Status { get; private set; } [JsonPropertyName("labels")] - public List Labels { get; private set; } + public List<string> Labels { get; private set; } [JsonPropertyName("passwordUpdate")] public string PasswordUpdate { get; private set; } @@ -62,7 +61,7 @@ public class User public Preferences Prefs { get; private set; } [JsonPropertyName("targets")] - public List Targets { get; private set; } + public List<Target> Targets { get; private set; } [JsonPropertyName("accessedAt")] public string AccessedAt { get; private set; } @@ -77,7 +76,7 @@ public User( object? hashOptions, string registration, bool status, - List labels, + List<string> labels, string passwordUpdate, string email, string phone, @@ -85,12 +84,12 @@ public User( bool phoneVerification, bool mfa, Preferences prefs, - List targets, + List<Target> targets, string accessedAt ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Name = name; Password = password; Hash = hash; @@ -133,9 +132,9 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "name", Name }, { "password", Password }, { "hash", Hash }, diff --git a/Appwrite/Models/UserList.cs b/Appwrite/Models/UserList.cs index d1574dc..d89fd26 100644 --- a/Appwrite/Models/UserList.cs +++ b/Appwrite/Models/UserList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class UserList public long Total { get; private set; } [JsonPropertyName("users")] - public List Users { get; private set; } + public List<User> Users { get; private set; } public UserList( long total, - List users + List<User> users ) { Total = total; Users = users; diff --git a/Appwrite/Models/Variable.cs b/Appwrite/Models/Variable.cs index 8234773..d5eb198 100644 --- a/Appwrite/Models/Variable.cs +++ b/Appwrite/Models/Variable.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -11,19 +10,19 @@ namespace Appwrite.Models public class Variable { [JsonPropertyName("$id")] - public string Id { get; private set; } + public string id { get; private set; } [JsonPropertyName("$createdAt")] - public string CreatedAt { get; private set; } + public string createdAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string UpdatedAt { get; private set; } + public string updatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } [JsonPropertyName("value")] - public string Value { get; private set; } + public string @Value { get; private set; } [JsonPropertyName("secret")] public bool Secret { get; private set; } @@ -44,11 +43,11 @@ public Variable( string resourceType, string resourceId ) { - Id = id; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + id = id; + createdAt = createdAt; + updatedAt = updatedAt; Key = key; - Value = xvalue; + @Value = xvalue; Secret = secret; ResourceType = resourceType; ResourceId = resourceId; @@ -67,11 +66,11 @@ string resourceId public Dictionary ToMap() => new Dictionary() { - { "$id", Id }, - { "$createdAt", CreatedAt }, - { "$updatedAt", UpdatedAt }, + { "$id", id }, + { "$createdAt", createdAt }, + { "$updatedAt", updatedAt }, { "key", Key }, - { "value", Value }, + { "value", @Value }, { "secret", Secret }, { "resourceType", ResourceType }, { "resourceId", ResourceId } diff --git a/Appwrite/Models/VariableList.cs b/Appwrite/Models/VariableList.cs index b17d415..a5a5592 100644 --- a/Appwrite/Models/VariableList.cs +++ b/Appwrite/Models/VariableList.cs @@ -1,4 +1,3 @@ - using System; using System.Linq; using System.Collections.Generic; @@ -14,11 +13,11 @@ public class VariableList public long Total { get; private set; } [JsonPropertyName("variables")] - public List Variables { get; private set; } + public List<Variable> Variables { get; private set; } public VariableList( long total, - List variables + List<Variable> variables ) { Total = total; Variables = variables; From de455ce28bf21df1154be720acdad834e7e58d81 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Oct 2025 03:52:50 +0000 Subject: [PATCH 6/6] fix: templates --- Appwrite/Models/AlgoArgon2.cs | 1 + Appwrite/Models/AlgoBcrypt.cs | 1 + Appwrite/Models/AlgoMd5.cs | 1 + Appwrite/Models/AlgoPhpass.cs | 1 + Appwrite/Models/AlgoScrypt.cs | 1 + Appwrite/Models/AlgoScryptModified.cs | 1 + Appwrite/Models/AlgoSha.cs | 1 + Appwrite/Models/AttributeBoolean.cs | 19 +++++----- Appwrite/Models/AttributeDatetime.cs | 19 +++++----- Appwrite/Models/AttributeEmail.cs | 19 +++++----- Appwrite/Models/AttributeEnum.cs | 23 ++++++------ Appwrite/Models/AttributeFloat.cs | 19 +++++----- Appwrite/Models/AttributeInteger.cs | 19 +++++----- Appwrite/Models/AttributeIp.cs | 19 +++++----- Appwrite/Models/AttributeLine.cs | 21 +++++------ Appwrite/Models/AttributeList.cs | 5 +-- Appwrite/Models/AttributePoint.cs | 21 +++++------ Appwrite/Models/AttributePolygon.cs | 21 +++++------ Appwrite/Models/AttributeRelationship.cs | 13 +++---- Appwrite/Models/AttributeString.cs | 19 +++++----- Appwrite/Models/AttributeUrl.cs | 19 +++++----- Appwrite/Models/Bucket.cs | 31 ++++++++-------- Appwrite/Models/BucketList.cs | 5 +-- Appwrite/Models/Collection.cs | 35 +++++++++--------- Appwrite/Models/CollectionList.cs | 5 +-- Appwrite/Models/ColumnBoolean.cs | 19 +++++----- Appwrite/Models/ColumnDatetime.cs | 19 +++++----- Appwrite/Models/ColumnEmail.cs | 19 +++++----- Appwrite/Models/ColumnEnum.cs | 23 ++++++------ Appwrite/Models/ColumnFloat.cs | 19 +++++----- Appwrite/Models/ColumnIndex.cs | 31 ++++++++-------- Appwrite/Models/ColumnIndexList.cs | 5 +-- Appwrite/Models/ColumnInteger.cs | 19 +++++----- Appwrite/Models/ColumnIp.cs | 19 +++++----- Appwrite/Models/ColumnLine.cs | 21 +++++------ Appwrite/Models/ColumnList.cs | 5 +-- Appwrite/Models/ColumnPoint.cs | 21 +++++------ Appwrite/Models/ColumnPolygon.cs | 21 +++++------ Appwrite/Models/ColumnRelationship.cs | 13 +++---- Appwrite/Models/ColumnString.cs | 19 +++++----- Appwrite/Models/ColumnUrl.cs | 19 +++++----- Appwrite/Models/Continent.cs | 1 + Appwrite/Models/ContinentList.cs | 5 +-- Appwrite/Models/Country.cs | 1 + Appwrite/Models/CountryList.cs | 5 +-- Appwrite/Models/Currency.cs | 1 + Appwrite/Models/CurrencyList.cs | 5 +-- Appwrite/Models/Database.cs | 19 +++++----- Appwrite/Models/DatabaseList.cs | 5 +-- Appwrite/Models/Deployment.cs | 19 +++++----- Appwrite/Models/DeploymentList.cs | 5 +-- Appwrite/Models/Document.cs | 45 ++++++++++++------------ Appwrite/Models/DocumentList.cs | 5 +-- Appwrite/Models/Execution.cs | 35 +++++++++--------- Appwrite/Models/ExecutionList.cs | 5 +-- Appwrite/Models/File.cs | 27 +++++++------- Appwrite/Models/FileList.cs | 5 +-- Appwrite/Models/Framework.cs | 9 ++--- Appwrite/Models/FrameworkAdapter.cs | 1 + Appwrite/Models/FrameworkList.cs | 5 +-- Appwrite/Models/Function.cs | 35 +++++++++--------- Appwrite/Models/FunctionList.cs | 5 +-- Appwrite/Models/Headers.cs | 7 ++-- Appwrite/Models/HealthAntivirus.cs | 1 + Appwrite/Models/HealthCertificate.cs | 1 + Appwrite/Models/HealthQueue.cs | 1 + Appwrite/Models/HealthStatus.cs | 1 + Appwrite/Models/HealthTime.cs | 1 + Appwrite/Models/Identity.cs | 19 +++++----- Appwrite/Models/IdentityList.cs | 5 +-- Appwrite/Models/Index.cs | 31 ++++++++-------- Appwrite/Models/IndexList.cs | 5 +-- Appwrite/Models/JWT.cs | 1 + Appwrite/Models/Language.cs | 1 + Appwrite/Models/LanguageList.cs | 5 +-- Appwrite/Models/Locale.cs | 1 + Appwrite/Models/LocaleCode.cs | 1 + Appwrite/Models/LocaleCodeList.cs | 5 +-- Appwrite/Models/Log.cs | 7 ++-- Appwrite/Models/LogList.cs | 5 +-- Appwrite/Models/Membership.cs | 23 ++++++------ Appwrite/Models/MembershipList.cs | 5 +-- Appwrite/Models/Message.cs | 35 +++++++++--------- Appwrite/Models/MessageList.cs | 5 +-- Appwrite/Models/MfaChallenge.cs | 13 +++---- Appwrite/Models/MfaFactors.cs | 1 + Appwrite/Models/MfaRecoveryCodes.cs | 5 +-- Appwrite/Models/MfaType.cs | 1 + Appwrite/Models/Phone.cs | 1 + Appwrite/Models/PhoneList.cs | 5 +-- Appwrite/Models/Preferences.cs | 1 + Appwrite/Models/Provider.cs | 19 +++++----- Appwrite/Models/ProviderList.cs | 5 +-- Appwrite/Models/ResourceToken.cs | 13 +++---- Appwrite/Models/ResourceTokenList.cs | 5 +-- Appwrite/Models/Row.cs | 45 ++++++++++++------------ Appwrite/Models/RowList.cs | 5 +-- Appwrite/Models/Runtime.cs | 17 ++++----- Appwrite/Models/RuntimeList.cs | 5 +-- Appwrite/Models/Session.cs | 23 ++++++------ Appwrite/Models/SessionList.cs | 5 +-- Appwrite/Models/Site.cs | 23 ++++++------ Appwrite/Models/SiteList.cs | 5 +-- Appwrite/Models/Specification.cs | 1 + Appwrite/Models/SpecificationList.cs | 5 +-- Appwrite/Models/Subscriber.cs | 19 +++++----- Appwrite/Models/SubscriberList.cs | 5 +-- Appwrite/Models/Table.cs | 35 +++++++++--------- Appwrite/Models/TableList.cs | 5 +-- Appwrite/Models/Target.cs | 19 +++++----- Appwrite/Models/TargetList.cs | 5 +-- Appwrite/Models/Team.cs | 19 +++++----- Appwrite/Models/TeamList.cs | 5 +-- Appwrite/Models/Token.cs | 13 +++---- Appwrite/Models/Topic.cs | 23 ++++++------ Appwrite/Models/TopicList.cs | 5 +-- Appwrite/Models/User.cs | 27 +++++++------- Appwrite/Models/UserList.cs | 5 +-- Appwrite/Models/Variable.cs | 25 ++++++------- Appwrite/Models/VariableList.cs | 5 +-- 120 files changed, 789 insertions(+), 669 deletions(-) diff --git a/Appwrite/Models/AlgoArgon2.cs b/Appwrite/Models/AlgoArgon2.cs index 85c664d..2573b10 100644 --- a/Appwrite/Models/AlgoArgon2.cs +++ b/Appwrite/Models/AlgoArgon2.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoBcrypt.cs b/Appwrite/Models/AlgoBcrypt.cs index 7fb9684..3cab59e 100644 --- a/Appwrite/Models/AlgoBcrypt.cs +++ b/Appwrite/Models/AlgoBcrypt.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoMd5.cs b/Appwrite/Models/AlgoMd5.cs index a6ed243..814de65 100644 --- a/Appwrite/Models/AlgoMd5.cs +++ b/Appwrite/Models/AlgoMd5.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoPhpass.cs b/Appwrite/Models/AlgoPhpass.cs index 7fe4a67..693d31e 100644 --- a/Appwrite/Models/AlgoPhpass.cs +++ b/Appwrite/Models/AlgoPhpass.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoScrypt.cs b/Appwrite/Models/AlgoScrypt.cs index b6079ac..cb8a10b 100644 --- a/Appwrite/Models/AlgoScrypt.cs +++ b/Appwrite/Models/AlgoScrypt.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoScryptModified.cs b/Appwrite/Models/AlgoScryptModified.cs index 6b3d1c5..cf33b0c 100644 --- a/Appwrite/Models/AlgoScryptModified.cs +++ b/Appwrite/Models/AlgoScryptModified.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AlgoSha.cs b/Appwrite/Models/AlgoSha.cs index fa5b50d..92a8866 100644 --- a/Appwrite/Models/AlgoSha.cs +++ b/Appwrite/Models/AlgoSha.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/AttributeBoolean.cs b/Appwrite/Models/AttributeBoolean.cs index db31589..d165e5c 100644 --- a/Appwrite/Models/AttributeBoolean.cs +++ b/Appwrite/Models/AttributeBoolean.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributeBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public bool? @Default { get; private set; } + public bool? Default { get; private set; } public AttributeBoolean( string key, @@ -53,9 +54,9 @@ public AttributeBoolean( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static AttributeBoolean From(Dictionary map) => new AttributeBoolean( @@ -78,9 +79,9 @@ public AttributeBoolean( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeDatetime.cs b/Appwrite/Models/AttributeDatetime.cs index 9b5471d..0867e7e 100644 --- a/Appwrite/Models/AttributeDatetime.cs +++ b/Appwrite/Models/AttributeDatetime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class AttributeDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeDatetime( string key, @@ -57,10 +58,10 @@ public AttributeDatetime( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeDatetime From(Dictionary map) => new AttributeDatetime( @@ -84,10 +85,10 @@ public AttributeDatetime( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeEmail.cs b/Appwrite/Models/AttributeEmail.cs index cc90716..b15a4dc 100644 --- a/Appwrite/Models/AttributeEmail.cs +++ b/Appwrite/Models/AttributeEmail.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class AttributeEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeEmail( string key, @@ -57,10 +58,10 @@ public AttributeEmail( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeEmail From(Dictionary map) => new AttributeEmail( @@ -84,10 +85,10 @@ public AttributeEmail( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeEnum.cs b/Appwrite/Models/AttributeEnum.cs index 142271a..a295c0d 100644 --- a/Appwrite/Models/AttributeEnum.cs +++ b/Appwrite/Models/AttributeEnum.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,19 +29,19 @@ public class AttributeEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("elements")] - public List<string> Elements { get; private set; } + public List Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeEnum( string key, @@ -51,7 +52,7 @@ public AttributeEnum( bool? array, string createdAt, string updatedAt, - List<string> elements, + List elements, string format, string? xdefault ) { @@ -61,11 +62,11 @@ public AttributeEnum( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Elements = elements; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeEnum From(Dictionary map) => new AttributeEnum( @@ -90,11 +91,11 @@ public AttributeEnum( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "elements", Elements }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeFloat.cs b/Appwrite/Models/AttributeFloat.cs index 01dc335..60dcf5d 100644 --- a/Appwrite/Models/AttributeFloat.cs +++ b/Appwrite/Models/AttributeFloat.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -40,7 +41,7 @@ public class AttributeFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? @Default { get; private set; } + public double? Default { get; private set; } public AttributeFloat( string key, @@ -61,11 +62,11 @@ public AttributeFloat( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static AttributeFloat From(Dictionary map) => new AttributeFloat( @@ -90,11 +91,11 @@ public AttributeFloat( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeInteger.cs b/Appwrite/Models/AttributeInteger.cs index 15364d5..581e244 100644 --- a/Appwrite/Models/AttributeInteger.cs +++ b/Appwrite/Models/AttributeInteger.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -40,7 +41,7 @@ public class AttributeInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? @Default { get; private set; } + public long? Default { get; private set; } public AttributeInteger( string key, @@ -61,11 +62,11 @@ public AttributeInteger( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static AttributeInteger From(Dictionary map) => new AttributeInteger( @@ -90,11 +91,11 @@ public AttributeInteger( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeIp.cs b/Appwrite/Models/AttributeIp.cs index 45a1f2e..704864e 100644 --- a/Appwrite/Models/AttributeIp.cs +++ b/Appwrite/Models/AttributeIp.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class AttributeIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeIp( string key, @@ -57,10 +58,10 @@ public AttributeIp( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeIp From(Dictionary map) => new AttributeIp( @@ -84,10 +85,10 @@ public AttributeIp( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeLine.cs b/Appwrite/Models/AttributeLine.cs index 55f7ba3..80773ac 100644 --- a/Appwrite/Models/AttributeLine.cs +++ b/Appwrite/Models/AttributeLine.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributeLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? Default { get; private set; } public AttributeLine( string key, @@ -45,7 +46,7 @@ public AttributeLine( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,9 +54,9 @@ public AttributeLine( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static AttributeLine From(Dictionary map) => new AttributeLine( @@ -78,9 +79,9 @@ public AttributeLine( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeList.cs b/Appwrite/Models/AttributeList.cs index 472cd01..1c1404b 100644 --- a/Appwrite/Models/AttributeList.cs +++ b/Appwrite/Models/AttributeList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class AttributeList public long Total { get; private set; } [JsonPropertyName("attributes")] - public List<object> Attributes { get; private set; } + public List Attributes { get; private set; } public AttributeList( long total, - List<object> attributes + List attributes ) { Total = total; Attributes = attributes; diff --git a/Appwrite/Models/AttributePoint.cs b/Appwrite/Models/AttributePoint.cs index fd2146d..2f15890 100644 --- a/Appwrite/Models/AttributePoint.cs +++ b/Appwrite/Models/AttributePoint.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributePoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? Default { get; private set; } public AttributePoint( string key, @@ -45,7 +46,7 @@ public AttributePoint( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,9 +54,9 @@ public AttributePoint( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static AttributePoint From(Dictionary map) => new AttributePoint( @@ -78,9 +79,9 @@ public AttributePoint( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributePolygon.cs b/Appwrite/Models/AttributePolygon.cs index fbb4020..32d3786 100644 --- a/Appwrite/Models/AttributePolygon.cs +++ b/Appwrite/Models/AttributePolygon.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class AttributePolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? Default { get; private set; } public AttributePolygon( string key, @@ -45,7 +46,7 @@ public AttributePolygon( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,9 +54,9 @@ public AttributePolygon( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static AttributePolygon From(Dictionary map) => new AttributePolygon( @@ -78,9 +79,9 @@ public AttributePolygon( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/AttributeRelationship.cs b/Appwrite/Models/AttributeRelationship.cs index 2be8db2..17447c0 100644 --- a/Appwrite/Models/AttributeRelationship.cs +++ b/Appwrite/Models/AttributeRelationship.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class AttributeRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("relatedCollection")] public string RelatedCollection { get; private set; } @@ -73,8 +74,8 @@ string side Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; RelatedCollection = relatedCollection; RelationType = relationType; TwoWay = twoWay; @@ -108,8 +109,8 @@ string side { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "relatedCollection", RelatedCollection }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/AttributeString.cs b/Appwrite/Models/AttributeString.cs index c5d7383..95f328b 100644 --- a/Appwrite/Models/AttributeString.cs +++ b/Appwrite/Models/AttributeString.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class AttributeString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -61,10 +62,10 @@ public AttributeString( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Size = size; - @Default = xdefault; + Default = xdefault; Encrypt = encrypt; } @@ -90,10 +91,10 @@ public AttributeString( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "size", Size }, - { "default", @Default }, + { "default", Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/AttributeUrl.cs b/Appwrite/Models/AttributeUrl.cs index 5c5b805..196dc21 100644 --- a/Appwrite/Models/AttributeUrl.cs +++ b/Appwrite/Models/AttributeUrl.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class AttributeUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public AttributeUrl( string key, @@ -57,10 +58,10 @@ public AttributeUrl( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static AttributeUrl From(Dictionary map) => new AttributeUrl( @@ -84,10 +85,10 @@ public AttributeUrl( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/Bucket.cs b/Appwrite/Models/Bucket.cs index 54abfff..c7e22f7 100644 --- a/Appwrite/Models/Bucket.cs +++ b/Appwrite/Models/Bucket.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Bucket { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("fileSecurity")] public bool FileSecurity { get; private set; } @@ -34,7 +35,7 @@ public class Bucket public long MaximumFileSize { get; private set; } [JsonPropertyName("allowedFileExtensions")] - public List<string> AllowedFileExtensions { get; private set; } + public List AllowedFileExtensions { get; private set; } [JsonPropertyName("compression")] public string Compression { get; private set; } @@ -49,20 +50,20 @@ public Bucket( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, bool fileSecurity, string name, bool enabled, long maximumFileSize, - List<string> allowedFileExtensions, + List allowedFileExtensions, string compression, bool encryption, bool antivirus ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; FileSecurity = fileSecurity; Name = name; Enabled = enabled; @@ -90,10 +91,10 @@ bool antivirus public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "fileSecurity", FileSecurity }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/BucketList.cs b/Appwrite/Models/BucketList.cs index 664c98f..c6b08fb 100644 --- a/Appwrite/Models/BucketList.cs +++ b/Appwrite/Models/BucketList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class BucketList public long Total { get; private set; } [JsonPropertyName("buckets")] - public List<Bucket> Buckets { get; private set; } + public List Buckets { get; private set; } public BucketList( long total, - List<Bucket> buckets + List buckets ) { Total = total; Buckets = buckets; diff --git a/Appwrite/Models/Collection.cs b/Appwrite/Models/Collection.cs index f1ce8be..6b3420e 100644 --- a/Appwrite/Models/Collection.cs +++ b/Appwrite/Models/Collection.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Collection { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -34,27 +35,27 @@ public class Collection public bool DocumentSecurity { get; private set; } [JsonPropertyName("attributes")] - public List<object> Attributes { get; private set; } + public List Attributes { get; private set; } [JsonPropertyName("indexes")] - public List<Index> Indexes { get; private set; } + public List Indexes { get; private set; } public Collection( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string databaseId, string name, bool enabled, bool documentSecurity, - List<object> attributes, - List<Index> indexes + List attributes, + List indexes ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -78,10 +79,10 @@ public Collection( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/CollectionList.cs b/Appwrite/Models/CollectionList.cs index bd62a6f..861cc2c 100644 --- a/Appwrite/Models/CollectionList.cs +++ b/Appwrite/Models/CollectionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class CollectionList public long Total { get; private set; } [JsonPropertyName("collections")] - public List<Collection> Collections { get; private set; } + public List Collections { get; private set; } public CollectionList( long total, - List<Collection> collections + List collections ) { Total = total; Collections = collections; diff --git a/Appwrite/Models/ColumnBoolean.cs b/Appwrite/Models/ColumnBoolean.cs index 093250b..15afe58 100644 --- a/Appwrite/Models/ColumnBoolean.cs +++ b/Appwrite/Models/ColumnBoolean.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnBoolean public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public bool? @Default { get; private set; } + public bool? Default { get; private set; } public ColumnBoolean( string key, @@ -53,9 +54,9 @@ public ColumnBoolean( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static ColumnBoolean From(Dictionary map) => new ColumnBoolean( @@ -78,9 +79,9 @@ public ColumnBoolean( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnDatetime.cs b/Appwrite/Models/ColumnDatetime.cs index 92f3276..e1b2ba8 100644 --- a/Appwrite/Models/ColumnDatetime.cs +++ b/Appwrite/Models/ColumnDatetime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class ColumnDatetime public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnDatetime( string key, @@ -57,10 +58,10 @@ public ColumnDatetime( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnDatetime From(Dictionary map) => new ColumnDatetime( @@ -84,10 +85,10 @@ public ColumnDatetime( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnEmail.cs b/Appwrite/Models/ColumnEmail.cs index 55e6dc1..6d3e657 100644 --- a/Appwrite/Models/ColumnEmail.cs +++ b/Appwrite/Models/ColumnEmail.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class ColumnEmail public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnEmail( string key, @@ -57,10 +58,10 @@ public ColumnEmail( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnEmail From(Dictionary map) => new ColumnEmail( @@ -84,10 +85,10 @@ public ColumnEmail( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnEnum.cs b/Appwrite/Models/ColumnEnum.cs index 2717af9..c804691 100644 --- a/Appwrite/Models/ColumnEnum.cs +++ b/Appwrite/Models/ColumnEnum.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,19 +29,19 @@ public class ColumnEnum public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("elements")] - public List<string> Elements { get; private set; } + public List Elements { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnEnum( string key, @@ -51,7 +52,7 @@ public ColumnEnum( bool? array, string createdAt, string updatedAt, - List<string> elements, + List elements, string format, string? xdefault ) { @@ -61,11 +62,11 @@ public ColumnEnum( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Elements = elements; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnEnum From(Dictionary map) => new ColumnEnum( @@ -90,11 +91,11 @@ public ColumnEnum( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "elements", Elements }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnFloat.cs b/Appwrite/Models/ColumnFloat.cs index a51021b..f9cef29 100644 --- a/Appwrite/Models/ColumnFloat.cs +++ b/Appwrite/Models/ColumnFloat.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnFloat public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public double? Min { get; private set; } @@ -40,7 +41,7 @@ public class ColumnFloat public double? Max { get; private set; } [JsonPropertyName("default")] - public double? @Default { get; private set; } + public double? Default { get; private set; } public ColumnFloat( string key, @@ -61,11 +62,11 @@ public ColumnFloat( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static ColumnFloat From(Dictionary map) => new ColumnFloat( @@ -90,11 +91,11 @@ public ColumnFloat( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnIndex.cs b/Appwrite/Models/ColumnIndex.cs index f5dc63e..9ce756a 100644 --- a/Appwrite/Models/ColumnIndex.cs +++ b/Appwrite/Models/ColumnIndex.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class ColumnIndex { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -31,13 +32,13 @@ public class ColumnIndex public string Error { get; private set; } [JsonPropertyName("columns")] - public List<string> Columns { get; private set; } + public List Columns { get; private set; } [JsonPropertyName("lengths")] - public List<long> Lengths { get; private set; } + public List Lengths { get; private set; } [JsonPropertyName("orders")] - public List<string>? Orders { get; private set; } + public List? Orders { get; private set; } public ColumnIndex( string id, @@ -47,13 +48,13 @@ public ColumnIndex( string type, string status, string error, - List<string> columns, - List<long> lengths, - List<string>? orders + List columns, + List lengths, + List? orders ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -78,9 +79,9 @@ public ColumnIndex( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "key", Key }, { "type", Type }, { "status", Status }, diff --git a/Appwrite/Models/ColumnIndexList.cs b/Appwrite/Models/ColumnIndexList.cs index 49b13da..b43c7c3 100644 --- a/Appwrite/Models/ColumnIndexList.cs +++ b/Appwrite/Models/ColumnIndexList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ColumnIndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List<ColumnIndex> Indexes { get; private set; } + public List Indexes { get; private set; } public ColumnIndexList( long total, - List<ColumnIndex> indexes + List indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/ColumnInteger.cs b/Appwrite/Models/ColumnInteger.cs index 137f2bb..427935e 100644 --- a/Appwrite/Models/ColumnInteger.cs +++ b/Appwrite/Models/ColumnInteger.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnInteger public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("min")] public long? Min { get; private set; } @@ -40,7 +41,7 @@ public class ColumnInteger public long? Max { get; private set; } [JsonPropertyName("default")] - public long? @Default { get; private set; } + public long? Default { get; private set; } public ColumnInteger( string key, @@ -61,11 +62,11 @@ public ColumnInteger( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Min = min; Max = max; - @Default = xdefault; + Default = xdefault; } public static ColumnInteger From(Dictionary map) => new ColumnInteger( @@ -90,11 +91,11 @@ public ColumnInteger( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "min", Min }, { "max", Max }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnIp.cs b/Appwrite/Models/ColumnIp.cs index 3dcd00b..e2aba30 100644 --- a/Appwrite/Models/ColumnIp.cs +++ b/Appwrite/Models/ColumnIp.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class ColumnIp public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnIp( string key, @@ -57,10 +58,10 @@ public ColumnIp( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnIp From(Dictionary map) => new ColumnIp( @@ -84,10 +85,10 @@ public ColumnIp( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnLine.cs b/Appwrite/Models/ColumnLine.cs index ce2fbca..1f2761b 100644 --- a/Appwrite/Models/ColumnLine.cs +++ b/Appwrite/Models/ColumnLine.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnLine public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? Default { get; private set; } public ColumnLine( string key, @@ -45,7 +46,7 @@ public ColumnLine( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,9 +54,9 @@ public ColumnLine( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static ColumnLine From(Dictionary map) => new ColumnLine( @@ -78,9 +79,9 @@ public ColumnLine( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnList.cs b/Appwrite/Models/ColumnList.cs index a871335..d033168 100644 --- a/Appwrite/Models/ColumnList.cs +++ b/Appwrite/Models/ColumnList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ColumnList public long Total { get; private set; } [JsonPropertyName("columns")] - public List<object> Columns { get; private set; } + public List Columns { get; private set; } public ColumnList( long total, - List<object> columns + List columns ) { Total = total; Columns = columns; diff --git a/Appwrite/Models/ColumnPoint.cs b/Appwrite/Models/ColumnPoint.cs index 0776208..ca51442 100644 --- a/Appwrite/Models/ColumnPoint.cs +++ b/Appwrite/Models/ColumnPoint.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnPoint public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? Default { get; private set; } public ColumnPoint( string key, @@ -45,7 +46,7 @@ public ColumnPoint( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,9 +54,9 @@ public ColumnPoint( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static ColumnPoint From(Dictionary map) => new ColumnPoint( @@ -78,9 +79,9 @@ public ColumnPoint( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnPolygon.cs b/Appwrite/Models/ColumnPolygon.cs index 30488f7..81f9969 100644 --- a/Appwrite/Models/ColumnPolygon.cs +++ b/Appwrite/Models/ColumnPolygon.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,13 +29,13 @@ public class ColumnPolygon public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("default")] - public List<object>? @Default { get; private set; } + public List? Default { get; private set; } public ColumnPolygon( string key, @@ -45,7 +46,7 @@ public ColumnPolygon( bool? array, string createdAt, string updatedAt, - List<object>? xdefault + List? xdefault ) { Key = key; Type = type; @@ -53,9 +54,9 @@ public ColumnPolygon( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; - @Default = xdefault; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Default = xdefault; } public static ColumnPolygon From(Dictionary map) => new ColumnPolygon( @@ -78,9 +79,9 @@ public ColumnPolygon( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "default", @Default } + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "default", Default } }; } } diff --git a/Appwrite/Models/ColumnRelationship.cs b/Appwrite/Models/ColumnRelationship.cs index f452e1b..2d0f609 100644 --- a/Appwrite/Models/ColumnRelationship.cs +++ b/Appwrite/Models/ColumnRelationship.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,10 +29,10 @@ public class ColumnRelationship public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("relatedTable")] public string RelatedTable { get; private set; } @@ -73,8 +74,8 @@ string side Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; RelatedTable = relatedTable; RelationType = relationType; TwoWay = twoWay; @@ -108,8 +109,8 @@ string side { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "relatedTable", RelatedTable }, { "relationType", RelationType }, { "twoWay", TwoWay }, diff --git a/Appwrite/Models/ColumnString.cs b/Appwrite/Models/ColumnString.cs index 8191609..64853cc 100644 --- a/Appwrite/Models/ColumnString.cs +++ b/Appwrite/Models/ColumnString.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class ColumnString public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("size")] public long Size { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } [JsonPropertyName("encrypt")] public bool? Encrypt { get; private set; } @@ -61,10 +62,10 @@ public ColumnString( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Size = size; - @Default = xdefault; + Default = xdefault; Encrypt = encrypt; } @@ -90,10 +91,10 @@ public ColumnString( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "size", Size }, - { "default", @Default }, + { "default", Default }, { "encrypt", Encrypt } }; } diff --git a/Appwrite/Models/ColumnUrl.cs b/Appwrite/Models/ColumnUrl.cs index 1ce0587..a95b170 100644 --- a/Appwrite/Models/ColumnUrl.cs +++ b/Appwrite/Models/ColumnUrl.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -28,16 +29,16 @@ public class ColumnUrl public bool? Array { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("format")] public string Format { get; private set; } [JsonPropertyName("default")] - public string? @Default { get; private set; } + public string? Default { get; private set; } public ColumnUrl( string key, @@ -57,10 +58,10 @@ public ColumnUrl( Error = error; Required = required; Array = array; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Format = format; - @Default = xdefault; + Default = xdefault; } public static ColumnUrl From(Dictionary map) => new ColumnUrl( @@ -84,10 +85,10 @@ public ColumnUrl( { "error", Error }, { "required", Required }, { "array", Array }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "format", Format }, - { "default", @Default } + { "default", Default } }; } } diff --git a/Appwrite/Models/Continent.cs b/Appwrite/Models/Continent.cs index da86ab9..dab9656 100644 --- a/Appwrite/Models/Continent.cs +++ b/Appwrite/Models/Continent.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/ContinentList.cs b/Appwrite/Models/ContinentList.cs index e7c2b56..31e9d10 100644 --- a/Appwrite/Models/ContinentList.cs +++ b/Appwrite/Models/ContinentList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ContinentList public long Total { get; private set; } [JsonPropertyName("continents")] - public List<Continent> Continents { get; private set; } + public List Continents { get; private set; } public ContinentList( long total, - List<Continent> continents + List continents ) { Total = total; Continents = continents; diff --git a/Appwrite/Models/Country.cs b/Appwrite/Models/Country.cs index dafdcd1..ad4d0b7 100644 --- a/Appwrite/Models/Country.cs +++ b/Appwrite/Models/Country.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/CountryList.cs b/Appwrite/Models/CountryList.cs index 0c02fef..3e8147b 100644 --- a/Appwrite/Models/CountryList.cs +++ b/Appwrite/Models/CountryList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class CountryList public long Total { get; private set; } [JsonPropertyName("countries")] - public List<Country> Countries { get; private set; } + public List Countries { get; private set; } public CountryList( long total, - List<Country> countries + List countries ) { Total = total; Countries = countries; diff --git a/Appwrite/Models/Currency.cs b/Appwrite/Models/Currency.cs index 4bca5ba..492ff32 100644 --- a/Appwrite/Models/Currency.cs +++ b/Appwrite/Models/Currency.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/CurrencyList.cs b/Appwrite/Models/CurrencyList.cs index 10e06f4..2e92ffa 100644 --- a/Appwrite/Models/CurrencyList.cs +++ b/Appwrite/Models/CurrencyList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class CurrencyList public long Total { get; private set; } [JsonPropertyName("currencies")] - public List<Currency> Currencies { get; private set; } + public List Currencies { get; private set; } public CurrencyList( long total, - List<Currency> currencies + List currencies ) { Total = total; Currencies = currencies; diff --git a/Appwrite/Models/Database.cs b/Appwrite/Models/Database.cs index 02d791a..ebd1ec4 100644 --- a/Appwrite/Models/Database.cs +++ b/Appwrite/Models/Database.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Database { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("enabled")] public bool Enabled { get; private set; } @@ -35,10 +36,10 @@ public Database( bool enabled, DatabaseType type ) { - id = id; + Id = id; Name = name; - createdAt = createdAt; - updatedAt = updatedAt; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Enabled = enabled; Type = type; } @@ -54,10 +55,10 @@ DatabaseType type public Dictionary ToMap() => new Dictionary() { - { "$id", id }, + { "$id", Id }, { "name", Name }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "enabled", Enabled }, { "type", Type.Value } }; diff --git a/Appwrite/Models/DatabaseList.cs b/Appwrite/Models/DatabaseList.cs index dc6aef2..e3d0941 100644 --- a/Appwrite/Models/DatabaseList.cs +++ b/Appwrite/Models/DatabaseList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class DatabaseList public long Total { get; private set; } [JsonPropertyName("databases")] - public List<Database> Databases { get; private set; } + public List Databases { get; private set; } public DatabaseList( long total, - List<Database> databases + List databases ) { Total = total; Databases = databases; diff --git a/Appwrite/Models/Deployment.cs b/Appwrite/Models/Deployment.cs index 411fea2..7663cf1 100644 --- a/Appwrite/Models/Deployment.cs +++ b/Appwrite/Models/Deployment.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Deployment { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("type")] public string Type { get; private set; } @@ -119,9 +120,9 @@ public Deployment( string providerBranch, string providerBranchUrl ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Type = type; ResourceId = resourceId; ResourceType = resourceType; @@ -180,9 +181,9 @@ string providerBranchUrl public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "type", Type }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, diff --git a/Appwrite/Models/DeploymentList.cs b/Appwrite/Models/DeploymentList.cs index 163c4b5..c48b9f0 100644 --- a/Appwrite/Models/DeploymentList.cs +++ b/Appwrite/Models/DeploymentList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class DeploymentList public long Total { get; private set; } [JsonPropertyName("deployments")] - public List<Deployment> Deployments { get; private set; } + public List Deployments { get; private set; } public DeploymentList( long total, - List<Deployment> deployments + List deployments ) { Total = total; Deployments = deployments; diff --git a/Appwrite/Models/Document.cs b/Appwrite/Models/Document.cs index cce7a5f..af58951 100644 --- a/Appwrite/Models/Document.cs +++ b/Appwrite/Models/Document.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,25 +11,25 @@ namespace Appwrite.Models public class Document { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$sequence")] - public long sequence { get; private set; } + public long Sequence { get; private set; } [JsonPropertyName("$collectionId")] - public string collectionId { get; private set; } + public string CollectionId { get; private set; } [JsonPropertyName("$databaseId")] - public string databaseId { get; private set; } + public string DatabaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } public Dictionary Data { get; private set; } @@ -39,16 +40,16 @@ public Document( string databaseId, string createdAt, string updatedAt, - List<string> permissions, + List permissions, Dictionary data ) { - id = id; - sequence = sequence; - collectionId = collectionId; - databaseId = databaseId; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + Sequence = sequence; + CollectionId = collectionId; + DatabaseId = databaseId; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; Data = data; } @@ -65,13 +66,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$sequence", sequence }, - { "$collectionId", collectionId }, - { "$databaseId", databaseId }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$sequence", Sequence }, + { "$collectionId", CollectionId }, + { "$databaseId", DatabaseId }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "data", Data } }; diff --git a/Appwrite/Models/DocumentList.cs b/Appwrite/Models/DocumentList.cs index 6d11012..c481a64 100644 --- a/Appwrite/Models/DocumentList.cs +++ b/Appwrite/Models/DocumentList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class DocumentList public long Total { get; private set; } [JsonPropertyName("documents")] - public List<Document> Documents { get; private set; } + public List Documents { get; private set; } public DocumentList( long total, - List<Document> documents + List documents ) { Total = total; Documents = documents; diff --git a/Appwrite/Models/Execution.cs b/Appwrite/Models/Execution.cs index af038e9..17898c9 100644 --- a/Appwrite/Models/Execution.cs +++ b/Appwrite/Models/Execution.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Execution { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("functionId")] public string FunctionId { get; private set; } @@ -40,7 +41,7 @@ public class Execution public string RequestPath { get; private set; } [JsonPropertyName("requestHeaders")] - public List<Headers> RequestHeaders { get; private set; } + public List RequestHeaders { get; private set; } [JsonPropertyName("responseStatusCode")] public long ResponseStatusCode { get; private set; } @@ -49,7 +50,7 @@ public class Execution public string ResponseBody { get; private set; } [JsonPropertyName("responseHeaders")] - public List<Headers> ResponseHeaders { get; private set; } + public List ResponseHeaders { get; private set; } [JsonPropertyName("logs")] public string Logs { get; private set; } @@ -67,26 +68,26 @@ public Execution( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string functionId, string deploymentId, ExecutionTrigger trigger, ExecutionStatus status, string requestMethod, string requestPath, - List<Headers> requestHeaders, + List requestHeaders, long responseStatusCode, string responseBody, - List<Headers> responseHeaders, + List responseHeaders, string logs, string errors, double duration, string? scheduledAt ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; FunctionId = functionId; DeploymentId = deploymentId; Trigger = trigger; @@ -126,10 +127,10 @@ public Execution( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "functionId", FunctionId }, { "deploymentId", DeploymentId }, { "trigger", Trigger.Value }, diff --git a/Appwrite/Models/ExecutionList.cs b/Appwrite/Models/ExecutionList.cs index f2808bc..da5c64d 100644 --- a/Appwrite/Models/ExecutionList.cs +++ b/Appwrite/Models/ExecutionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ExecutionList public long Total { get; private set; } [JsonPropertyName("executions")] - public List<Execution> Executions { get; private set; } + public List Executions { get; private set; } public ExecutionList( long total, - List<Execution> executions + List executions ) { Total = total; Executions = executions; diff --git a/Appwrite/Models/File.cs b/Appwrite/Models/File.cs index 77acb10..8d0d2e1 100644 --- a/Appwrite/Models/File.cs +++ b/Appwrite/Models/File.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,19 +11,19 @@ namespace Appwrite.Models public class File { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("bucketId")] public string BucketId { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,7 +48,7 @@ public File( string bucketId, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string name, string signature, string mimeType, @@ -55,11 +56,11 @@ public File( long chunksTotal, long chunksUploaded ) { - id = id; + Id = id; BucketId = bucketId; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; Name = name; Signature = signature; MimeType = mimeType; @@ -84,11 +85,11 @@ long chunksUploaded public Dictionary ToMap() => new Dictionary() { - { "$id", id }, + { "$id", Id }, { "bucketId", BucketId }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "name", Name }, { "signature", Signature }, { "mimeType", MimeType }, diff --git a/Appwrite/Models/FileList.cs b/Appwrite/Models/FileList.cs index 1f3cda3..c1d39a2 100644 --- a/Appwrite/Models/FileList.cs +++ b/Appwrite/Models/FileList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class FileList public long Total { get; private set; } [JsonPropertyName("files")] - public List<File> Files { get; private set; } + public List Files { get; private set; } public FileList( long total, - List<File> files + List files ) { Total = total; Files = files; diff --git a/Appwrite/Models/Framework.cs b/Appwrite/Models/Framework.cs index 9930bc6..551df2e 100644 --- a/Appwrite/Models/Framework.cs +++ b/Appwrite/Models/Framework.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -19,17 +20,17 @@ public class Framework public string BuildRuntime { get; private set; } [JsonPropertyName("runtimes")] - public List<string> Runtimes { get; private set; } + public List Runtimes { get; private set; } [JsonPropertyName("adapters")] - public List<FrameworkAdapter> Adapters { get; private set; } + public List Adapters { get; private set; } public Framework( string key, string name, string buildRuntime, - List<string> runtimes, - List<FrameworkAdapter> adapters + List runtimes, + List adapters ) { Key = key; Name = name; diff --git a/Appwrite/Models/FrameworkAdapter.cs b/Appwrite/Models/FrameworkAdapter.cs index 851c61f..5e88b2b 100644 --- a/Appwrite/Models/FrameworkAdapter.cs +++ b/Appwrite/Models/FrameworkAdapter.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/FrameworkList.cs b/Appwrite/Models/FrameworkList.cs index 31a216e..8d9cb26 100644 --- a/Appwrite/Models/FrameworkList.cs +++ b/Appwrite/Models/FrameworkList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class FrameworkList public long Total { get; private set; } [JsonPropertyName("frameworks")] - public List<Framework> Frameworks { get; private set; } + public List Frameworks { get; private set; } public FrameworkList( long total, - List<Framework> frameworks + List frameworks ) { Total = total; Frameworks = frameworks; diff --git a/Appwrite/Models/Function.cs b/Appwrite/Models/Function.cs index 50171a8..f5b64ff 100644 --- a/Appwrite/Models/Function.cs +++ b/Appwrite/Models/Function.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Function { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("execute")] - public List<string> Execute { get; private set; } + public List Execute { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -52,13 +53,13 @@ public class Function public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("scopes")] - public List<string> Scopes { get; private set; } + public List Scopes { get; private set; } [JsonPropertyName("vars")] - public List<Variable> Vars { get; private set; } + public List Vars { get; private set; } [JsonPropertyName("events")] - public List<string> Events { get; private set; } + public List Events { get; private set; } [JsonPropertyName("schedule")] public string Schedule { get; private set; } @@ -97,7 +98,7 @@ public Function( string id, string createdAt, string updatedAt, - List<string> execute, + List execute, string name, bool enabled, bool live, @@ -108,9 +109,9 @@ public Function( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List<string> scopes, - List<Variable> vars, - List<string> events, + List scopes, + List vars, + List events, string schedule, long timeout, string entrypoint, @@ -123,9 +124,9 @@ public Function( bool providerSilentMode, string specification ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Execute = execute; Name = name; Enabled = enabled; @@ -186,9 +187,9 @@ string specification public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "execute", Execute }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/FunctionList.cs b/Appwrite/Models/FunctionList.cs index 47408cd..eecdd23 100644 --- a/Appwrite/Models/FunctionList.cs +++ b/Appwrite/Models/FunctionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class FunctionList public long Total { get; private set; } [JsonPropertyName("functions")] - public List<Function> Functions { get; private set; } + public List Functions { get; private set; } public FunctionList( long total, - List<Function> functions + List functions ) { Total = total; Functions = functions; diff --git a/Appwrite/Models/Headers.cs b/Appwrite/Models/Headers.cs index fef3167..951c0d2 100644 --- a/Appwrite/Models/Headers.cs +++ b/Appwrite/Models/Headers.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,14 +14,14 @@ public class Headers public string Name { get; private set; } [JsonPropertyName("value")] - public string @Value { get; private set; } + public string Value { get; private set; } public Headers( string name, string xvalue ) { Name = name; - @Value = xvalue; + Value = xvalue; } public static Headers From(Dictionary map) => new Headers( @@ -31,7 +32,7 @@ string xvalue public Dictionary ToMap() => new Dictionary() { { "name", Name }, - { "value", @Value } + { "value", Value } }; } } diff --git a/Appwrite/Models/HealthAntivirus.cs b/Appwrite/Models/HealthAntivirus.cs index bf6a2e6..2bb3b1d 100644 --- a/Appwrite/Models/HealthAntivirus.cs +++ b/Appwrite/Models/HealthAntivirus.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthCertificate.cs b/Appwrite/Models/HealthCertificate.cs index 593c71f..4d65f5a 100644 --- a/Appwrite/Models/HealthCertificate.cs +++ b/Appwrite/Models/HealthCertificate.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthQueue.cs b/Appwrite/Models/HealthQueue.cs index 846c566..7d34577 100644 --- a/Appwrite/Models/HealthQueue.cs +++ b/Appwrite/Models/HealthQueue.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthStatus.cs b/Appwrite/Models/HealthStatus.cs index 357ca3e..fc80de2 100644 --- a/Appwrite/Models/HealthStatus.cs +++ b/Appwrite/Models/HealthStatus.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/HealthTime.cs b/Appwrite/Models/HealthTime.cs index c4136dd..e55b7ba 100644 --- a/Appwrite/Models/HealthTime.cs +++ b/Appwrite/Models/HealthTime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Identity.cs b/Appwrite/Models/Identity.cs index a9ec2bb..240b85f 100644 --- a/Appwrite/Models/Identity.cs +++ b/Appwrite/Models/Identity.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Identity { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -51,9 +52,9 @@ public Identity( string providerAccessTokenExpiry, string providerRefreshToken ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; UserId = userId; Provider = provider; ProviderUid = providerUid; @@ -78,9 +79,9 @@ string providerRefreshToken public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "userId", UserId }, { "provider", Provider }, { "providerUid", ProviderUid }, diff --git a/Appwrite/Models/IdentityList.cs b/Appwrite/Models/IdentityList.cs index e2a6452..d7c0864 100644 --- a/Appwrite/Models/IdentityList.cs +++ b/Appwrite/Models/IdentityList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class IdentityList public long Total { get; private set; } [JsonPropertyName("identities")] - public List<Identity> Identities { get; private set; } + public List Identities { get; private set; } public IdentityList( long total, - List<Identity> identities + List identities ) { Total = total; Identities = identities; diff --git a/Appwrite/Models/Index.cs b/Appwrite/Models/Index.cs index fd920ed..8f4ff78 100644 --- a/Appwrite/Models/Index.cs +++ b/Appwrite/Models/Index.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Index { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -31,13 +32,13 @@ public class Index public string Error { get; private set; } [JsonPropertyName("attributes")] - public List<string> Attributes { get; private set; } + public List Attributes { get; private set; } [JsonPropertyName("lengths")] - public List<long> Lengths { get; private set; } + public List Lengths { get; private set; } [JsonPropertyName("orders")] - public List<string>? Orders { get; private set; } + public List? Orders { get; private set; } public Index( string id, @@ -47,13 +48,13 @@ public Index( string type, IndexStatus status, string error, - List<string> attributes, - List<long> lengths, - List<string>? orders + List attributes, + List lengths, + List? orders ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Key = key; Type = type; Status = status; @@ -78,9 +79,9 @@ public Index( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "key", Key }, { "type", Type }, { "status", Status.Value }, diff --git a/Appwrite/Models/IndexList.cs b/Appwrite/Models/IndexList.cs index a603cbd..5b1989e 100644 --- a/Appwrite/Models/IndexList.cs +++ b/Appwrite/Models/IndexList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class IndexList public long Total { get; private set; } [JsonPropertyName("indexes")] - public List<Index> Indexes { get; private set; } + public List Indexes { get; private set; } public IndexList( long total, - List<Index> indexes + List indexes ) { Total = total; Indexes = indexes; diff --git a/Appwrite/Models/JWT.cs b/Appwrite/Models/JWT.cs index f2e8fc9..a25b7de 100644 --- a/Appwrite/Models/JWT.cs +++ b/Appwrite/Models/JWT.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Language.cs b/Appwrite/Models/Language.cs index a28b170..124f01c 100644 --- a/Appwrite/Models/Language.cs +++ b/Appwrite/Models/Language.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LanguageList.cs b/Appwrite/Models/LanguageList.cs index e554fd9..edc4525 100644 --- a/Appwrite/Models/LanguageList.cs +++ b/Appwrite/Models/LanguageList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class LanguageList public long Total { get; private set; } [JsonPropertyName("languages")] - public List<Language> Languages { get; private set; } + public List Languages { get; private set; } public LanguageList( long total, - List<Language> languages + List languages ) { Total = total; Languages = languages; diff --git a/Appwrite/Models/Locale.cs b/Appwrite/Models/Locale.cs index fd3213e..58cad59 100644 --- a/Appwrite/Models/Locale.cs +++ b/Appwrite/Models/Locale.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LocaleCode.cs b/Appwrite/Models/LocaleCode.cs index da5a114..a16017b 100644 --- a/Appwrite/Models/LocaleCode.cs +++ b/Appwrite/Models/LocaleCode.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/LocaleCodeList.cs b/Appwrite/Models/LocaleCodeList.cs index f0f61a0..4063057 100644 --- a/Appwrite/Models/LocaleCodeList.cs +++ b/Appwrite/Models/LocaleCodeList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class LocaleCodeList public long Total { get; private set; } [JsonPropertyName("localeCodes")] - public List<LocaleCode> LocaleCodes { get; private set; } + public List LocaleCodes { get; private set; } public LocaleCodeList( long total, - List<LocaleCode> localeCodes + List localeCodes ) { Total = total; LocaleCodes = localeCodes; diff --git a/Appwrite/Models/Log.cs b/Appwrite/Models/Log.cs index f85db25..bbf6878 100644 --- a/Appwrite/Models/Log.cs +++ b/Appwrite/Models/Log.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,7 +11,7 @@ namespace Appwrite.Models public class Log { [JsonPropertyName("event")] - public string @Event { get; private set; } + public string Event { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -95,7 +96,7 @@ public Log( string countryCode, string countryName ) { - @Event = xevent; + Event = xevent; UserId = userId; UserEmail = userEmail; UserName = userName; @@ -144,7 +145,7 @@ string countryName public Dictionary ToMap() => new Dictionary() { - { "event", @Event }, + { "event", Event }, { "userId", UserId }, { "userEmail", UserEmail }, { "userName", UserName }, diff --git a/Appwrite/Models/LogList.cs b/Appwrite/Models/LogList.cs index 5dc5581..a72414a 100644 --- a/Appwrite/Models/LogList.cs +++ b/Appwrite/Models/LogList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class LogList public long Total { get; private set; } [JsonPropertyName("logs")] - public List<Log> Logs { get; private set; } + public List Logs { get; private set; } public LogList( long total, - List<Log> logs + List logs ) { Total = total; Logs = logs; diff --git a/Appwrite/Models/Membership.cs b/Appwrite/Models/Membership.cs index 3c11584..8bb40c1 100644 --- a/Appwrite/Models/Membership.cs +++ b/Appwrite/Models/Membership.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Membership { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -46,7 +47,7 @@ public class Membership public bool Mfa { get; private set; } [JsonPropertyName("roles")] - public List<string> Roles { get; private set; } + public List Roles { get; private set; } public Membership( string id, @@ -61,11 +62,11 @@ public Membership( string joined, bool confirm, bool mfa, - List<string> roles + List roles ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; UserId = userId; UserName = userName; UserEmail = userEmail; @@ -96,9 +97,9 @@ public Membership( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "userId", UserId }, { "userName", UserName }, { "userEmail", UserEmail }, diff --git a/Appwrite/Models/MembershipList.cs b/Appwrite/Models/MembershipList.cs index 9b74a10..dd7bcc0 100644 --- a/Appwrite/Models/MembershipList.cs +++ b/Appwrite/Models/MembershipList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class MembershipList public long Total { get; private set; } [JsonPropertyName("memberships")] - public List<Membership> Memberships { get; private set; } + public List Memberships { get; private set; } public MembershipList( long total, - List<Membership> memberships + List memberships ) { Total = total; Memberships = memberships; diff --git a/Appwrite/Models/Message.cs b/Appwrite/Models/Message.cs index a9188e5..793ee9c 100644 --- a/Appwrite/Models/Message.cs +++ b/Appwrite/Models/Message.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,25 +11,25 @@ namespace Appwrite.Models public class Message { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("providerType")] public string ProviderType { get; private set; } [JsonPropertyName("topics")] - public List<string> Topics { get; private set; } + public List Topics { get; private set; } [JsonPropertyName("users")] - public List<string> Users { get; private set; } + public List Users { get; private set; } [JsonPropertyName("targets")] - public List<string> Targets { get; private set; } + public List Targets { get; private set; } [JsonPropertyName("scheduledAt")] public string? ScheduledAt { get; private set; } @@ -37,7 +38,7 @@ public class Message public string? DeliveredAt { get; private set; } [JsonPropertyName("deliveryErrors")] - public List<string>? DeliveryErrors { get; private set; } + public List? DeliveryErrors { get; private set; } [JsonPropertyName("deliveredTotal")] public long DeliveredTotal { get; private set; } @@ -53,19 +54,19 @@ public Message( string createdAt, string updatedAt, string providerType, - List<string> topics, - List<string> users, - List<string> targets, + List topics, + List users, + List targets, string? scheduledAt, string? deliveredAt, - List<string>? deliveryErrors, + List? deliveryErrors, long deliveredTotal, object data, MessageStatus status ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; ProviderType = providerType; Topics = topics; Users = users; @@ -96,9 +97,9 @@ MessageStatus status public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "providerType", ProviderType }, { "topics", Topics }, { "users", Users }, diff --git a/Appwrite/Models/MessageList.cs b/Appwrite/Models/MessageList.cs index 9fdaf44..b41a2df 100644 --- a/Appwrite/Models/MessageList.cs +++ b/Appwrite/Models/MessageList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class MessageList public long Total { get; private set; } [JsonPropertyName("messages")] - public List<Message> Messages { get; private set; } + public List Messages { get; private set; } public MessageList( long total, - List<Message> messages + List messages ) { Total = total; Messages = messages; diff --git a/Appwrite/Models/MfaChallenge.cs b/Appwrite/Models/MfaChallenge.cs index 632bac6..d5fcc27 100644 --- a/Appwrite/Models/MfaChallenge.cs +++ b/Appwrite/Models/MfaChallenge.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class MfaChallenge { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -27,8 +28,8 @@ public MfaChallenge( string userId, string expire ) { - id = id; - createdAt = createdAt; + Id = id; + CreatedAt = createdAt; UserId = userId; Expire = expire; } @@ -42,8 +43,8 @@ string expire public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, { "userId", UserId }, { "expire", Expire } }; diff --git a/Appwrite/Models/MfaFactors.cs b/Appwrite/Models/MfaFactors.cs index 8019a3e..f0cc908 100644 --- a/Appwrite/Models/MfaFactors.cs +++ b/Appwrite/Models/MfaFactors.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/MfaRecoveryCodes.cs b/Appwrite/Models/MfaRecoveryCodes.cs index befbfd9..6855f35 100644 --- a/Appwrite/Models/MfaRecoveryCodes.cs +++ b/Appwrite/Models/MfaRecoveryCodes.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class MfaRecoveryCodes { [JsonPropertyName("recoveryCodes")] - public List<string> RecoveryCodes { get; private set; } + public List RecoveryCodes { get; private set; } public MfaRecoveryCodes( - List<string> recoveryCodes + List recoveryCodes ) { RecoveryCodes = recoveryCodes; } diff --git a/Appwrite/Models/MfaType.cs b/Appwrite/Models/MfaType.cs index 88de025..8e008f8 100644 --- a/Appwrite/Models/MfaType.cs +++ b/Appwrite/Models/MfaType.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Phone.cs b/Appwrite/Models/Phone.cs index 911f66f..a820f07 100644 --- a/Appwrite/Models/Phone.cs +++ b/Appwrite/Models/Phone.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/PhoneList.cs b/Appwrite/Models/PhoneList.cs index 16d1493..26c7f6d 100644 --- a/Appwrite/Models/PhoneList.cs +++ b/Appwrite/Models/PhoneList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class PhoneList public long Total { get; private set; } [JsonPropertyName("phones")] - public List<Phone> Phones { get; private set; } + public List Phones { get; private set; } public PhoneList( long total, - List<Phone> phones + List phones ) { Total = total; Phones = phones; diff --git a/Appwrite/Models/Preferences.cs b/Appwrite/Models/Preferences.cs index 32de5e3..0f97086 100644 --- a/Appwrite/Models/Preferences.cs +++ b/Appwrite/Models/Preferences.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/Provider.cs b/Appwrite/Models/Provider.cs index 185607a..430277c 100644 --- a/Appwrite/Models/Provider.cs +++ b/Appwrite/Models/Provider.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Provider { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,9 +48,9 @@ public Provider( object credentials, object? options ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; MessagingProvider = provider; Enabled = enabled; @@ -72,9 +73,9 @@ public Provider( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "provider", MessagingProvider }, { "enabled", Enabled }, diff --git a/Appwrite/Models/ProviderList.cs b/Appwrite/Models/ProviderList.cs index 249a480..783d903 100644 --- a/Appwrite/Models/ProviderList.cs +++ b/Appwrite/Models/ProviderList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ProviderList public long Total { get; private set; } [JsonPropertyName("providers")] - public List<Provider> Providers { get; private set; } + public List Providers { get; private set; } public ProviderList( long total, - List<Provider> providers + List providers ) { Total = total; Providers = providers; diff --git a/Appwrite/Models/ResourceToken.cs b/Appwrite/Models/ResourceToken.cs index 1e843de..b2e5635 100644 --- a/Appwrite/Models/ResourceToken.cs +++ b/Appwrite/Models/ResourceToken.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class ResourceToken { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("resourceId")] public string ResourceId { get; private set; } @@ -39,8 +40,8 @@ public ResourceToken( string secret, string accessedAt ) { - id = id; - createdAt = createdAt; + Id = id; + CreatedAt = createdAt; ResourceId = resourceId; ResourceType = resourceType; Expire = expire; @@ -60,8 +61,8 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, { "resourceId", ResourceId }, { "resourceType", ResourceType }, { "expire", Expire }, diff --git a/Appwrite/Models/ResourceTokenList.cs b/Appwrite/Models/ResourceTokenList.cs index d3e04ee..8f0928f 100644 --- a/Appwrite/Models/ResourceTokenList.cs +++ b/Appwrite/Models/ResourceTokenList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class ResourceTokenList public long Total { get; private set; } [JsonPropertyName("tokens")] - public List<ResourceToken> Tokens { get; private set; } + public List Tokens { get; private set; } public ResourceTokenList( long total, - List<ResourceToken> tokens + List tokens ) { Total = total; Tokens = tokens; diff --git a/Appwrite/Models/Row.cs b/Appwrite/Models/Row.cs index dd635cb..d72ab9c 100644 --- a/Appwrite/Models/Row.cs +++ b/Appwrite/Models/Row.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,25 +11,25 @@ namespace Appwrite.Models public class Row { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$sequence")] - public long sequence { get; private set; } + public long Sequence { get; private set; } [JsonPropertyName("$tableId")] - public string tableId { get; private set; } + public string TableId { get; private set; } [JsonPropertyName("$databaseId")] - public string databaseId { get; private set; } + public string DatabaseId { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } public Dictionary Data { get; private set; } @@ -39,16 +40,16 @@ public Row( string databaseId, string createdAt, string updatedAt, - List<string> permissions, + List permissions, Dictionary data ) { - id = id; - sequence = sequence; - tableId = tableId; - databaseId = databaseId; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + Sequence = sequence; + TableId = tableId; + DatabaseId = databaseId; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; Data = data; } @@ -65,13 +66,13 @@ Dictionary data public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$sequence", sequence }, - { "$tableId", tableId }, - { "$databaseId", databaseId }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$sequence", Sequence }, + { "$tableId", TableId }, + { "$databaseId", DatabaseId }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "data", Data } }; diff --git a/Appwrite/Models/RowList.cs b/Appwrite/Models/RowList.cs index ee52902..210a5f1 100644 --- a/Appwrite/Models/RowList.cs +++ b/Appwrite/Models/RowList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class RowList public long Total { get; private set; } [JsonPropertyName("rows")] - public List<Row> Rows { get; private set; } + public List Rows { get; private set; } public RowList( long total, - List<Row> rows + List rows ) { Total = total; Rows = rows; diff --git a/Appwrite/Models/Runtime.cs b/Appwrite/Models/Runtime.cs index 4e5d740..5dcb3e2 100644 --- a/Appwrite/Models/Runtime.cs +++ b/Appwrite/Models/Runtime.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,7 +11,7 @@ namespace Appwrite.Models public class Runtime { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } @@ -22,7 +23,7 @@ public class Runtime public string Version { get; private set; } [JsonPropertyName("base")] - public string @Base { get; private set; } + public string Base { get; private set; } [JsonPropertyName("image")] public string Image { get; private set; } @@ -31,7 +32,7 @@ public class Runtime public string Logo { get; private set; } [JsonPropertyName("supports")] - public List<string> Supports { get; private set; } + public List Supports { get; private set; } public Runtime( string id, @@ -41,13 +42,13 @@ public Runtime( string xbase, string image, string logo, - List<string> supports + List supports ) { - id = id; + Id = id; Key = key; Name = name; Version = version; - @Base = xbase; + Base = xbase; Image = image; Logo = logo; Supports = supports; @@ -66,11 +67,11 @@ public Runtime( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, + { "$id", Id }, { "key", Key }, { "name", Name }, { "version", Version }, - { "base", @Base }, + { "base", Base }, { "image", Image }, { "logo", Logo }, { "supports", Supports } diff --git a/Appwrite/Models/RuntimeList.cs b/Appwrite/Models/RuntimeList.cs index 04d1a4a..c4c6b0e 100644 --- a/Appwrite/Models/RuntimeList.cs +++ b/Appwrite/Models/RuntimeList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class RuntimeList public long Total { get; private set; } [JsonPropertyName("runtimes")] - public List<Runtime> Runtimes { get; private set; } + public List Runtimes { get; private set; } public RuntimeList( long total, - List<Runtime> runtimes + List runtimes ) { Total = total; Runtimes = runtimes; diff --git a/Appwrite/Models/Session.cs b/Appwrite/Models/Session.cs index 0ec983c..a22bb62 100644 --- a/Appwrite/Models/Session.cs +++ b/Appwrite/Models/Session.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Session { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -88,7 +89,7 @@ public class Session public bool Current { get; private set; } [JsonPropertyName("factors")] - public List<string> Factors { get; private set; } + public List Factors { get; private set; } [JsonPropertyName("secret")] public string Secret { get; private set; } @@ -123,13 +124,13 @@ public Session( string countryCode, string countryName, bool current, - List<string> factors, + List factors, string secret, string mfaUpdatedAt ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; UserId = userId; Expire = expire; Provider = provider; @@ -192,9 +193,9 @@ string mfaUpdatedAt public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "userId", UserId }, { "expire", Expire }, { "provider", Provider }, diff --git a/Appwrite/Models/SessionList.cs b/Appwrite/Models/SessionList.cs index 891d815..685cead 100644 --- a/Appwrite/Models/SessionList.cs +++ b/Appwrite/Models/SessionList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SessionList public long Total { get; private set; } [JsonPropertyName("sessions")] - public List<Session> Sessions { get; private set; } + public List Sessions { get; private set; } public SessionList( long total, - List<Session> sessions + List sessions ) { Total = total; Sessions = sessions; diff --git a/Appwrite/Models/Site.cs b/Appwrite/Models/Site.cs index f00a3fc..70fb1ec 100644 --- a/Appwrite/Models/Site.cs +++ b/Appwrite/Models/Site.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Site { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -55,7 +56,7 @@ public class Site public string LatestDeploymentStatus { get; private set; } [JsonPropertyName("vars")] - public List<Variable> Vars { get; private set; } + public List Vars { get; private set; } [JsonPropertyName("timeout")] public long Timeout { get; private set; } @@ -112,7 +113,7 @@ public Site( string latestDeploymentId, string latestDeploymentCreatedAt, string latestDeploymentStatus, - List<Variable> vars, + List vars, long timeout, string installCommand, string buildCommand, @@ -127,9 +128,9 @@ public Site( string adapter, string fallbackFile ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; Enabled = enabled; Live = live; @@ -192,9 +193,9 @@ string fallbackFile public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "enabled", Enabled }, { "live", Live }, diff --git a/Appwrite/Models/SiteList.cs b/Appwrite/Models/SiteList.cs index bf80aed..2b8a361 100644 --- a/Appwrite/Models/SiteList.cs +++ b/Appwrite/Models/SiteList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SiteList public long Total { get; private set; } [JsonPropertyName("sites")] - public List<Site> Sites { get; private set; } + public List Sites { get; private set; } public SiteList( long total, - List<Site> sites + List sites ) { Total = total; Sites = sites; diff --git a/Appwrite/Models/Specification.cs b/Appwrite/Models/Specification.cs index 7177ac7..1334b3d 100644 --- a/Appwrite/Models/Specification.cs +++ b/Appwrite/Models/Specification.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; diff --git a/Appwrite/Models/SpecificationList.cs b/Appwrite/Models/SpecificationList.cs index 7b33251..82694bc 100644 --- a/Appwrite/Models/SpecificationList.cs +++ b/Appwrite/Models/SpecificationList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SpecificationList public long Total { get; private set; } [JsonPropertyName("specifications")] - public List<Specification> Specifications { get; private set; } + public List Specifications { get; private set; } public SpecificationList( long total, - List<Specification> specifications + List specifications ) { Total = total; Specifications = specifications; diff --git a/Appwrite/Models/Subscriber.cs b/Appwrite/Models/Subscriber.cs index 64462eb..0837bfc 100644 --- a/Appwrite/Models/Subscriber.cs +++ b/Appwrite/Models/Subscriber.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Subscriber { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("targetId")] public string TargetId { get; private set; } @@ -47,9 +48,9 @@ public Subscriber( string topicId, string providerType ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; TargetId = targetId; Target = target; UserId = userId; @@ -72,9 +73,9 @@ string providerType public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "targetId", TargetId }, { "target", Target.ToMap() }, { "userId", UserId }, diff --git a/Appwrite/Models/SubscriberList.cs b/Appwrite/Models/SubscriberList.cs index 9cebb0a..7de9083 100644 --- a/Appwrite/Models/SubscriberList.cs +++ b/Appwrite/Models/SubscriberList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class SubscriberList public long Total { get; private set; } [JsonPropertyName("subscribers")] - public List<Subscriber> Subscribers { get; private set; } + public List Subscribers { get; private set; } public SubscriberList( long total, - List<Subscriber> subscribers + List subscribers ) { Total = total; Subscribers = subscribers; diff --git a/Appwrite/Models/Table.cs b/Appwrite/Models/Table.cs index c35b559..c621543 100644 --- a/Appwrite/Models/Table.cs +++ b/Appwrite/Models/Table.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,16 +11,16 @@ namespace Appwrite.Models public class Table { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("$permissions")] - public List<string> permissions { get; private set; } + public List Permissions { get; private set; } [JsonPropertyName("databaseId")] public string DatabaseId { get; private set; } @@ -34,27 +35,27 @@ public class Table public bool RowSecurity { get; private set; } [JsonPropertyName("columns")] - public List<object> Columns { get; private set; } + public List Columns { get; private set; } [JsonPropertyName("indexes")] - public List<ColumnIndex> Indexes { get; private set; } + public List Indexes { get; private set; } public Table( string id, string createdAt, string updatedAt, - List<string> permissions, + List permissions, string databaseId, string name, bool enabled, bool rowSecurity, - List<object> columns, - List<ColumnIndex> indexes + List columns, + List indexes ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; - permissions = permissions; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; + Permissions = permissions; DatabaseId = databaseId; Name = name; Enabled = enabled; @@ -78,10 +79,10 @@ public Table( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, - { "$permissions", permissions }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, + { "$permissions", Permissions }, { "databaseId", DatabaseId }, { "name", Name }, { "enabled", Enabled }, diff --git a/Appwrite/Models/TableList.cs b/Appwrite/Models/TableList.cs index 2449594..e4251f1 100644 --- a/Appwrite/Models/TableList.cs +++ b/Appwrite/Models/TableList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TableList public long Total { get; private set; } [JsonPropertyName("tables")] - public List<Table> Tables { get; private set; } + public List
Tables { get; private set; } public TableList( long total, - List<Table> tables + List
tables ) { Total = total; Tables = tables; diff --git a/Appwrite/Models/Target.cs b/Appwrite/Models/Target.cs index 12698e1..b19d882 100644 --- a/Appwrite/Models/Target.cs +++ b/Appwrite/Models/Target.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Target { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -47,9 +48,9 @@ public Target( string identifier, bool expired ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; UserId = userId; ProviderId = providerId; @@ -72,9 +73,9 @@ bool expired public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "userId", UserId }, { "providerId", ProviderId }, diff --git a/Appwrite/Models/TargetList.cs b/Appwrite/Models/TargetList.cs index e88076f..ceef206 100644 --- a/Appwrite/Models/TargetList.cs +++ b/Appwrite/Models/TargetList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TargetList public long Total { get; private set; } [JsonPropertyName("targets")] - public List<Target> Targets { get; private set; } + public List Targets { get; private set; } public TargetList( long total, - List<Target> targets + List targets ) { Total = total; Targets = targets; diff --git a/Appwrite/Models/Team.cs b/Appwrite/Models/Team.cs index 5b471dd..5e68469 100644 --- a/Appwrite/Models/Team.cs +++ b/Appwrite/Models/Team.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Team { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -35,9 +36,9 @@ public Team( long total, Preferences prefs ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; Total = total; Prefs = prefs; @@ -54,9 +55,9 @@ Preferences prefs public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "total", Total }, { "prefs", Prefs.ToMap() } diff --git a/Appwrite/Models/TeamList.cs b/Appwrite/Models/TeamList.cs index 40b0125..a079b7f 100644 --- a/Appwrite/Models/TeamList.cs +++ b/Appwrite/Models/TeamList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TeamList public long Total { get; private set; } [JsonPropertyName("teams")] - public List<Team> Teams { get; private set; } + public List Teams { get; private set; } public TeamList( long total, - List<Team> teams + List teams ) { Total = total; Teams = teams; diff --git a/Appwrite/Models/Token.cs b/Appwrite/Models/Token.cs index 924e569..8b6ec46 100644 --- a/Appwrite/Models/Token.cs +++ b/Appwrite/Models/Token.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,10 +11,10 @@ namespace Appwrite.Models public class Token { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("userId")] public string UserId { get; private set; } @@ -35,8 +36,8 @@ public Token( string expire, string phrase ) { - id = id; - createdAt = createdAt; + Id = id; + CreatedAt = createdAt; UserId = userId; Secret = secret; Expire = expire; @@ -54,8 +55,8 @@ string phrase public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, { "userId", UserId }, { "secret", Secret }, { "expire", Expire }, diff --git a/Appwrite/Models/Topic.cs b/Appwrite/Models/Topic.cs index cc53428..bc2f973 100644 --- a/Appwrite/Models/Topic.cs +++ b/Appwrite/Models/Topic.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class Topic { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -31,7 +32,7 @@ public class Topic public long PushTotal { get; private set; } [JsonPropertyName("subscribe")] - public List<string> Subscribe { get; private set; } + public List Subscribe { get; private set; } public Topic( string id, @@ -41,11 +42,11 @@ public Topic( long emailTotal, long smsTotal, long pushTotal, - List<string> subscribe + List subscribe ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; EmailTotal = emailTotal; SmsTotal = smsTotal; @@ -66,9 +67,9 @@ public Topic( public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "emailTotal", EmailTotal }, { "smsTotal", SmsTotal }, diff --git a/Appwrite/Models/TopicList.cs b/Appwrite/Models/TopicList.cs index 8a77ace..51bfeab 100644 --- a/Appwrite/Models/TopicList.cs +++ b/Appwrite/Models/TopicList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class TopicList public long Total { get; private set; } [JsonPropertyName("topics")] - public List<Topic> Topics { get; private set; } + public List Topics { get; private set; } public TopicList( long total, - List<Topic> topics + List topics ) { Total = total; Topics = topics; diff --git a/Appwrite/Models/User.cs b/Appwrite/Models/User.cs index d1efe29..a1ac4c6 100644 --- a/Appwrite/Models/User.cs +++ b/Appwrite/Models/User.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,13 +11,13 @@ namespace Appwrite.Models public class User { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("name")] public string Name { get; private set; } @@ -37,7 +38,7 @@ public class User public bool Status { get; private set; } [JsonPropertyName("labels")] - public List<string> Labels { get; private set; } + public List Labels { get; private set; } [JsonPropertyName("passwordUpdate")] public string PasswordUpdate { get; private set; } @@ -61,7 +62,7 @@ public class User public Preferences Prefs { get; private set; } [JsonPropertyName("targets")] - public List<Target> Targets { get; private set; } + public List Targets { get; private set; } [JsonPropertyName("accessedAt")] public string AccessedAt { get; private set; } @@ -76,7 +77,7 @@ public User( object? hashOptions, string registration, bool status, - List<string> labels, + List labels, string passwordUpdate, string email, string phone, @@ -84,12 +85,12 @@ public User( bool phoneVerification, bool mfa, Preferences prefs, - List<Target> targets, + List targets, string accessedAt ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Name = name; Password = password; Hash = hash; @@ -132,9 +133,9 @@ string accessedAt public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "name", Name }, { "password", Password }, { "hash", Hash }, diff --git a/Appwrite/Models/UserList.cs b/Appwrite/Models/UserList.cs index d89fd26..d1574dc 100644 --- a/Appwrite/Models/UserList.cs +++ b/Appwrite/Models/UserList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class UserList public long Total { get; private set; } [JsonPropertyName("users")] - public List<User> Users { get; private set; } + public List Users { get; private set; } public UserList( long total, - List<User> users + List users ) { Total = total; Users = users; diff --git a/Appwrite/Models/Variable.cs b/Appwrite/Models/Variable.cs index d5eb198..8234773 100644 --- a/Appwrite/Models/Variable.cs +++ b/Appwrite/Models/Variable.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -10,19 +11,19 @@ namespace Appwrite.Models public class Variable { [JsonPropertyName("$id")] - public string id { get; private set; } + public string Id { get; private set; } [JsonPropertyName("$createdAt")] - public string createdAt { get; private set; } + public string CreatedAt { get; private set; } [JsonPropertyName("$updatedAt")] - public string updatedAt { get; private set; } + public string UpdatedAt { get; private set; } [JsonPropertyName("key")] public string Key { get; private set; } [JsonPropertyName("value")] - public string @Value { get; private set; } + public string Value { get; private set; } [JsonPropertyName("secret")] public bool Secret { get; private set; } @@ -43,11 +44,11 @@ public Variable( string resourceType, string resourceId ) { - id = id; - createdAt = createdAt; - updatedAt = updatedAt; + Id = id; + CreatedAt = createdAt; + UpdatedAt = updatedAt; Key = key; - @Value = xvalue; + Value = xvalue; Secret = secret; ResourceType = resourceType; ResourceId = resourceId; @@ -66,11 +67,11 @@ string resourceId public Dictionary ToMap() => new Dictionary() { - { "$id", id }, - { "$createdAt", createdAt }, - { "$updatedAt", updatedAt }, + { "$id", Id }, + { "$createdAt", CreatedAt }, + { "$updatedAt", UpdatedAt }, { "key", Key }, - { "value", @Value }, + { "value", Value }, { "secret", Secret }, { "resourceType", ResourceType }, { "resourceId", ResourceId } diff --git a/Appwrite/Models/VariableList.cs b/Appwrite/Models/VariableList.cs index a5a5592..b17d415 100644 --- a/Appwrite/Models/VariableList.cs +++ b/Appwrite/Models/VariableList.cs @@ -1,3 +1,4 @@ + using System; using System.Linq; using System.Collections.Generic; @@ -13,11 +14,11 @@ public class VariableList public long Total { get; private set; } [JsonPropertyName("variables")] - public List<Variable> Variables { get; private set; } + public List Variables { get; private set; } public VariableList( long total, - List<Variable> variables + List variables ) { Total = total; Variables = variables;