Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. from ..akad.ttypes import Message
  3. from .auth import Auth
  4. from .models import Models
  5. from .talk import Talk
  6. from .square import Square
  7. from .call import Call
  8. from .timeline import Timeline
  9. from .shop import Shop
  10.  
  11. class LINE(Auth, Models, Talk, Square, Call, Timeline, Shop):
  12.  
  13. def __init__(self, idOrAuthToken=None, passwd=None, speedThrift=False, certificate=None, systemName=None, appName=None, showQr=False, keepLoggedIn=True):
  14.  
  15. Auth.__init__(self)
  16. if not (idOrAuthToken or idOrAuthToken and passwd):
  17. self.loginWithQrCode(keepLoggedIn=keepLoggedIn, systemName=systemName, appName=appName, speedThrift=speedThrift, showQr=showQr)
  18. if idOrAuthToken and passwd:
  19. self.loginWithCredential(_id=idOrAuthToken, passwd=passwd, certificate=certificate, systemName=systemName, appName=appName, keepLoggedIn=keepLoggedIn, speedThrift=speedThrift)
  20. elif idOrAuthToken and not passwd:
  21. self.loginWithAuthToken(authToken=idOrAuthToken, appName=appName, speedThrift=speedThrift)
  22.  
  23. self.__initAll()
  24.  
  25. def __initAll(self):
  26.  
  27. self.profile = self.talk.getProfile()
  28. self.groups = self.talk.getGroupIdsJoined()
  29.  
  30. Models.__init__(self)
  31. Talk.__init__(self)
  32. Square.__init__(self)
  33. Call.__init__(self)
  34. Timeline.__init__(self)
  35. Shop.__init__(self)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement