nxtlo/aiobungie

Activity and Character objects issues.

Closed this issue · 2 comments

nxtlo commented

So the Bungie Activity and Character responses are kinda complicated, the goal is to redesign them and make it simpler and efficient, also include its types, this should be the main goal of 0.2.5v release.

Character Impl.

  • Get rid of all the elifs for the Character object.
  • Let the person choose the character and return its data instead of all the if statements.

Example

class Character:
    def __init__(self, *, character: DestinyCharacter, data: CharPayload) -> None:
        self.id: int = data['id'] # We want to somehow check for the `character`
                                  # and return it whether its titan warlock or hunter.
nxtlo commented

Character object is finished with 0 if's, Activity left.

nxtlo commented

This is getting closed since i'm switching the objects flow.