Maileon PHP client  1.2.5
Easily integrate your PHP application with Maileon.
UniqueBounce.php
1 <?php
2 
9 {
13  public $timestamp;
14 
18  public $contact;
19 
23  public $mailingId;
24 
25 
29  public $lastType;
30 
34  public $count;
35 
39  public $countHard;
40 
44  public $countSoft;
45 
50  function toString()
51  {
52  return "UniqueBounce [timestamp=" . $this->timestamp .
53  ", contact=" . $this->contact->toString() .
54  ", mailingId=" . $this->mailingId .
55  ", count=" . $this->count .
56  ", countHard=" . $this->countHard .
57  ", countSoft=" . $this->countSoft .
58  ", lastType=" . $this->lastType . "]";
59  }
60 
65  function toCsvString()
66  {
67  return $this->timestamp .
68  ";" . $this->contact->toCsvString() .
69  ";" . $this->mailingId .
70  ";" . $this->count .
71  ";" . $this->countHard .
72  ";" . $this->countSoft .
73  ";" . $this->lastType;
74  }
75 
82  function fromXML($xmlElement)
83  {
84  $this->contact = new com_maileon_api_reports_ReportContact();
85  $this->contact->fromXML($xmlElement->contact);
86 
87  if (isset($xmlElement->mailing_id)) $this->mailingId = $xmlElement->mailing_id;
88  if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
89  if (isset($xmlElement->last_type)) $this->lastType = $xmlElement->last_type;
90  if (isset($xmlElement->count)) $this->count = $xmlElement->count;
91  if (isset($xmlElement->count_hard)) $this->countHard = $xmlElement->count_hard;
92  if (isset($xmlElement->count_soft)) $this->countSoft = $xmlElement->count_soft;
93  }
94 
101  function toXML()
102  {
103  // Not implemented yet.
104  }
105 }