Skip to content

Commit 64ef040

Browse files
Merge pull request #25 from appwrite/dev
feat: update for 1.0.0-RC1
2 parents aa5ebb5 + 84cd2a9 commit 64ef040

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ open class RealtimeResponse(
2323
data class RealtimeResponseEvent<T>(
2424
val events: Collection<String>,
2525
val channels: Collection<String>,
26-
val timestamp: Long,
26+
val timestamp: String,
2727
var payload: T
2828
)
2929

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Account : Service {
5555
* login to their new account, you need to create a new [account
5656
* session](/docs/client/account#accountCreateSession).
5757
*
58-
* @param userId Unique Id. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
58+
* @param userId Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.
5959
* @param email User email.
6060
* @param password User password. Must be at least 8 chars.
6161
* @param name User name. Max length: 128 chars.
@@ -282,7 +282,7 @@ class Account : Service {
282282
* /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
283283
* endpoint to send a confirmation SMS.
284284
*
285-
* @param phone Phone number. Format this number with a leading &#039;+&#039; and a country code, e.g., +16175551212.
285+
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
286286
* @param password User password. Must be at least 8 chars.
287287
* @return [io.appwrite.models.Account]
288288
*/
@@ -612,7 +612,7 @@ class Account : Service {
612612
* the URL parameter empty, so that the login completion will be handled by
613613
* your Appwrite instance by default.
614614
*
615-
* @param userId Unique Id. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
615+
* @param userId Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.
616616
* @param email User email.
617617
* @param url URL to redirect the user back to your app from the magic URL login. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
618618
* @return [io.appwrite.models.Token]
@@ -784,8 +784,8 @@ class Account : Service {
784784
* endpoint to complete the login process. The secret sent to the user's phone
785785
* is valid for 15 minutes.
786786
*
787-
* @param userId Unique Id. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
788-
* @param phone Phone number. Format this number with a leading &#039;+&#039; and a country code, e.g., +16175551212.
787+
* @param userId Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.
788+
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
789789
* @return [io.appwrite.models.Token]
790790
*/
791791
@JvmOverloads
@@ -861,7 +861,7 @@ class Account : Service {
861861
* Use this endpoint to get a logged in user's session using a Session ID.
862862
* Inputting 'current' will return the current session being used.
863863
*
864-
* @param sessionId Session ID. Use the string &#039;current&#039; to get the current device session.
864+
* @param sessionId Session ID. Use the string 'current' to get the current device session.
865865
* @return [io.appwrite.models.Session]
866866
*/
867867
@JvmOverloads
@@ -895,7 +895,7 @@ class Account : Service {
895895
* If session was created using an OAuth provider, this route can be used to
896896
* "refresh" the access token.
897897
*
898-
* @param sessionId Session ID. Use the string &#039;current&#039; to update the current device session.
898+
* @param sessionId Session ID. Use the string 'current' to update the current device session.
899899
* @return [io.appwrite.models.Session]
900900
*/
901901
@JvmOverloads
@@ -930,7 +930,7 @@ class Account : Service {
930930
* Session ID argument, only the unique session ID provided is deleted.
931931
*
932932
*
933-
* @param sessionId Session ID. Use the string &#039;current&#039; to delete the current device session.
933+
* @param sessionId Session ID. Use the string 'current' to delete the current device session.
934934
* @return [Any]
935935
*/
936936
@JvmOverloads

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class Avatars : Service {
270270
* @param text Plain text to be converted to QR code image.
271271
* @param size QR code size. Pass an integer between 1 to 1000. Defaults to 400.
272272
* @param margin Margin from edge. Pass an integer between 0 to 10. Defaults to 1.
273-
* @param download Return resulting image with &#039;Content-Disposition: attachment &#039; headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.
273+
* @param download Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.
274274
* @return [ByteArray]
275275
*/
276276
@JvmOverloads

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Databases : Service {
6262
*
6363
* @param databaseId Database ID.
6464
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
65-
* @param documentId Document ID. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
65+
* @param documentId Document ID. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.
6666
* @param data Document data as JSON object.
6767
* @param permissions An array of permissions strings. By default the current user is granted with all permissions. [Learn more about permissions](/docs/permissions).
6868
* @return [io.appwrite.models.Document]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Storage : Service {
7777
*
7878
*
7979
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).
80-
* @param fileId File ID. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
80+
* @param fileId File ID. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.
8181
* @param file Binary file.
8282
* @param permissions An array of permission strings. By default the current user is granted with all permissions. [Learn more about permissions](/docs/permissions).
8383
* @return [io.appwrite.models.File]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Teams : Service {
5959
* assigned as the owner of the team. Only the users with the owner role can
6060
* invite new members, add new owners and delete or update the team.
6161
*
62-
* @param teamId Team ID. Choose your own unique ID or pass the string &quot;unique()&quot; to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
62+
* @param teamId Team ID. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.
6363
* @param name Team name. Max length: 128 chars.
6464
* @param roles Array of strings. Use this param to set the roles in the team for the user who created it. The default role is **owner**. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
6565
* @return [io.appwrite.models.Team]
@@ -331,7 +331,7 @@ class Teams : Service {
331331
*
332332
* @param teamId Team ID.
333333
* @param membershipId Membership ID.
334-
* @param roles An array of strings. Use this param to set the user&#039;s roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
334+
* @param roles An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
335335
* @return [io.appwrite.models.Membership]
336336
*/
337337
@JvmOverloads

0 commit comments

Comments
 (0)