Package com.example.oblong
Class inputValidator
java.lang.Object
com.example.oblong.inputValidator
The
inputValidator
class ensures that information entered by users
is formatted correctly.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validateCreateNotification
(String label, String content, String targets) ThevalidateCreateNotification
method validatesboolean
validateFacilityProfile
(String name, String email, String phone) ThevalidateFacilityProfile
method validates the facility profile informationboolean
validateUserProfile
(String name, String email, String phone) ThevalidateUserProfile
method validates the user profile information
-
Constructor Details
-
inputValidator
public inputValidator(android.content.Context context)
-
-
Method Details
-
validateUserProfile
ThevalidateUserProfile
method validates the user profile information- Parameters:
name
-email
-phone
-- Returns:
-
validateFacilityProfile
ThevalidateFacilityProfile
method validates the facility profile information- Parameters:
name
-email
-phone
-- Returns:
-
validateCreateNotification
ThevalidateCreateNotification
method validates- Parameters:
label
-content
-targets
-- Returns:
-