Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add properties for AddAppUser

  • Loading branch information...
commit 491831e2f54a57a2d16a288a17db8ea61140c61c 1 parent 4d14612
@donthorp authored
Showing with 95 additions and 0 deletions.
  1. +95 −0 hockeyapp/team.py
View
95 hockeyapp/team.py
@@ -87,4 +87,99 @@ def path(self):
"""
return api.BASE_URI + 'apps/%s/app_users' % self._app_id
+ @property
+ def first_name(self):
+ """Returns the user's first name
+
+ :returns: str
+
+ """
+ return self._first_name
+
+ @first_name.setter
+ def first_name(self, name):
+ """set the user's first name
+
+ :param name: name
+ :type name: str
+
+ """
+ self._first_name = name
+
+ @property
+ def last_name(self):
+ """Returns the user's last name
+
+ :returns: str
+
+ """
+ return self._last_name
+
+ @last_name.setter
+ def last_name(self, name):
+ """set the user's last name
+
+ :param name: name
+ :type name: str
+
+ """
+ self._last_name = name
+
+ @property
+ def message(self):
+ """Returns the message to send to the user in the invitation
+
+ :returns: str
+
+ """
+ return self._message
+
+ @message.setter
+ def message(self, msg):
+ """set the message to send in the invite
+
+ :param msg: the message
+ :type msg: str
+
+ """
+ self._message = msg
+
+ @property
+ def role(self):
+ """Returns the user's role constant
+
+ :returns: int
+
+ """
+ return self._role
+
+ @role.setter
+ def role(self, role):
+ """set the user's role. One of 0 - owner, 1 - developer, 2 - member, 3 - tester
+
+ :param role: role constant
+ :type role: int
+
+ """
+
+ self._role = int(role)
+
+ @property
+ def tags(self):
+ """Returns the user's tags
+
+ :returns: str
+
+ """
+ return self._tags
+
+ @tags.setter
+ def tags(self, tags):
+ """set the user's tags
+
+ :param tags: tags (comma delimited)
+ :type tags: str
+
+ """
+ self._tags = tags
Please sign in to comment.
Something went wrong with that request. Please try again.