Esempio n. 1
0
 public async Task<List<Message>> GetMessages(Folder folder, OData data)
 {
     return (await MakeRequest<MessageRoot>("me/MailFolders/" + folder.Id + "/messages" + data.ConvertToUrl())).value.ToList();
 }
Esempio n. 2
0
 public async Task<List<Message>> GetFlaggedEmail(OData data)
 {
     data.Filter = "Flag/FlagStatus eq 'Flagged'";
     MessageRoot root = (await MakeRequest<MessageRoot>("me/messages" + data.ConvertToUrl()));
     root.value.ToList().ForEach(message => message.service = root.service);
     return root.value.ToList();
 }
Esempio n. 3
0
 public async Task<List<Folder>> GetFolders(OData oData)
 {
     var returns =  (await MakeRequest<FolderRoot>("me/MailFolders" + oData.ConvertToUrl())).value.ToList();
     return returns;
 }