| Email-ConstantContact documentation | Contained in the Email-ConstantContact distribution. |
Email::ConstantContact::CampaignEvent - Internal class to interact with ConstantContact CampaignEvent Objects.
Version 0.05
Adam Rich, <arich at cpan.org>
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.
You can find documentation for this module with the perldoc command.
perldoc Email::ConstantContact::CampaignEvent
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Email-ConstantContact
Copyright 2009-2011 Adam Rich, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 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