MP3::Napster::Channel - Object-oriented access to Napster channels |
MP3::Napster::Channel - Object-oriented access to Napster channels
@channels = $nap->channels; foreach $chan (@channels) { print $chan->name,"\n"; print $chan->topic,"\n"; print $chan->user_count,"\n"; print $chan->server,"\n"; @users = $chan->users,"\n"; }
$chan->join && print "Welcome to $chan!\n"; $chan->part && print "Goodbye!\n";
MP3::Napster::Channel provides object-oriented access to discussion channels on the Napster service.
Channel objects are normally not constructed from scratch but are
returned by the MPEG::Napster channels()
method.
Methods provide access to various attributes of the Channel object and allow you to join and depart the channel.
Accessor Description -------- ----------- $channel->name Channel name $channel->user_count Number of users enrolled in channel $channel->topic Channel's topic (welcome banner) $channel->server MP3::Napster object from which channel was derived
name()
method, allowing the objects to be directly
interpolated into strings, printed, and pattern matched.
Lincoln Stein <lstein@cshl.org>.
Copyright (c) 2000 Cold Spring Harbor Laboratory. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
the MP3::Napster manpage, the MP3::Napster::Song manpage, the MP3::Napster::User manpage, and the MPEG::Napster::Transfer manpage
MP3::Napster::Channel - Object-oriented access to Napster channels |