PlexHomeUser class final Client and sign-in
A member of the account's Plex Home (plex.tv/api/home/users): the
admin, other full accounts, and managed users.
Switch to one with PlexAccountApi.switchHomeUser.
Constructors
-
PlexHomeUser({required int id, required String uuid, required String title, required String username, required String email, required bool admin, required bool guest, required bool restricted, required bool protected, String? thumb, String? restrictionProfile, Map<
String, Object?> raw = const {}}) -
Creates a Home member.
const
-
PlexHomeUser.fromJson(Map<
String, Object?> json) -
Parses one
Userof/api/home/users(XML or JSON).factory
Properties
- admin → bool
-
Whether this user administers the Home (
admin).final - email → String
-
Email; empty for a managed user.
final
- guest → bool
-
Whether this is the Home's guest account (
guest).final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Numeric plex.tv id — what
PlexAccountApi.switchHomeUsertakes.final - protected → bool
-
Whether switching to this user needs a PIN (
protected).final -
raw
→ Map<
String, Object?> -
The entry as received.
final
- restricted → bool
-
Whether this is a managed user (
restricted): no plex.tv login of its own, content limited by restrictionProfile.final - restrictionProfile → String?
-
The content restriction of a managed user (
restrictionProfile):little_kid,older_kid,teen, or empty for a custom one.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumb → String?
-
Avatar URL.
final
- title → String
-
Display name.
final
- username → String
-
Username; empty for a managed user, which has none.
final
- uuid → String
-
Account UUID.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited