Skip to content

Commit 0f71058

Browse files
committed
Merge pull request #3 from ronyperez/patch-3
Update user.py
2 parents cc507d5 + 35f14d8 commit 0f71058

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

intercom/user.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,16 @@ def last_seen_ip(self, last_seen_ip):
184184
""" Sets the last seen IP address. """
185185
self['last_seen_ip'] = last_seen_ip
186186

187+
@property
188+
def user_agent_data(self):
189+
""" Returns the last seen User Agent. """
190+
return dict.get(self, 'user_agent_data', None)
191+
192+
@user_agent_data.setter
193+
def user_agent_data(self, user_agent_data):
194+
""" Sets the last seen User Agent. """
195+
self['user_agent_data'] = user_agent_data
196+
187197
@property
188198
def last_seen_user_agent(self):
189199
""" Returns the last seen User Agent. """
@@ -253,6 +263,19 @@ def created_at(self, value):
253263
""" Sets the timestamp when this User started using your
254264
application. """
255265
self['created_at'] = value
266+
267+
@property
268+
@from_timestamp_property
269+
def signed_up_at(self):
270+
""" Returns the datetime this User started using your application. """
271+
return dict.get(self, 'signed_up_at', None)
272+
273+
@signed_up_at.setter
274+
@to_timestamp_property
275+
def signed_up_at(self, value):
276+
""" Sets the timestamp when this User started using your
277+
application. """
278+
self['signed_up_at'] = value
256279

257280
@property
258281
def social_profiles(self):

0 commit comments

Comments
 (0)