-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.1.4 update, class filenames refactored, now throws exceptions from…
… responses plus other varies changes. Read Changelog for more info
- Loading branch information
WooSignal
committed
Jun 15, 2020
1 parent
b5c02c5
commit fc22cb4
Showing
35 changed files
with
793 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
enum WPMetaDataActionType { | ||
/// MetaData action type [WPMetaDataActionType.Create] is used for | ||
/// creating/adding additional meta data to a key. | ||
Create, | ||
|
||
/// MetaData action type [WPMetaDataActionType.Update] is used for | ||
/// updating a meta data key. | ||
/// If the meta field for the user does not exist, it will be added. | ||
Update, | ||
|
||
/// MetaData action type [WPMetaDataActionType.Delete] is used for | ||
/// deleting a meta data key and value. You can optionally pass in a [value] | ||
/// to only remove that value from the the array of data. | ||
Delete, | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class EmptyUsernameException implements Exception { | ||
String message = 'The email field is empty'; | ||
EmptyUsernameException(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class ExistingUserEmailException implements Exception { | ||
String message; | ||
ExistingUserEmailException(this.message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class ExistingUserLoginException implements Exception { | ||
String message; | ||
ExistingUserLoginException(this.message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class IncorrectPasswordException implements Exception { | ||
String message; | ||
IncorrectPasswordException(this.message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class InvalidEmailException implements Exception { | ||
String message; | ||
InvalidEmailException(this.message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class InvalidNonceException implements Exception { | ||
String message = 'Invalid nonce token'; | ||
InvalidNonceException(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class InvalidParamsException implements Exception { | ||
String message = 'Invalid parameters, please check the data'; | ||
InvalidParamsException(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2020, WooSignal Ltd. | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms are permitted | ||
// provided that the above copyright notice and this paragraph are | ||
// duplicated in all such forms and that any documentation, | ||
// advertising materials, and other materials related to such | ||
// distribution and use acknowledge that the software was developed | ||
// by the WooSignal. The name of the | ||
// WooSignal may not be used to endorse or promote products derived | ||
// from this software without specific prior written permission. | ||
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
class InvalidUserTokenException implements Exception { | ||
String message = 'Invalid user API token'; | ||
InvalidUserTokenException(); | ||
} |
Oops, something went wrong.