Skip to content

Commit a769fb1

Browse files
committed
Add 1.8.x support
1 parent 0542a8a commit a769fb1

File tree

12 files changed

+108
-106
lines changed

12 files changed

+108
-106
lines changed

library/src/main/java/io/appwrite/models/Execution.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data class Execution(
2020
val createdAt: String,
2121

2222
/**
23-
* Execution upate date in ISO 8601 format.
23+
* Execution update date in ISO 8601 format.
2424
*/
2525
@SerializedName("\$updatedAt")
2626
val updatedAt: String,
@@ -38,7 +38,7 @@ data class Execution(
3838
val functionId: String,
3939

4040
/**
41-
* Function's deployment ID used to create the execution.
41+
* Function's deployment ID used to create the execution.
4242
*/
4343
@SerializedName("deploymentId")
4444
val deploymentId: String,

library/src/main/java/io/appwrite/models/Locale.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data class Locale(
2626
val country: String,
2727

2828
/**
29-
* Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
29+
* Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
3030
*/
3131
@SerializedName("continentCode")
3232
val continentCode: String,

library/src/main/java/io/appwrite/services/Account.kt

Lines changed: 51 additions & 49 deletions
Large diffs are not rendered by default.

library/src/main/java/io/appwrite/services/Avatars.kt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import java.io.File
1414

1515
/**
1616
* The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars.
17-
**/
17+
*/
1818
class Avatars(client: Client) : Service(client) {
1919

2020
/**
2121
* You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) endpoint. Use width, height and quality arguments to change the output settings.
22-
*
23-
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
22+
*
23+
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
2424
*
2525
* @param code Browser Code.
2626
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
@@ -55,9 +55,9 @@ class Avatars(client: Client) : Service(client) {
5555

5656
/**
5757
* The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.
58-
*
59-
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
60-
*
58+
*
59+
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
60+
*
6161
*
6262
* @param code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
6363
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
@@ -92,8 +92,8 @@ class Avatars(client: Client) : Service(client) {
9292

9393
/**
9494
* Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.
95-
*
96-
* This endpoint does not follow HTTP redirects.
95+
*
96+
* This endpoint does not follow HTTP redirects.
9797
*
9898
* @param url Website URL which you want to fetch the favicon from.
9999
* @return [ByteArray]
@@ -118,9 +118,9 @@ class Avatars(client: Client) : Service(client) {
118118

119119
/**
120120
* You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings. Country codes follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.
121-
*
122-
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
123-
*
121+
*
122+
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
123+
*
124124
*
125125
* @param code Country Code. ISO Alpha-2 country code format.
126126
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
@@ -155,10 +155,10 @@ class Avatars(client: Client) : Service(client) {
155155

156156
/**
157157
* Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.
158-
*
159-
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.
160-
*
161-
* This endpoint does not follow HTTP redirects.
158+
*
159+
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.
160+
*
161+
* This endpoint does not follow HTTP redirects.
162162
*
163163
* @param url Image URL which you want to crop.
164164
* @param width Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.
@@ -190,11 +190,11 @@ class Avatars(client: Client) : Service(client) {
190190

191191
/**
192192
* Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.
193-
*
194-
* You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.
195-
*
196-
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
197-
*
193+
*
194+
* You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.
195+
*
196+
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
197+
*
198198
*
199199
* @param name Full Name. When empty, current user name or email will be used. Max length: 128 chars.
200200
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
@@ -229,7 +229,7 @@ class Avatars(client: Client) : Service(client) {
229229

230230
/**
231231
* Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.
232-
*
232+
*
233233
*
234234
* @param text Plain text to be converted to QR code image.
235235
* @param size QR code size. Pass an integer between 1 to 1000. Defaults to 400.

library/src/main/java/io/appwrite/services/Databases.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.io.File
1212

1313
/**
1414
* The Databases service allows you to create structured collections of documents, query and filter lists of documents
15-
**/
15+
*/
1616
class Databases(client: Client) : Service(client) {
1717

1818
/**
@@ -59,7 +59,7 @@ class Databases(client: Client) : Service(client) {
5959
}
6060

6161
/**
62-
* Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
62+
* Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
6363
*
6464
* @param databaseId Database ID.
6565
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).

library/src/main/java/io/appwrite/services/Functions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.io.File
1212

1313
/**
1414
* The Functions Service allows you view, create and manage your Cloud Functions.
15-
**/
15+
*/
1616
class Functions(client: Client) : Service(client) {
1717

1818
/**

library/src/main/java/io/appwrite/services/Graphql.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.io.File
1212

1313
/**
1414
* The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.
15-
**/
15+
*/
1616
class Graphql(client: Client) : Service(client) {
1717

1818
/**

library/src/main/java/io/appwrite/services/Locale.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import java.io.File
1212

1313
/**
1414
* The Locale service allows you to customize your app based on your users' location.
15-
**/
15+
*/
1616
class Locale(client: Client) : Service(client) {
1717

1818
/**
1919
* Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.
20-
*
21-
* ([IP Geolocation by DB-IP](https://db-ip.com))
20+
*
21+
* ([IP Geolocation by DB-IP](https://db-ip.com))
2222
*
2323
* @return [io.appwrite.models.Locale]
2424
*/

library/src/main/java/io/appwrite/services/Messaging.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.io.File
1212

1313
/**
1414
* The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).
15-
**/
15+
*/
1616
class Messaging(client: Client) : Service(client) {
1717

1818
/**

library/src/main/java/io/appwrite/services/Storage.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import java.io.File
1414

1515
/**
1616
* The Storage service allows you to manage your project files.
17-
**/
17+
*/
1818
class Storage(client: Client) : Service(client) {
1919

2020
/**
@@ -57,13 +57,13 @@ class Storage(client: Client) : Service(client) {
5757

5858
/**
5959
* Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](https://appwrite.io/docs/server/storage#storageCreateBucket) API or directly from your Appwrite console.
60-
*
61-
* Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.
62-
*
63-
* When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.
64-
*
65-
* If you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.
66-
*
60+
*
61+
* Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.
62+
*
63+
* When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.
64+
*
65+
* If you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.
66+
*
6767
*
6868
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
6969
* @param fileId File ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.

0 commit comments

Comments
 (0)