How I can do to retrieve, from, to, subject, etc. from a message with this code ? Actually I can retrive list of message in a folder (label) but i want to retrieve fron, to, sender, etc. to display in a grid
Private Sub LoadMailGrid(ByVal FolderName As String)
Dim request As Google.Apis.Gmail.v1.UsersResource.MessagesResource.ListRequest = myGMailService.Users.Messages.List("xxxxxxx@gmail.com")
request.Q = "label: " + folderName
Dim messagesList As ListMessagesResponse = request.Execute()
Dim SubjectList As List(Of GMailMessageSummary) = New List(Of GMailMessageSummary)
Dim mail As GMailMessageSummary
For Each Message In messagesList.Messages
mail = New GMailMessageSummary
mail.MessageID = Message.Id
**mail.From = Message.**
mail.Subject = "Courriel " + x.ToString
mail.Received = Today
SubjectList.Add(mail)
Next
grdGMail.DataSource = SubjectList
grdGMail.DataBind()
End Sub