NAME
WWW::BackpackTF::User - Class representing user profile information
SYNOPSIS
my $user = $bp->get_users($user_id);
say 'Steam ID: ', $user->steamid;
say 'Name: ', $user->name;
say 'Reputation: ', $user->reputation;
say 'Part of backpack.tf Steam Group: ', ($user->group ? 'YES' : 'NO');
say 'Positive trust ratings: ', $user->positive;
say 'Negative trust ratings: ', $user->negative;
say 'Scammer (according to steamrep.com): ', ($user->scammer ? 'YES' : 'NO');
say 'Banned from backpack.tf: ', ($user->banned_backpack ? 'YES' : 'NO');
say 'Economy banned: ', ($user->banned_economy ? 'YES' : 'NO');
say 'Community banned: ', ($user->banned_community ? 'YES' : 'NO');
say 'VAC banned: ', ($user->banned_vac ? 'YES' : 'NO');
say 'Banned on any of the previous: ', ($user->banned ? 'YES' : 'NO');
say 'Unread notifications: ', $user->notifications;
say 'Value of TF2 backpack: ', $user->value(WWW::BackpackTF::TF2);
say 'Value of Dota 2 backpack: ', $user->value(WWW::BackpackTF::DOTA2);
say 'Last TF2 backpack update: ', $user->update(WWW::BackpackTF::TF2);
say 'Last Dota 2 backpack update: ', $user->update(WWW::BackpackTF::DOTA2);
DESCRIPTION
WWW::BackpackTF::User is a class representing user profile information.
METHODS
- steamid
-
Returns this user's Steam ID.
- name
-
Returns this user's persona name.
- reputation
-
Returns this user's backpack.tf reputation.
- group
-
Returns true if this user is part of the backpack.tf Steam group.
- positive
-
Returns the number of positive trust ratings this user has.
- negative
-
Returns the number of negative trust ratings this user has.
- scammer
-
Returns true if this user is a scammer according to http://steamrep.com/
- banned_backpack
-
Returns true if this user is banned from backpack.tf.
- banned_economy
-
Returns true if this user is economy banned.
- banned_community
-
Returns true if this user is community banned.
- banned_vac
-
Returns true if this user is banned by Valve Anti-Cheat.
- banned
-
Returns true if any of the banned_* methods returns true.
- notifications
-
Returns the number of unread notifications this user has.
- value([game])
-
Returns the total value of this user's backpack for the specified game, in the lowest currency. game defaults to
WWW::BackpackTF::TF2
. - update([game])
-
Returns the UNIX timestamp of this user's last backpack update for the specified game. game defaults to
WWW::BackpackTF::TF2
SEE ALSO
AUTHOR
Marius Gavrilescu, <marius@ieval.ro>
COPYRIGHT AND LICENSE
Copyright (C) 2014-2017 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.