Skip to content

Commit c64e549

Browse files
committed
Outlook API refactorings (messages namespace)
1 parent 39b1dc0 commit c64e549

9 files changed

Lines changed: 23 additions & 15 deletions

File tree

src/Directory/Users/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
use Office365\OneDrive\Drives\DriveCollection;
1414
use Office365\OneNote\Onenote;
1515
use Office365\Outlook\Calendars\Calendar;
16-
use Office365\Outlook\Contact;
16+
use Office365\Outlook\Contacts\Contact;
1717
use Office365\Outlook\Events\Event;
1818
use Office365\Outlook\MailboxSettings;
1919
use Office365\Outlook\MailFolder;
20-
use Office365\Outlook\Message;
20+
use Office365\Outlook\Messages\Message;
2121
use Office365\Outlook\ProfilePhoto;
2222
use Office365\Planner\PlannerUser;
2323
use Office365\Runtime\Actions\InvokePostMethodQuery;
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
/**
44
* Modified: 2020-05-25T05:58:15+00:00
55
*/
6-
namespace Office365\Outlook;
6+
namespace Office365\Outlook\Contacts;
77

88
use Office365\Entity;
9+
use Office365\Outlook\EmailAddress;
10+
use Office365\Outlook\PhysicalAddress;
11+
use Office365\Outlook\ProfilePhoto;
912
use Office365\Runtime\ClientValueCollection;
1013
use Office365\Runtime\ResourcePath;
1114
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Modified: 2020-05-24T22:08:35+00:00
55
*/
6-
namespace Office365\Outlook;
6+
namespace Office365\Outlook\Contacts;
77

88
use Office365\Entity;
99

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@
33
/**
44
* Modified: 2020-05-26T22:10:14+00:00
55
*/
6-
namespace Office365\Outlook;
6+
namespace Office365\Outlook\Messages;
77

88
use Office365\EntityCollection;
9+
use Office365\Outlook\Attachment;
10+
use Office365\Outlook\EmailAddress;
11+
use Office365\Outlook\FileAttachment;
12+
use Office365\Outlook\FollowupFlag;
13+
use Office365\Outlook\ItemAttachment;
14+
use Office365\Outlook\ItemBody;
15+
use Office365\Outlook\OutlookItem;
16+
use Office365\Outlook\Recipient;
17+
use Office365\Outlook\ReferenceAttachment;
918
use Office365\Runtime\Actions\InvokePostMethodQuery;
1019
use Office365\Runtime\Actions\UpdateEntityQuery;
1120
use Office365\Runtime\ClientValue;
@@ -415,9 +424,4 @@ public function getAttachments(){
415424
new EntityCollection($this->getContext(),$this->getResourcePath(),Attachment::class));
416425
}
417426

418-
419-
public function getServerTypeName()
420-
{
421-
return parent::getServerTypeName();
422-
}
423427
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Modified: 2020-05-26T22:10:14+00:00
55
*/
6-
namespace Office365\Outlook;
6+
namespace Office365\Outlook\Messages;
77

88
use Office365\Entity;
99

src/Outlook/MessageRuleActions.php renamed to src/Outlook/Messages/MessageRuleActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Modified: 2020-05-26T22:07:25+00:00
55
*/
6-
namespace Office365\Outlook;
6+
namespace Office365\Outlook\Messages;
77

88
use Office365\Runtime\ClientValue;
99
class MessageRuleActions extends ClientValue

src/Outlook/MessageRulePredicates.php renamed to src/Outlook/Messages/MessageRulePredicates.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
/**
44
* Modified: 2020-05-26T22:10:14+00:00
55
*/
6-
namespace Office365\Outlook;
6+
namespace Office365\Outlook\Messages;
77

88

9+
use Office365\Outlook\SizeRange;
910
use Office365\Runtime\ClientValue;
1011
class MessageRulePredicates extends ClientValue
1112
{

tests/outlookservices/OutlookContactTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Office365;
44

55

6-
use Office365\Outlook\Contact;
6+
use Office365\Outlook\Contacts\Contact;
77
use Office365\Outlook\EmailAddress;
88
use Office365\Runtime\Http\RequestException;
99

tests/outlookservices/OutlookMailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Office365\Outlook\FileAttachment;
99
use Office365\Outlook\ItemAttachment;
1010
use Office365\Outlook\ItemBody;
11-
use Office365\Outlook\Message;
11+
use Office365\Outlook\Messages\Message;
1212
use Office365\Outlook\Recipient;
1313

1414
class OutlookMailTest extends GraphTestCase

0 commit comments

Comments
 (0)