-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description This PR adds the missing `reply_to_message_id` field for Messages. # License <!-- Your PR comment must contain the following line for us to merge the PR. --> I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.
- Loading branch information
1 parent
214a8db
commit dc73f71
Showing
4 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ public void testGetters() { | |
assertEquals(message.getLabels().size(), 1); | ||
assertEquals(message.getMetadata().size(), 1); | ||
assertEquals(message.getHeaders().size(), 1); | ||
assertEquals(message.toString(), "Message [id=null, account_id=null, thread_id=okdvc089, subject=That thing I sent you, from=[NameEmail [name=Peter Potamus, [email protected]]], to=[NameEmail [name=Blue Falcone, [email protected]]], cc=[NameEmail [name=Harvey Birdman, [email protected]]], bcc=[NameEmail [name=Christie, [email protected]]], reply_to=[NameEmail [name=Peter Potamus, [email protected]]], date=2022-11-10T12:28:00Z, unread=true, starred=true, snippet=Did you get that thing..., files=[File [id=null, filename=logo.jpg, size=12334, content_type=image/jpeg, message_ids=[odjashjcv89], content_id=osdivcnm90834e, content_disposition=attachment]], events=[Event [id='null', calendar_id='null', ical_uid='null', master_event_id='null', event_collection_id='null', title='null', description='null', location='null', owner='null', status='null', capacity=null, read_only=null, busy=null, hide_participants=null, original_start_time=null, when=null, conferencing=null, recurrence=null, round_robin_order=[], notifications=[], participants=[], visibility=null, metadata={}, customer_event_id=null]], folder=Folder [id=null, name=null, display_name=null], labels=[Label [id=null, name=null, display_name=null]], headers={header1=value}, metadata={key1=value}]"); | ||
assertEquals(message.toString(), "Message [id=null, account_id=null, thread_id=okdvc089, subject=That thing I sent you, from=[NameEmail [name=Peter Potamus, [email protected]]], to=[NameEmail [name=Blue Falcone, [email protected]]], cc=[NameEmail [name=Harvey Birdman, [email protected]]], bcc=[NameEmail [name=Christie, [email protected]]], reply_to=[NameEmail [name=Peter Potamus, [email protected]]], date=2022-11-10T12:28:00Z, unread=true, starred=true, snippet=Did you get that thing..., files=[File [id=null, filename=logo.jpg, size=12334, content_type=image/jpeg, message_ids=[odjashjcv89], content_id=osdivcnm90834e, content_disposition=attachment]], events=[Event [id='null', calendar_id='null', ical_uid='null', master_event_id='null', event_collection_id='null', title='null', description='null', location='null', owner='null', status='null', capacity=null, read_only=null, busy=null, hide_participants=null, original_start_time=null, when=null, conferencing=null, recurrence=null, round_robin_order=[], notifications=[], participants=[], visibility=null, metadata={}, customer_event_id=null]], folder=Folder [id=null, name=null, display_name=null], reply_to_message_id=null, labels=[Label [id=null, name=null, display_name=null]], headers={header1=value}, metadata={key1=value}]"); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ public void testGetters() { | |
assertEquals(thread.getDraftIds().size(), 1); | ||
assertEquals(thread.getMessages().size(), 1); | ||
assertEquals(thread.getDrafts().size(), 1); | ||
assertEquals(thread.toString(), "Thread [id=solidkvjnopisd903, account_id=null,subject=That thing I sent you, unread=true, starred=true, last_message_timestamp=2022-11-23T16:03:08Z, last_message_received_timestamp=2022-11-23T16:03:15Z, last_message_sent_timestamp=2022-11-23T16:03:04Z, first_message_timestamp=2022-11-23T15:59:48Z, participants=[NameEmail [name=Peter, Potamus, [email protected]]], snippet=this is a preview, version=1, folders=[Folder [id=null, name=null, display_name=null]], labels=[Label [id=null, name=null, display_name=null]], has_attachments=true, message_ids=[sldfkvj893w, losdkvj933], draft_ids=[sdklcvj93], messages=[Message [id=null, account_id=null, thread_id=null, subject=null, from=[], to=[], cc=[], bcc=[], reply_to=[], date=null, unread=null, starred=null, snippet=null, files=[], events=[], folder=null, labels=[], headers={}, metadata={}]], drafts=[Draft [reply_to_message_id=null, version=null, account_id=null, thread_id=null, subject=null, from=[], to=[], cc=[], bcc=[], reply_to=[], date=null, unread=null, starred=null, snippet=null, body=null, files=[], folder=null, labels=[], tracking=null, metadata={}]]]"); | ||
assertEquals(thread.toString(), "Thread [id=solidkvjnopisd903, account_id=null,subject=That thing I sent you, unread=true, starred=true, last_message_timestamp=2022-11-23T16:03:08Z, last_message_received_timestamp=2022-11-23T16:03:15Z, last_message_sent_timestamp=2022-11-23T16:03:04Z, first_message_timestamp=2022-11-23T15:59:48Z, participants=[NameEmail [name=Peter, Potamus, [email protected]]], snippet=this is a preview, version=1, folders=[Folder [id=null, name=null, display_name=null]], labels=[Label [id=null, name=null, display_name=null]], has_attachments=true, message_ids=[sldfkvj893w, losdkvj933], draft_ids=[sdklcvj93], messages=[Message [id=null, account_id=null, thread_id=null, subject=null, from=[], to=[], cc=[], bcc=[], reply_to=[], date=null, unread=null, starred=null, snippet=null, files=[], events=[], folder=null, reply_to_message_id=null, labels=[], headers={}, metadata={}]], drafts=[Draft [reply_to_message_id=null, version=null, account_id=null, thread_id=null, subject=null, from=[], to=[], cc=[], bcc=[], reply_to=[], date=null, unread=null, starred=null, snippet=null, body=null, files=[], folder=null, labels=[], tracking=null, metadata={}]]]"); | ||
} | ||
|
||
@Test | ||
|