Not Virus2
Not Virus2
def get_username(self):
return self.username
def get_password(self):
return self.password
def get_router_id(self):
return self.router_id
@staticmethod
def validate_username(username):
# Add your own validation logic here. For example, check if the username meets certain
criteria.
# For now, let's just check if it's a non-empty string.
return isinstance(username, str) and len(username) > 0
@staticmethod
def validate_password(password):
# Add your own validation logic here. For example, check if the password meets certain
criteria.
# For now, let's just check if it's a non-empty string.
return isinstance(password, str) and len(password) > 0
@staticmethod
def validate_router_id(router_id):
# Add your own validation logic here. For example, check if the router ID is a valid format.
# For now, let's just check if it's a non-empty string.
return isinstance(router_id, str) and len(router_id) > 0
def main():
user = User()
if __name__ == "__main__":
main()