Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c38a1a6cc | |||
| ba0b79de64 | |||
| 60bd3163a9 |
+1
-1
@@ -2,7 +2,7 @@
|
||||
; Erfordert Inno Setup 6.x (https://jrsoftware.org/isinfo.php)
|
||||
|
||||
#define MyAppName "Starface Outlook Sync"
|
||||
#define MyAppVersion "0.0.0.8"
|
||||
#define MyAppVersion "0.0.0.10"
|
||||
#define MyAppPublisher "HackerSoft - Hacker-Net Telekommunikation"
|
||||
#define MyAppURL "https://www.hacker-net.de"
|
||||
#define MyAppExeName "StarfaceOutlookSync.exe"
|
||||
|
||||
@@ -155,11 +155,14 @@ namespace StarfaceOutlookSync.Services
|
||||
return books;
|
||||
}
|
||||
|
||||
public event Action<string> OnDebug;
|
||||
|
||||
public async Task<List<UnifiedContact>> GetContactsAsync(StarfaceAddressBook book)
|
||||
{
|
||||
var contacts = new List<UnifiedContact>();
|
||||
int page = 0;
|
||||
const int pageSize = 200;
|
||||
bool firstPage = true;
|
||||
|
||||
while (true)
|
||||
{
|
||||
@@ -206,6 +209,13 @@ namespace StarfaceOutlookSync.Services
|
||||
|
||||
if (array.Count == 0) break;
|
||||
|
||||
// Ersten Kontakt als Debug-Info loggen
|
||||
if (firstPage && array.Count > 0)
|
||||
{
|
||||
OnDebug?.Invoke($"Starface API Rohdaten (1. Kontakt):\n{array[0].ToString(Formatting.Indented)}");
|
||||
firstPage = false;
|
||||
}
|
||||
|
||||
foreach (var item in array)
|
||||
contacts.Add(MapFromStarface(item));
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace StarfaceOutlookSync.Services
|
||||
Log("Verbinde mit Starface...");
|
||||
using (var starface = new StarfaceApiClient(profile.StarfaceConnection))
|
||||
{
|
||||
starface.OnDebug += (msg) => Log(msg);
|
||||
var loginOk = await starface.LoginAsync();
|
||||
if (!loginOk)
|
||||
{
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
<AssemblyTitle>Starface Outlook Sync</AssemblyTitle>
|
||||
<Company>HackerSoft - Hacker-Net Telekommunikation</Company>
|
||||
<Product>Starface Outlook Sync</Product>
|
||||
<Version>0.0.0.8</Version>
|
||||
<AssemblyVersion>0.0.0.8</AssemblyVersion>
|
||||
<FileVersion>0.0.0.8</FileVersion>
|
||||
<Version>0.0.0.10</Version>
|
||||
<AssemblyVersion>0.0.0.10</AssemblyVersion>
|
||||
<FileVersion>0.0.0.10</FileVersion>
|
||||
<Description>Synchronisiert Outlook-Kontakte mit Starface Telefonanlage</Description>
|
||||
<Copyright>Stefan Hacker - HackerSoft</Copyright>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace StarfaceOutlookSync.UI
|
||||
|
||||
var lblVersion = new Label
|
||||
{
|
||||
Text = "Version 0.0.0.8",
|
||||
Text = "Version 0.0.0.10",
|
||||
Left = 0, Top = 56, Width = 340, Height = 20,
|
||||
TextAlign = ContentAlignment.MiddleCenter,
|
||||
ForeColor = Color.Gray
|
||||
|
||||
Reference in New Issue
Block a user