Email::ConstantContact::CampaignEvent - Internal class to interact with ConstantContact CampaignEvent Objects.


Email-ConstantContact documentation Contained in the Email-ConstantContact distribution.

Index


Code Index:

NAME

Top

Email::ConstantContact::CampaignEvent - Internal class to interact with ConstantContact CampaignEvent Objects.

VERSION

Top

Version 0.05

SYNOPSIS This module is not typically used directly, but internally by the main Email::ConstantContact object for processing requests.

Top

AUTHOR

Top

Adam Rich, <arich at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-email-constantcontact at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Email-ConstantContact. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Email::ConstantContact::CampaignEvent




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Email-ConstantContact

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Email-ConstantContact

* CPAN Ratings

http://cpanratings.perl.org/d/Email-ConstantContact

* Search CPAN

http://search.cpan.org/dist/Email-ConstantContact/

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Email-ConstantContact documentation Contained in the Email-ConstantContact distribution.
package Email::ConstantContact::CampaignEvent;

use warnings;
use strict;

use Email::ConstantContact::Contact;
use Email::ConstantContact::Campaign;

use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);

require Exporter;

@ISA = qw(Exporter);
@EXPORT = qw( );

$VERSION = '0.05';


my @fields = qw (
	id EventTime Code Description BounceMessage
);

sub new {
	my $class	= shift;
	my $ccobj	= shift;
	my $data	= shift;
	my $self  = {'_cc' => $ccobj};

	if (defined($data->{'content'}) && defined($data->{'content'}->{'BounceEvent'})) {
		foreach my $field (@fields) {
			$self->{$field} = $data->{'content'}->{'BounceEvent'}->{$field};
		}

		$self->{Contact} = new Email::ConstantContact::Contact($ccobj, { content => { 'Contact' => $data->{'content'}->{'BounceEvent'}->{'Contact'}}});
		$self->{Campaign} = new Email::ConstantContact::Campaign($ccobj, { content => { 'Campaign' => $data->{'content'}->{'BounceEvent'}->{'Campaign'}}});
	}


	bless ($self, $class);
	return $self;
}

1; # End of Email::ConstantContact::CampaignEvent