1<?php 2/*********************************************** 3* File : syncresolverecipentspicture.php 4* Project : Z-Push 5* Descr : WBXML appointment entities that can be 6* parsed directly (as a stream) from WBXML. 7* It is automatically decoded 8* according to $mapping, 9* and the Sync WBXML mappings 10* 11* Created : 28.10.2012 12* 13* Copyright 2007 - 2013, 2015 - 2016 Zarafa Deutschland GmbH 14* 15* This program is free software: you can redistribute it and/or modify 16* it under the terms of the GNU Affero General Public License, version 3, 17* as published by the Free Software Foundation. 18* 19* This program is distributed in the hope that it will be useful, 20* but WITHOUT ANY WARRANTY; without even the implied warranty of 21* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22* GNU Affero General Public License for more details. 23* 24* You should have received a copy of the GNU Affero General Public License 25* along with this program. If not, see <http://www.gnu.org/licenses/>. 26* 27* Consult LICENSE file for details 28************************************************/ 29 30class SyncResolveRecipientsPicture extends SyncObject { 31 public $maxsize; 32 public $maxpictures; 33 public $status; 34 public $data; 35 36 public function __construct() { 37 $mapping = array (); 38 39 if (Request::GetProtocolVersion() >= 14.1) { 40 $mapping[SYNC_RESOLVERECIPIENTS_MAXSIZE] = array ( self::STREAMER_VAR => "maxsize"); 41 $mapping[SYNC_RESOLVERECIPIENTS_MAXPICTURES] = array ( self::STREAMER_VAR => "maxpictures"); 42 $mapping[SYNC_RESOLVERECIPIENTS_STATUS] = array ( self::STREAMER_VAR => "status"); 43 $mapping[SYNC_RESOLVERECIPIENTS_DATA] = array ( self::STREAMER_VAR => "data", 44 self::STREAMER_TYPE => self::STREAMER_TYPE_STREAM_ASBASE64, 45 ); 46 } 47 48 parent::__construct($mapping); 49 } 50 51} 52