Move over ESI functionality to be completely separate from esipy

This commit is contained in:
blitzmann
2018-05-12 00:46:26 -04:00
parent 4d666907c9
commit 0365f71c00
5 changed files with 156 additions and 319 deletions

View File

@@ -50,6 +50,10 @@ class SsoCharacter(object):
).total_seconds()
}
def is_token_expired(self):
if self.accessTokenExpires is None:
return True
return datetime.datetime.now() >= self.accessTokenExpires
def __repr__(self):
return "SsoCharacter(ID={}, name={}, client={}) at {}".format(