Buzznet::Comment - Buzznet API Comment Object


Buzznet-API documentation Contained in the Buzznet-API distribution.

Index


Code Index:

NAME

Top

Buzznet::Comment - Buzznet API Comment Object

SYNOPSIS

Top

  use Buzznet::Commetn;

DESCRIPTION

Top

This class is mainly used by Buzznet::API to encapsulate the Comment attributes

METHODS

Top

commentID

Returns the unique id of the comment

entryID

Returns the id of the image

userID

Returns the user id of the commenter, 0 if the commenter is anonymous.

type

Returns either "user" or "cat" depending on the type of entry.

time

Returns the time the comment was added (format: YYYYMMDDHHmmSS)

name

Returns the name of the commenter. This won't always be a real username.

comments

Returns the actual comment on the image

username

Returns the username of the commenter, if the commenter is a legitimate Buzznet user. If the user is anonymous, this will return "".

image

Returns the url to thumbnale image of the commenter

caption

Returns the caption of the commented image.

commenterURL

Returns the homepage URL of the commenter, "" for anonymous

commenterImage

Returns the thumbnail image of the commenter

featureURL

Returns the feature size image of the entry being commented

Returns a permalink to the comment

SEE ALSO

Top

Check out http://www.buzznet.com/developers for the latest tools and libraries available for all languages and platforms. The complete XML-RPC Buzznet API can be found at http://www.buzznet.com/developers/apidocs/.

Buzznet::Entry Buzznet::Gallery Buzznet::Profile Buzznet::API

AUTHOR

Top

Kevin Woolery, <kevin@buzznet.com>

COPYRIGHT AND LICENSE

Top


Buzznet-API documentation Contained in the Buzznet-API distribution.

package Buzznet::Comment;

use strict;
use warnings;

require Exporter;
use AutoLoader qw(AUTOLOAD);

our @ISA = qw(Exporter);

# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.

# This allows declaration	use Buzznet::Comment ':all';
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
# will save memory.
our %EXPORT_TAGS = ( 'all' => [ qw(
	
) ] );

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );

our @EXPORT = qw(
	
);

our $VERSION = '0.01';

#require XSLoader;
#XSLoader::load('Buzznet::Comment', $VERSION);

# Preloaded methods go here.

sub new 
{
  my ($package,@refs) = @_;
  my $inst = {@refs};
  $inst->{"error"} = undef;
  return bless($inst,$package);
}

sub commentID
{
  my $self = shift;
  return $self->{"entry_comment_id"};
}

sub entryID
{
  my $self = shift;
  return $self->{"entry_id"};
}

sub userID
{
  my $self = shift;
  return $self->{"user_id"};
}

sub time
{
  my $self = shift;
  return $self->{"time"};
}

sub type
{
  my $self = shift;
  return $self->{"type"};
}

sub name
{
  my $self = shift;
  return $self->{"name"};
}

sub comments
{
  my $self = shift;
  return $self->{"comments"};
}

sub username
{
  my $self = shift;
  return $self->{"user_name"};
}

sub image
{
  my $self = shift;
  return $self->{"image"};
}

sub caption
{
  my $self = shift;
  return $self->{"caption"};
}

sub commenterURL
{
  my $self = shift;
  return $self->{"url"};
}

sub commenterImage
{
  my $self = shift;
  return $self->{"user_image"};
}

sub featureURL
{
  my $self = shift;
  return $self->{"entry_image"};
}

sub link
{
  my $self = shift;
  return $self->{"permalink"};
}


# Autoload methods go after =cut, and are processed by the autosplit program.

1;
__END__