Skip to content

Commit dd4dffd

Browse files
committed
Choose for more speed or more accuracy.
Almost all ways to pull messages from Mata, now have a 'download' argument. This allows the user to choise if they want more speed or more accuracy. This allows MataSharp to pull 50 messages in circa 8 seconds!
1 parent 64540a2 commit dd4dffd

File tree

17 files changed

+79
-74
lines changed

17 files changed

+79
-74
lines changed

bin/MataSharp.XML

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/MataSharp.dll

512 Bytes
Binary file not shown.

src/MataSharp/MagisterMessage.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,20 +372,20 @@ sealed internal partial class MagisterStyleMessage
372372
public Mata Mata { get; internal set; }
373373
#endregion
374374

375-
public MagisterMessage ToMagisterMessage(int index)
375+
public MagisterMessage ToMagisterMessage(bool download, int index)
376376
{
377-
var tmpReceivers = this.Ontvangers.ToList(true, true, this.Mata);
377+
var tmpReceivers = this.Ontvangers.ToList(download, true, this.Mata);
378378
tmpReceivers.Sort();
379379

380-
var tmpCopiedReceivers = this.KopieOntvangers.ToList(true, true, this.Mata);
380+
var tmpCopiedReceivers = this.KopieOntvangers.ToList(download, true, this.Mata);
381381
tmpCopiedReceivers.Sort();
382382

383383
return new MagisterMessage(this.Mata)
384384
{
385385
ID = this.Id,
386386
Ref = this.Ref,
387387
Subject = this.Onderwerp,
388-
Sender = this.Afzender.ToPerson(true, this.Mata),
388+
Sender = this.Afzender.ToPerson(download, this.Mata),
389389
Body = this.Inhoud.Trim(),
390390
Recipients = tmpReceivers,
391391
CC = tmpCopiedReceivers,

0 commit comments

Comments
 (0)