Supporter

The signed-in supporter.

On this page

Class in sponsorkit.models.

from sponsorkit import Supporter

Also importable from sponsorkit.models.

@dataclass(frozen=True)
class Supporter:
    ...

The signed-in supporter. id is pairwise: stable per (target set, first identity).

Constructor#

Supporter(id: str, identities: tuple[Identity, ...]) -> None

Instances are immutable; every field below is a constructor parameter.

Fields#

id#

id: str

Pairwise supporter id: stable for this target set and first identity.

identities#

identities: tuple[Identity, ...]

The provider accounts the supporter signed in with.

Methods#

from_dict()#

@classmethod
def from_dict(cls, d: Mapping[str, Any]) -> Supporter

Parse the JSON form.

to_dict()#

def to_dict(self) -> dict[str, Any]

The JSON form.